Merged in both release announcement guts.
[llvm-complete.git] / configure
blob66f5aaf37a694b93adff149f2e827a07226d0a6b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.1cvs.
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-2007 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.1cvs'
719 PACKAGE_STRING='llvm 2.1cvs'
720 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
722 ac_unique_file="lib/VMCore/Module.cpp"
723 # Factoring default headers for most tests.
724 ac_includes_default="\
725 #include <stdio.h>
726 #if HAVE_SYS_TYPES_H
727 # include <sys/types.h>
728 #endif
729 #if HAVE_SYS_STAT_H
730 # include <sys/stat.h>
731 #endif
732 #if STDC_HEADERS
733 # include <stdlib.h>
734 # include <stddef.h>
735 #else
736 # if HAVE_STDLIB_H
737 # include <stdlib.h>
738 # endif
739 #endif
740 #if HAVE_STRING_H
741 # if !STDC_HEADERS && HAVE_MEMORY_H
742 # include <memory.h>
743 # endif
744 # include <string.h>
745 #endif
746 #if HAVE_STRINGS_H
747 # include <strings.h>
748 #endif
749 #if HAVE_INTTYPES_H
750 # include <inttypes.h>
751 #endif
752 #if HAVE_STDINT_H
753 # include <stdint.h>
754 #endif
755 #if HAVE_UNISTD_H
756 # include <unistd.h>
757 #endif"
759 ac_subst_vars='SHELL
760 PATH_SEPARATOR
761 PACKAGE_NAME
762 PACKAGE_TARNAME
763 PACKAGE_VERSION
764 PACKAGE_STRING
765 PACKAGE_BUGREPORT
766 exec_prefix
767 prefix
768 program_transform_name
769 bindir
770 sbindir
771 libexecdir
772 datarootdir
773 datadir
774 sysconfdir
775 sharedstatedir
776 localstatedir
777 includedir
778 oldincludedir
779 docdir
780 infodir
781 htmldir
782 dvidir
783 pdfdir
784 psdir
785 libdir
786 localedir
787 mandir
788 DEFS
789 ECHO_C
790 ECHO_N
791 ECHO_T
792 LIBS
793 build_alias
794 host_alias
795 target_alias
796 LLVM_COPYRIGHT
797 subdirs
798 build
799 build_cpu
800 build_vendor
801 build_os
802 host
803 host_cpu
804 host_vendor
805 host_os
806 target
807 target_cpu
808 target_vendor
809 target_os
811 LINKALL
812 NOLINKALL
813 LLVM_ON_UNIX
814 LLVM_ON_WIN32
815 ARCH
816 ENDIAN
818 CFLAGS
819 LDFLAGS
820 CPPFLAGS
821 ac_ct_CC
822 EXEEXT
823 OBJEXT
825 GREP
826 EGREP
827 LLVM_CROSS_COMPILING
828 BUILD_CC
829 BUILD_EXEEXT
830 CVSBUILD
831 ENABLE_OPTIMIZED
832 DISABLE_ASSERTIONS
833 DEBUG_RUNTIME
835 TARGET_HAS_JIT
836 ENABLE_DOXYGEN
837 ENABLE_THREADS
838 ENABLE_PIC
839 TARGETS_TO_BUILD
840 ENABLE_CBE_PRINTF_A
841 EXTRA_OPTIONS
843 CXXFLAGS
844 ac_ct_CXX
846 LEXLIB
847 LEX_OUTPUT_ROOT
848 FLEX
849 YACC
850 YFLAGS
851 BISON
853 ifGNUmake
854 LN_S
857 DATE
858 FIND
859 MKDIR
861 RANLIB
865 BINPWD
866 GRAPHVIZ
869 DOTTY
870 PERL
871 HAVE_PERL
872 INSTALL_PROGRAM
873 INSTALL_SCRIPT
874 INSTALL_DATA
875 BZIP2
876 DOXYGEN
877 GROFF
878 GZIP
879 POD2HTML
880 POD2MAN
881 RUNTEST
882 TCLSH
884 INSTALL_LTDL_TRUE
885 INSTALL_LTDL_FALSE
886 CONVENIENCE_LTDL_TRUE
887 CONVENIENCE_LTDL_FALSE
888 LIBADD_DL
889 ECHO
891 STRIP
892 CXXCPP
894 FFLAGS
895 ac_ct_F77
896 LIBTOOL
897 ETAGSFLAGS
898 LLVMGCC
899 LLVMGXX
900 USE_UDIS86
901 HAVE_PTHREAD
902 HUGE_VAL_SANITY
903 ALLOCA
904 MMAP_FILE
905 LLVMCC1
906 LLVMCC1PLUS
907 LLVMGCCDIR
908 LLVMGCCLIBEXEC
909 LLVMGCC_VERSION
910 LLVMGCC_MAJVERS
911 LLVMGCC_LANGS
912 SHLIBEXT
913 LLVM_PREFIX
914 LLVM_BINDIR
915 LLVM_LIBDIR
916 LLVM_DATADIR
917 LLVM_DOCSDIR
918 LLVM_ETCDIR
919 LLVM_INCLUDEDIR
920 LLVM_INFODIR
921 LLVM_MANDIR
922 LLVM_CONFIGTIME
923 LIBOBJS
924 LTLIBOBJS'
925 ac_subst_files=''
926 ac_precious_vars='build_alias
927 host_alias
928 target_alias
930 CFLAGS
931 LDFLAGS
932 CPPFLAGS
935 CXXFLAGS
937 YACC
938 YFLAGS
939 CXXCPP
941 FFLAGS'
942 ac_subdirs_all='projects/sample
943 projects/privbracket
944 projects/llvm-stacker
945 projects/llvm-test
946 projects/llvm-reopt
947 projects/llvm-gcc
948 projects/llvm-java
949 projects/llvm-tv
950 projects/llvm-poolalloc
951 projects/llvm-kernel'
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
958 cache_file=/dev/null
959 exec_prefix=NONE
960 no_create=
961 no_recursion=
962 prefix=NONE
963 program_prefix=NONE
964 program_suffix=NONE
965 program_transform_name=s,x,x,
966 silent=
967 site=
968 srcdir=
969 verbose=
970 x_includes=NONE
971 x_libraries=NONE
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990 infodir='${datarootdir}/info'
991 htmldir='${docdir}'
992 dvidir='${docdir}'
993 pdfdir='${docdir}'
994 psdir='${docdir}'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
999 ac_prev=
1000 ac_dashdash=
1001 for ac_option
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\$ac_option
1006 ac_prev=
1007 continue
1010 case $ac_option in
1011 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 *) ac_optarg=yes ;;
1013 esac
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1019 ac_dashdash=yes ;;
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 ac_prev=bindir ;;
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1041 -datadir | --datadir | --datadi | --datad)
1042 ac_prev=datadir ;;
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1053 -disable-* | --disable-*)
1054 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1060 eval enable_$ac_feature=no ;;
1062 -docdir | --docdir | --docdi | --doc | --do)
1063 ac_prev=docdir ;;
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 ac_prev=dvidir ;;
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1072 -enable-* | --enable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1079 eval enable_$ac_feature=\$ac_optarg ;;
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1092 with_gas=yes ;;
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 ac_prev=htmldir ;;
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 | --ht=*)
1110 htmldir=$ac_optarg ;;
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 ac_prev=infodir ;;
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1124 -libdir | --libdir | --libdi | --libd)
1125 ac_prev=libdir ;;
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 ac_prev=mandir ;;
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1155 with_fp=no ;;
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1159 no_create=yes ;;
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 no_recursion=yes ;;
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 ac_prev=prefix ;;
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 ac_prev=pdfdir ;;
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1215 -psdir | --psdir | --psdi | --psd | --ps)
1216 ac_prev=psdir ;;
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 psdir=$ac_optarg ;;
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 silent=yes ;;
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 ac_prev=sbindir ;;
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 | --sbi=* | --sb=*)
1228 sbindir=$ac_optarg ;;
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1233 | --sha | --sh)
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 | --sha=* | --sh=*)
1239 sharedstatedir=$ac_optarg ;;
1241 -site | --site | --sit)
1242 ac_prev=site ;;
1243 -site=* | --site=* | --sit=*)
1244 site=$ac_optarg ;;
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 ac_prev=srcdir ;;
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 verbose=yes ;;
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1269 -with-* | --with-*)
1270 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1273 { echo "$as_me: error: invalid package name: $ac_package" >&2
1274 { (exit 1); exit 1; }; }
1275 ac_package=`echo $ac_package| sed 's/-/_/g'`
1276 eval with_$ac_package=\$ac_optarg ;;
1278 -without-* | --without-*)
1279 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_package=`echo $ac_package | sed 's/-/_/g'`
1285 eval with_$ac_package=no ;;
1287 --x)
1288 # Obsolete; use --with-x.
1289 with_x=yes ;;
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1305 -*) { echo "$as_me: error: unrecognized option: $ac_option
1306 Try \`$0 --help' for more information." >&2
1307 { (exit 1); exit 1; }; }
1310 *=*)
1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1314 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1315 { (exit 1); exit 1; }; }
1316 eval $ac_envvar=\$ac_optarg
1317 export $ac_envvar ;;
1320 # FIXME: should be removed in autoconf 3.0.
1321 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327 esac
1328 done
1330 if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 { echo "$as_me: error: missing argument to $ac_option" >&2
1333 { (exit 1); exit 1; }; }
1336 # Be sure to have absolute directory names.
1337 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1342 eval ac_val=\$$ac_var
1343 case $ac_val in
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346 esac
1347 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1348 { (exit 1); exit 1; }; }
1349 done
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1354 build=$build_alias
1355 host=$host_alias
1356 target=$target_alias
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1363 If a cross compiler is detected then cross compile mode will be used." >&2
1364 elif test "x$build_alias" != "x$host_alias"; then
1365 cross_compiling=yes
1369 ac_tool_prefix=
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1372 test "$silent" = yes && exec 6>/dev/null
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378 { echo "$as_me: error: Working directory cannot be determined" >&2
1379 { (exit 1); exit 1; }; }
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 { echo "$as_me: error: pwd does not report name of working directory" >&2
1382 { (exit 1); exit 1; }; }
1385 # Find the source files, if location was not specified.
1386 if test -z "$srcdir"; then
1387 ac_srcdir_defaulted=yes
1388 # Try the directory containing this script, then the parent directory.
1389 ac_confdir=`$as_dirname -- "$0" ||
1390 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391 X"$0" : 'X\(//\)[^/]' \| \
1392 X"$0" : 'X\(//\)$' \| \
1393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1394 echo X"$0" |
1395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396 s//\1/
1399 /^X\(\/\/\)[^/].*/{
1400 s//\1/
1403 /^X\(\/\/\)$/{
1404 s//\1/
1407 /^X\(\/\).*/{
1408 s//\1/
1411 s/.*/./; q'`
1412 srcdir=$ac_confdir
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 srcdir=..
1416 else
1417 ac_srcdir_defaulted=no
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1422 { (exit 1); exit 1; }; }
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1427 { (exit 1); exit 1; }; }
1428 pwd)`
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 srcdir=.
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1436 case $srcdir in
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 esac
1439 for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 done
1447 # Report the --help message.
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1452 cat <<_ACEOF
1453 \`configure' configures llvm 2.1cvs to adapt to many kinds of systems.
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1460 Defaults for the options are specified in brackets.
1462 Configuration:
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 [PREFIX]
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1484 For better control, use the options below.
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1506 _ACEOF
1508 cat <<\_ACEOF
1510 System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1514 _ACEOF
1517 if test -n "$ac_init_help"; then
1518 case $ac_init_help in
1519 short | recursive ) echo "Configuration of llvm 2.1cvs:";;
1520 esac
1521 cat <<\_ACEOF
1523 Optional Features:
1524 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1525 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1526 --enable-optimized
1527 --enable-assertions
1528 --enable-debug-runtime
1529 --enable-jit Enable Just In Time Compiling (default is YES)
1530 --enable-doxygen Build doxygen documentation (default is NO)
1531 --enable-threads Use threads if available (default is YES)
1532 --enable-pic Build LLVM with Position Independent Code (default
1533 is NO)
1534 --enable-targets Build specific host targets:
1535 all,host-only,{target-name} (default=all)
1536 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1537 %a (default is YES)
1538 --enable-ltdl-install install libltdl
1539 --enable-shared[=PKGS] build shared libraries
1540 [default=enable_shared_default]
1541 --enable-static[=PKGS] build static libraries
1542 [default=enable_static_default]
1543 --enable-fast-install[=PKGS]
1544 optimize for fast installation
1545 [default=enable_Fast_install_default]
1546 --disable-libtool-lock avoid locking (might break parallel builds)
1548 Optional Packages:
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1551 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1552 searches PATH)
1553 --with-extra-options Specify addtional options to compile LLVM with
1554 --with-tclinclude directory where tcl headers are
1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1556 --with-pic try to use only PIC/non-PIC objects [default=use
1557 both]
1558 --with-tags[=TAGS] include additional configurations [automatic]
1559 --with-udis86=<path> Use udis86 external x86 disassembler library
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 CPP C preprocessor
1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
1571 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1572 the first program found out of: `bison -y', `byacc', `yacc'.
1573 YFLAGS The list of arguments that will be passed by default to $YACC.
1574 This script will default YFLAGS to the empty string to avoid a
1575 default value of `-d' given by some make applications.
1576 CXXCPP C++ preprocessor
1577 F77 Fortran 77 compiler command
1578 FFLAGS Fortran 77 compiler flags
1580 Use these variables to override the choices made by `configure' or to help
1581 it to find libraries and programs with nonstandard names/locations.
1583 Report bugs to <llvmbugs@cs.uiuc.edu>.
1584 _ACEOF
1585 ac_status=$?
1588 if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591 test -d "$ac_dir" || continue
1592 ac_builddir=.
1594 case "$ac_dir" in
1595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1598 # A ".." for each directory in $ac_dir_suffix.
1599 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1600 case $ac_top_builddir_sub in
1601 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603 esac ;;
1604 esac
1605 ac_abs_top_builddir=$ac_pwd
1606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607 # for backward compatibility:
1608 ac_top_builddir=$ac_top_build_prefix
1610 case $srcdir in
1611 .) # We are building in place.
1612 ac_srcdir=.
1613 ac_top_srcdir=$ac_top_builddir_sub
1614 ac_abs_top_srcdir=$ac_pwd ;;
1615 [\\/]* | ?:[\\/]* ) # Absolute name.
1616 ac_srcdir=$srcdir$ac_dir_suffix;
1617 ac_top_srcdir=$srcdir
1618 ac_abs_top_srcdir=$srcdir ;;
1619 *) # Relative name.
1620 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621 ac_top_srcdir=$ac_top_build_prefix$srcdir
1622 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 esac
1624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1626 cd "$ac_dir" || { ac_status=$?; continue; }
1627 # Check for guested configure.
1628 if test -f "$ac_srcdir/configure.gnu"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631 elif test -f "$ac_srcdir/configure"; then
1632 echo &&
1633 $SHELL "$ac_srcdir/configure" --help=recursive
1634 else
1635 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636 fi || ac_status=$?
1637 cd "$ac_pwd" || { ac_status=$?; break; }
1638 done
1641 test -n "$ac_init_help" && exit $ac_status
1642 if $ac_init_version; then
1643 cat <<\_ACEOF
1644 llvm configure 2.1cvs
1645 generated by GNU Autoconf 2.60
1647 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1648 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1649 This configure script is free software; the Free Software Foundation
1650 gives unlimited permission to copy, distribute and modify it.
1652 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1653 _ACEOF
1654 exit
1656 cat >config.log <<_ACEOF
1657 This file contains any messages produced by compilers while
1658 running configure, to aid debugging if configure makes a mistake.
1660 It was created by llvm $as_me 2.1cvs, which was
1661 generated by GNU Autoconf 2.60. Invocation command line was
1663 $ $0 $@
1665 _ACEOF
1666 exec 5>>config.log
1668 cat <<_ASUNAME
1669 ## --------- ##
1670 ## Platform. ##
1671 ## --------- ##
1673 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1674 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1675 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1676 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1677 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1679 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1680 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1682 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1683 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1684 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1685 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1686 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1687 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1688 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1690 _ASUNAME
1692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 for as_dir in $PATH
1695 IFS=$as_save_IFS
1696 test -z "$as_dir" && as_dir=.
1697 echo "PATH: $as_dir"
1698 done
1699 IFS=$as_save_IFS
1701 } >&5
1703 cat >&5 <<_ACEOF
1706 ## ----------- ##
1707 ## Core tests. ##
1708 ## ----------- ##
1710 _ACEOF
1713 # Keep a trace of the command line.
1714 # Strip out --no-create and --no-recursion so they do not pile up.
1715 # Strip out --silent because we don't want to record it for future runs.
1716 # Also quote any args containing shell meta-characters.
1717 # Make two passes to allow for proper duplicate-argument suppression.
1718 ac_configure_args=
1719 ac_configure_args0=
1720 ac_configure_args1=
1721 ac_must_keep_next=false
1722 for ac_pass in 1 2
1724 for ac_arg
1726 case $ac_arg in
1727 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1729 | -silent | --silent | --silen | --sile | --sil)
1730 continue ;;
1731 *\'*)
1732 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1733 esac
1734 case $ac_pass in
1735 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1737 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1738 if test $ac_must_keep_next = true; then
1739 ac_must_keep_next=false # Got value, back to normal.
1740 else
1741 case $ac_arg in
1742 *=* | --config-cache | -C | -disable-* | --disable-* \
1743 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1744 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1745 | -with-* | --with-* | -without-* | --without-* | --x)
1746 case "$ac_configure_args0 " in
1747 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1748 esac
1750 -* ) ac_must_keep_next=true ;;
1751 esac
1753 ac_configure_args="$ac_configure_args '$ac_arg'"
1755 esac
1756 done
1757 done
1758 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1759 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1761 # When interrupted or exit'd, cleanup temporary files, and complete
1762 # config.log. We remove comments because anyway the quotes in there
1763 # would cause problems or look ugly.
1764 # WARNING: Use '\'' to represent an apostrophe within the trap.
1765 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1766 trap 'exit_status=$?
1767 # Save into config.log some information that might help in debugging.
1769 echo
1771 cat <<\_ASBOX
1772 ## ---------------- ##
1773 ## Cache variables. ##
1774 ## ---------------- ##
1775 _ASBOX
1776 echo
1777 # The following way of writing the cache mishandles newlines in values,
1779 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1780 eval ac_val=\$$ac_var
1781 case $ac_val in #(
1782 *${as_nl}*)
1783 case $ac_var in #(
1784 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1785 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1786 esac
1787 case $ac_var in #(
1788 _ | IFS | as_nl) ;; #(
1789 *) $as_unset $ac_var ;;
1790 esac ;;
1791 esac
1792 done
1793 (set) 2>&1 |
1794 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1795 *${as_nl}ac_space=\ *)
1796 sed -n \
1797 "s/'\''/'\''\\\\'\'''\''/g;
1798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1799 ;; #(
1801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1803 esac |
1804 sort
1806 echo
1808 cat <<\_ASBOX
1809 ## ----------------- ##
1810 ## Output variables. ##
1811 ## ----------------- ##
1812 _ASBOX
1813 echo
1814 for ac_var in $ac_subst_vars
1816 eval ac_val=\$$ac_var
1817 case $ac_val in
1818 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 esac
1820 echo "$ac_var='\''$ac_val'\''"
1821 done | sort
1822 echo
1824 if test -n "$ac_subst_files"; then
1825 cat <<\_ASBOX
1826 ## ------------------- ##
1827 ## File substitutions. ##
1828 ## ------------------- ##
1829 _ASBOX
1830 echo
1831 for ac_var in $ac_subst_files
1833 eval ac_val=\$$ac_var
1834 case $ac_val in
1835 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836 esac
1837 echo "$ac_var='\''$ac_val'\''"
1838 done | sort
1839 echo
1842 if test -s confdefs.h; then
1843 cat <<\_ASBOX
1844 ## ----------- ##
1845 ## confdefs.h. ##
1846 ## ----------- ##
1847 _ASBOX
1848 echo
1849 cat confdefs.h
1850 echo
1852 test "$ac_signal" != 0 &&
1853 echo "$as_me: caught signal $ac_signal"
1854 echo "$as_me: exit $exit_status"
1855 } >&5
1856 rm -f core *.core core.conftest.* &&
1857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1858 exit $exit_status
1860 for ac_signal in 1 2 13 15; do
1861 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1862 done
1863 ac_signal=0
1865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1866 rm -f -r conftest* confdefs.h
1868 # Predefined preprocessor variables.
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_NAME "$PACKAGE_NAME"
1872 _ACEOF
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877 _ACEOF
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1882 _ACEOF
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_STRING "$PACKAGE_STRING"
1887 _ACEOF
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1892 _ACEOF
1895 # Let the site file select an alternate cache file if it wants to.
1896 # Prefer explicitly selected file to automatically selected ones.
1897 if test -n "$CONFIG_SITE"; then
1898 set x "$CONFIG_SITE"
1899 elif test "x$prefix" != xNONE; then
1900 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1901 else
1902 set x "$ac_default_prefix/share/config.site" \
1903 "$ac_default_prefix/etc/config.site"
1905 shift
1906 for ac_site_file
1908 if test -r "$ac_site_file"; then
1909 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910 echo "$as_me: loading site script $ac_site_file" >&6;}
1911 sed 's/^/| /' "$ac_site_file" >&5
1912 . "$ac_site_file"
1914 done
1916 if test -r "$cache_file"; then
1917 # Some versions of bash will fail to source /dev/null (special
1918 # files actually), so we avoid doing that.
1919 if test -f "$cache_file"; then
1920 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921 echo "$as_me: loading cache $cache_file" >&6;}
1922 case $cache_file in
1923 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1924 *) . "./$cache_file";;
1925 esac
1927 else
1928 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929 echo "$as_me: creating cache $cache_file" >&6;}
1930 >$cache_file
1933 # Check that the precious variables saved in the cache have kept the same
1934 # value.
1935 ac_cache_corrupted=false
1936 for ac_var in $ac_precious_vars; do
1937 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1938 eval ac_new_set=\$ac_env_${ac_var}_set
1939 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1940 eval ac_new_val=\$ac_env_${ac_var}_value
1941 case $ac_old_set,$ac_new_set in
1942 set,)
1943 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1944 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1945 ac_cache_corrupted=: ;;
1946 ,set)
1947 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1948 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1949 ac_cache_corrupted=: ;;
1950 ,);;
1952 if test "x$ac_old_val" != "x$ac_new_val"; then
1953 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1954 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1955 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1956 echo "$as_me: former value: $ac_old_val" >&2;}
1957 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1958 echo "$as_me: current value: $ac_new_val" >&2;}
1959 ac_cache_corrupted=:
1960 fi;;
1961 esac
1962 # Pass precious variables to config.status.
1963 if test "$ac_new_set" = set; then
1964 case $ac_new_val in
1965 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1966 *) ac_arg=$ac_var=$ac_new_val ;;
1967 esac
1968 case " $ac_configure_args " in
1969 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1970 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1971 esac
1973 done
1974 if $ac_cache_corrupted; then
1975 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1976 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1977 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1978 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1979 { (exit 1); exit 1; }; }
2006 ac_ext=c
2007 ac_cpp='$CPP $CPPFLAGS'
2008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2022 ac_aux_dir=
2023 for ac_dir in autoconf "$srcdir"/autoconf; do
2024 if test -f "$ac_dir/install-sh"; then
2025 ac_aux_dir=$ac_dir
2026 ac_install_sh="$ac_aux_dir/install-sh -c"
2027 break
2028 elif test -f "$ac_dir/install.sh"; then
2029 ac_aux_dir=$ac_dir
2030 ac_install_sh="$ac_aux_dir/install.sh -c"
2031 break
2032 elif test -f "$ac_dir/shtool"; then
2033 ac_aux_dir=$ac_dir
2034 ac_install_sh="$ac_aux_dir/shtool install -c"
2035 break
2037 done
2038 if test -z "$ac_aux_dir"; then
2039 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2040 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2041 { (exit 1); exit 1; }; }
2044 # These three variables are undocumented and unsupported,
2045 # and are intended to be withdrawn in a future Autoconf release.
2046 # They can cause serious problems if a builder's source tree is in a directory
2047 # whose full name contains unusual characters.
2048 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2049 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2050 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2054 if test ${srcdir} != "." ; then
2055 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2056 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2057 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2058 { (exit 1); exit 1; }; }
2062 for i in `ls ${srcdir}/projects`
2064 if test -d ${srcdir}/projects/${i} ; then
2065 case ${i} in
2066 CVS) ;;
2067 sample) subdirs="$subdirs projects/sample"
2069 privbracket) subdirs="$subdirs projects/privbracket"
2071 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2073 llvm-test) subdirs="$subdirs projects/llvm-test"
2075 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2077 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2079 llvm-java) subdirs="$subdirs projects/llvm-java"
2081 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2083 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2085 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2088 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2089 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2091 esac
2093 done
2096 # Make sure we can run config.sub.
2097 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2098 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2100 { (exit 1); exit 1; }; }
2102 { echo "$as_me:$LINENO: checking build system type" >&5
2103 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_build+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 ac_build_alias=$build_alias
2108 test "x$ac_build_alias" = x &&
2109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2110 test "x$ac_build_alias" = x &&
2111 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113 { (exit 1); exit 1; }; }
2114 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2120 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121 echo "${ECHO_T}$ac_cv_build" >&6; }
2122 case $ac_cv_build in
2123 *-*-*) ;;
2124 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125 echo "$as_me: error: invalid value of canonical build" >&2;}
2126 { (exit 1); exit 1; }; };;
2127 esac
2128 build=$ac_cv_build
2129 ac_save_IFS=$IFS; IFS='-'
2130 set x $ac_cv_build
2131 shift
2132 build_cpu=$1
2133 build_vendor=$2
2134 shift; shift
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2137 build_os=$*
2138 IFS=$ac_save_IFS
2139 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2142 { echo "$as_me:$LINENO: checking host system type" >&5
2143 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2144 if test "${ac_cv_host+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 if test "x$host_alias" = x; then
2148 ac_cv_host=$ac_cv_build
2149 else
2150 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2157 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158 echo "${ECHO_T}$ac_cv_host" >&6; }
2159 case $ac_cv_host in
2160 *-*-*) ;;
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162 echo "$as_me: error: invalid value of canonical host" >&2;}
2163 { (exit 1); exit 1; }; };;
2164 esac
2165 host=$ac_cv_host
2166 ac_save_IFS=$IFS; IFS='-'
2167 set x $ac_cv_host
2168 shift
2169 host_cpu=$1
2170 host_vendor=$2
2171 shift; shift
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2174 host_os=$*
2175 IFS=$ac_save_IFS
2176 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2179 { echo "$as_me:$LINENO: checking target system type" >&5
2180 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2181 if test "${ac_cv_target+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184 if test "x$target_alias" = x; then
2185 ac_cv_target=$ac_cv_host
2186 else
2187 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2188 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2189 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2190 { (exit 1); exit 1; }; }
2194 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2195 echo "${ECHO_T}$ac_cv_target" >&6; }
2196 case $ac_cv_target in
2197 *-*-*) ;;
2198 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2199 echo "$as_me: error: invalid value of canonical target" >&2;}
2200 { (exit 1); exit 1; }; };;
2201 esac
2202 target=$ac_cv_target
2203 ac_save_IFS=$IFS; IFS='-'
2204 set x $ac_cv_target
2205 shift
2206 target_cpu=$1
2207 target_vendor=$2
2208 shift; shift
2209 # Remember, the first character of IFS is used to create $*,
2210 # except with old shells:
2211 target_os=$*
2212 IFS=$ac_save_IFS
2213 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2216 # The aliases save the names the user supplied, while $host etc.
2217 # will get canonicalized.
2218 test -n "$target_alias" &&
2219 test "$program_prefix$program_suffix$program_transform_name" = \
2220 NONENONEs,x,x, &&
2221 program_prefix=${target_alias}-
2223 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2224 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2225 if test "${llvm_cv_os_type+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227 else
2228 case $host in
2229 *-*-aix*)
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="AIX"
2233 llvm_cv_platform_type="Unix" ;;
2234 *-*-irix*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="IRIX"
2238 llvm_cv_platform_type="Unix" ;;
2239 *-*-cygwin*)
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="Cygwin"
2243 llvm_cv_platform_type="Unix" ;;
2244 *-*-darwin*)
2245 llvm_cv_link_all_option="-Wl,-all_load"
2246 llvm_cv_link_all_option="-Wl,-noall_load"
2247 llvm_cv_os_type="Darwin"
2248 llvm_cv_platform_type="Unix" ;;
2249 *-*-freebsd*)
2250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2252 llvm_cv_os_type="FreeBSD"
2253 llvm_cv_platform_type="Unix" ;;
2254 *-*-openbsd*)
2255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257 llvm_cv_os_type="OpenBSD"
2258 llvm_cv_platform_type="Unix" ;;
2259 *-*-netbsd*)
2260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2262 llvm_cv_os_type="NetBSD"
2263 llvm_cv_platform_type="Unix" ;;
2264 *-*-hpux*)
2265 llvm_cv_link_all_option="-Wl,--whole-archive"
2266 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267 llvm_cv_os_type="HP-UX"
2268 llvm_cv_platform_type="Unix" ;;
2269 *-*-interix*)
2270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2272 llvm_cv_os_type="Interix"
2273 llvm_cv_platform_type="Unix" ;;
2274 *-*-linux*)
2275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2277 llvm_cv_os_type="Linux"
2278 llvm_cv_platform_type="Unix" ;;
2279 *-*-solaris*)
2280 llvm_cv_link_all_option="-Wl,-z,allextract"
2281 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2282 llvm_cv_os_type="SunOS"
2283 llvm_cv_platform_type="Unix" ;;
2284 *-*-win32*)
2285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287 llvm_cv_os_type="Win32"
2288 llvm_cv_platform_type="Win32" ;;
2289 *-*-mingw*)
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="MingW"
2293 llvm_cv_platform_type="Win32" ;;
2295 llvm_cv_link_all_option=""
2296 llvm_cv_no_link_all_option=""
2297 llvm_cv_os_type="Unknown"
2298 llvm_cv_platform_type="Unknown" ;;
2299 esac
2301 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2302 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2304 if test "$llvm_cv_os_type" = "Unknown" ; then
2305 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2306 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2307 { (exit 1); exit 1; }; }
2310 OS=$llvm_cv_os_type
2313 LINKALL=$llvm_cv_link_all_option
2315 NOLINKALL=$llvm_cv_no_link_all_option
2318 case $llvm_cv_platform_type in
2319 Unix)
2321 cat >>confdefs.h <<\_ACEOF
2322 #define LLVM_ON_UNIX 1
2323 _ACEOF
2325 LLVM_ON_UNIX=1
2327 LLVM_ON_WIN32=0
2330 Win32)
2332 cat >>confdefs.h <<\_ACEOF
2333 #define LLVM_ON_WIN32 1
2334 _ACEOF
2336 LLVM_ON_UNIX=0
2338 LLVM_ON_WIN32=1
2341 esac
2343 { echo "$as_me:$LINENO: checking target architecture" >&5
2344 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2345 if test "${llvm_cv_target_arch+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 case $target in
2349 i?86-*) llvm_cv_target_arch="x86" ;;
2350 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2351 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2352 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2353 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2354 ia64-*) llvm_cv_target_arch="IA64" ;;
2355 arm-*) llvm_cv_target_arch="ARM" ;;
2356 *) llvm_cv_target_arch="Unknown" ;;
2357 esac
2359 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2360 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2362 if test "$llvm_cv_target_arch" = "Unknown" ; then
2363 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2364 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2367 ARCH=$llvm_cv_target_arch
2370 ac_ext=c
2371 ac_cpp='$CPP $CPPFLAGS'
2372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375 if test -n "$ac_tool_prefix"; then
2376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2377 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2380 if test "${ac_cv_prog_CC+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2397 done
2398 done
2399 IFS=$as_save_IFS
2403 CC=$ac_cv_prog_CC
2404 if test -n "$CC"; then
2405 { echo "$as_me:$LINENO: result: $CC" >&5
2406 echo "${ECHO_T}$CC" >&6; }
2407 else
2408 { echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6; }
2414 if test -z "$ac_cv_prog_CC"; then
2415 ac_ct_CC=$CC
2416 # Extract the first word of "gcc", so it can be a program name with args.
2417 set dummy gcc; ac_word=$2
2418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2433 ac_cv_prog_ac_ct_CC="gcc"
2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2437 done
2438 done
2439 IFS=$as_save_IFS
2443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444 if test -n "$ac_ct_CC"; then
2445 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446 echo "${ECHO_T}$ac_ct_CC" >&6; }
2447 else
2448 { echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6; }
2452 if test "x$ac_ct_CC" = x; then
2453 CC=""
2454 else
2455 case $cross_compiling:$ac_tool_warned in
2456 yes:)
2457 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2458 whose name does not start with the host triplet. If you think this
2459 configuration is useful to you, please write to autoconf@gnu.org." >&5
2460 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2461 whose name does not start with the host triplet. If you think this
2462 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2463 ac_tool_warned=yes ;;
2464 esac
2465 CC=$ac_ct_CC
2467 else
2468 CC="$ac_cv_prog_CC"
2471 if test -z "$CC"; then
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}cc; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_CC+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 if test -n "$CC"; then
2481 ac_cv_prog_CC="$CC" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_CC="${ac_tool_prefix}cc"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492 break 2
2494 done
2495 done
2496 IFS=$as_save_IFS
2500 CC=$ac_cv_prog_CC
2501 if test -n "$CC"; then
2502 { echo "$as_me:$LINENO: result: $CC" >&5
2503 echo "${ECHO_T}$CC" >&6; }
2504 else
2505 { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2512 if test -z "$CC"; then
2513 # Extract the first word of "cc", so it can be a program name with args.
2514 set dummy cc; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522 else
2523 ac_prog_rejected=no
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2532 ac_prog_rejected=yes
2533 continue
2535 ac_cv_prog_CC="cc"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 break 2
2539 done
2540 done
2541 IFS=$as_save_IFS
2543 if test $ac_prog_rejected = yes; then
2544 # We found a bogon in the path, so make sure we never use it.
2545 set dummy $ac_cv_prog_CC
2546 shift
2547 if test $# != 0; then
2548 # We chose a different compiler from the bogus one.
2549 # However, it has the same basename, so the bogon will be chosen
2550 # first if we set CC to just the basename; use the full file name.
2551 shift
2552 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2557 CC=$ac_cv_prog_CC
2558 if test -n "$CC"; then
2559 { echo "$as_me:$LINENO: result: $CC" >&5
2560 echo "${ECHO_T}$CC" >&6; }
2561 else
2562 { echo "$as_me:$LINENO: result: no" >&5
2563 echo "${ECHO_T}no" >&6; }
2568 if test -z "$CC"; then
2569 if test -n "$ac_tool_prefix"; then
2570 for ac_prog in cl.exe
2572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2593 done
2594 done
2595 IFS=$as_save_IFS
2599 CC=$ac_cv_prog_CC
2600 if test -n "$CC"; then
2601 { echo "$as_me:$LINENO: result: $CC" >&5
2602 echo "${ECHO_T}$CC" >&6; }
2603 else
2604 { echo "$as_me:$LINENO: result: no" >&5
2605 echo "${ECHO_T}no" >&6; }
2609 test -n "$CC" && break
2610 done
2612 if test -z "$CC"; then
2613 ac_ct_CC=$CC
2614 for ac_prog in cl.exe
2616 # Extract the first word of "$ac_prog", so it can be a program name with args.
2617 set dummy $ac_prog; ac_word=$2
2618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623 if test -n "$ac_ct_CC"; then
2624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2625 else
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_ac_ct_CC="$ac_prog"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 break 2
2637 done
2638 done
2639 IFS=$as_save_IFS
2643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2644 if test -n "$ac_ct_CC"; then
2645 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2646 echo "${ECHO_T}$ac_ct_CC" >&6; }
2647 else
2648 { echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6; }
2653 test -n "$ac_ct_CC" && break
2654 done
2656 if test "x$ac_ct_CC" = x; then
2657 CC=""
2658 else
2659 case $cross_compiling:$ac_tool_warned in
2660 yes:)
2661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2662 whose name does not start with the host triplet. If you think this
2663 configuration is useful to you, please write to autoconf@gnu.org." >&5
2664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet. If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2667 ac_tool_warned=yes ;;
2668 esac
2669 CC=$ac_ct_CC
2676 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2677 See \`config.log' for more details." >&5
2678 echo "$as_me: error: no acceptable C compiler found in \$PATH
2679 See \`config.log' for more details." >&2;}
2680 { (exit 1); exit 1; }; }
2682 # Provide some information about the compiler.
2683 echo "$as_me:$LINENO: checking for C compiler version" >&5
2684 ac_compiler=`set X $ac_compile; echo $2`
2685 { (ac_try="$ac_compiler --version >&5"
2686 case "(($ac_try" in
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2689 esac
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compiler --version >&5") 2>&5
2692 ac_status=$?
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2695 { (ac_try="$ac_compiler -v >&5"
2696 case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699 esac
2700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2701 (eval "$ac_compiler -v >&5") 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }
2705 { (ac_try="$ac_compiler -V >&5"
2706 case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_compiler -V >&5") 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }
2716 cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h. */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2724 main ()
2728 return 0;
2730 _ACEOF
2731 ac_clean_files_save=$ac_clean_files
2732 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2733 # Try to create an executable without -o first, disregard a.out.
2734 # It will help us diagnose broken compilers, and finding out an intuition
2735 # of exeext.
2736 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2737 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2738 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2740 # List of possible output files, starting from the most likely.
2741 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2742 # only as a last resort. b.out is created by i960 compilers.
2743 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2745 # The IRIX 6 linker writes into existing files which may not be
2746 # executable, retaining their permissions. Remove them first so a
2747 # subsequent execution test works.
2748 ac_rmfiles=
2749 for ac_file in $ac_files
2751 case $ac_file in
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2753 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2754 esac
2755 done
2756 rm -f $ac_rmfiles
2758 if { (ac_try="$ac_link_default"
2759 case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762 esac
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_link_default") 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; then
2768 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2769 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2770 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2771 # so that the user can short-circuit this test for compilers unknown to
2772 # Autoconf.
2773 for ac_file in $ac_files
2775 test -f "$ac_file" || continue
2776 case $ac_file in
2777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2779 [ab].out )
2780 # We found the default executable, but exeext='' is most
2781 # certainly right.
2782 break;;
2783 *.* )
2784 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2785 then :; else
2786 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2788 # We set ac_cv_exeext here because the later test for it is not
2789 # safe: cross compilers may not add the suffix if given an `-o'
2790 # argument, so we may need to know it at that point already.
2791 # Even if this section looks crufty: it has the advantage of
2792 # actually working.
2793 break;;
2795 break;;
2796 esac
2797 done
2798 test "$ac_cv_exeext" = no && ac_cv_exeext=
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2805 See \`config.log' for more details." >&5
2806 echo "$as_me: error: C compiler cannot create executables
2807 See \`config.log' for more details." >&2;}
2808 { (exit 77); exit 77; }; }
2811 ac_exeext=$ac_cv_exeext
2812 { echo "$as_me:$LINENO: result: $ac_file" >&5
2813 echo "${ECHO_T}$ac_file" >&6; }
2815 # Check that the compiler produces executables we can run. If not, either
2816 # the compiler is broken, or we cross compile.
2817 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2818 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2819 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2820 # If not cross compiling, check that we can run a simple program.
2821 if test "$cross_compiling" != yes; then
2822 if { ac_try='./$ac_file'
2823 { (case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2828 (eval "$ac_try") 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 cross_compiling=no
2833 else
2834 if test "$cross_compiling" = maybe; then
2835 cross_compiling=yes
2836 else
2837 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2838 If you meant to cross compile, use \`--host'.
2839 See \`config.log' for more details." >&5
2840 echo "$as_me: error: cannot run C compiled programs.
2841 If you meant to cross compile, use \`--host'.
2842 See \`config.log' for more details." >&2;}
2843 { (exit 1); exit 1; }; }
2847 { echo "$as_me:$LINENO: result: yes" >&5
2848 echo "${ECHO_T}yes" >&6; }
2850 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2851 ac_clean_files=$ac_clean_files_save
2852 # Check that the compiler produces executables we can run. If not, either
2853 # the compiler is broken, or we cross compile.
2854 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2855 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2856 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2857 echo "${ECHO_T}$cross_compiling" >&6; }
2859 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2860 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2861 if { (ac_try="$ac_link"
2862 case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865 esac
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_link") 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; then
2871 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2872 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2873 # work properly (i.e., refer to `conftest.exe'), while it won't with
2874 # `rm'.
2875 for ac_file in conftest.exe conftest conftest.*; do
2876 test -f "$ac_file" || continue
2877 case $ac_file in
2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2879 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2880 break;;
2881 * ) break;;
2882 esac
2883 done
2884 else
2885 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2886 See \`config.log' for more details." >&5
2887 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2888 See \`config.log' for more details." >&2;}
2889 { (exit 1); exit 1; }; }
2892 rm -f conftest$ac_cv_exeext
2893 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2894 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2896 rm -f conftest.$ac_ext
2897 EXEEXT=$ac_cv_exeext
2898 ac_exeext=$EXEEXT
2899 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2900 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2901 if test "${ac_cv_objext+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904 cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h. */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2912 main ()
2916 return 0;
2918 _ACEOF
2919 rm -f conftest.o conftest.obj
2920 if { (ac_try="$ac_compile"
2921 case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compile") 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; then
2930 for ac_file in conftest.o conftest.obj conftest.*; do
2931 test -f "$ac_file" || continue;
2932 case $ac_file in
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935 break;;
2936 esac
2937 done
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2942 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2943 See \`config.log' for more details." >&5
2944 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2945 See \`config.log' for more details." >&2;}
2946 { (exit 1); exit 1; }; }
2949 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2951 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2952 echo "${ECHO_T}$ac_cv_objext" >&6; }
2953 OBJEXT=$ac_cv_objext
2954 ac_objext=$OBJEXT
2955 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2956 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2957 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2968 main ()
2970 #ifndef __GNUC__
2971 choke me
2972 #endif
2975 return 0;
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (ac_try="$ac_compile"
2980 case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>conftest.er1
2986 ac_status=$?
2987 grep -v '^ *+' conftest.er1 >conftest.err
2988 rm -f conftest.er1
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } &&
2992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2993 { (case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_try") 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (case "(($ac_try" in
3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005 *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008 (eval "$ac_try") 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 ac_compiler_gnu=yes
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 ac_compiler_gnu=no
3020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3024 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3025 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3026 GCC=`test $ac_compiler_gnu = yes && echo yes`
3027 ac_test_CFLAGS=${CFLAGS+set}
3028 ac_save_CFLAGS=$CFLAGS
3029 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3030 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3031 if test "${ac_cv_prog_cc_g+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034 ac_save_c_werror_flag=$ac_c_werror_flag
3035 ac_c_werror_flag=yes
3036 ac_cv_prog_cc_g=no
3037 CFLAGS="-g"
3038 cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h. */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3046 main ()
3050 return 0;
3052 _ACEOF
3053 rm -f conftest.$ac_objext
3054 if { (ac_try="$ac_compile"
3055 case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_compile") 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
3074 ac_status=$?
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; } &&
3077 { ac_try='test -s conftest.$ac_objext'
3078 { (case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083 (eval "$ac_try") 2>&5
3084 ac_status=$?
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 ac_cv_prog_cc_g=yes
3088 else
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3092 CFLAGS=""
3093 cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h. */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3101 main ()
3105 return 0;
3107 _ACEOF
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3110 case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_compile") 2>conftest.er1
3116 ac_status=$?
3117 grep -v '^ *+' conftest.er1 >conftest.err
3118 rm -f conftest.er1
3119 cat conftest.err >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); } &&
3122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3123 { (case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_try") 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_try") 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3143 else
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3147 ac_c_werror_flag=$ac_save_c_werror_flag
3148 CFLAGS="-g"
3149 cat >conftest.$ac_ext <<_ACEOF
3150 /* confdefs.h. */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h. */
3157 main ()
3161 return 0;
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3172 ac_status=$?
3173 grep -v '^ *+' conftest.er1 >conftest.err
3174 rm -f conftest.er1
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } &&
3178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try='test -s conftest.$ac_objext'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 ac_cv_prog_cc_g=yes
3199 else
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 ac_c_werror_flag=$ac_save_c_werror_flag
3215 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3216 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3217 if test "$ac_test_CFLAGS" = set; then
3218 CFLAGS=$ac_save_CFLAGS
3219 elif test $ac_cv_prog_cc_g = yes; then
3220 if test "$GCC" = yes; then
3221 CFLAGS="-g -O2"
3222 else
3223 CFLAGS="-g"
3225 else
3226 if test "$GCC" = yes; then
3227 CFLAGS="-O2"
3228 else
3229 CFLAGS=
3232 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3233 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3234 if test "${ac_cv_prog_cc_c89+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 ac_cv_prog_cc_c89=no
3238 ac_save_CC=$CC
3239 cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h. */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3245 #include <stdarg.h>
3246 #include <stdio.h>
3247 #include <sys/types.h>
3248 #include <sys/stat.h>
3249 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3250 struct buf { int x; };
3251 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3252 static char *e (p, i)
3253 char **p;
3254 int i;
3256 return p[i];
3258 static char *f (char * (*g) (char **, int), char **p, ...)
3260 char *s;
3261 va_list v;
3262 va_start (v,p);
3263 s = g (p, va_arg (v,int));
3264 va_end (v);
3265 return s;
3268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3269 function prototypes and stuff, but not '\xHH' hex character constants.
3270 These don't provoke an error unfortunately, instead are silently treated
3271 as 'x'. The following induces an error, until -std is added to get
3272 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3273 array size at least. It's necessary to write '\x00'==0 to get something
3274 that's true only with -std. */
3275 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3278 inside strings and character constants. */
3279 #define FOO(x) 'x'
3280 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3282 int test (int i, double x);
3283 struct s1 {int (*f) (int a);};
3284 struct s2 {int (*f) (double a);};
3285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3286 int argc;
3287 char **argv;
3289 main ()
3291 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3293 return 0;
3295 _ACEOF
3296 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3297 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3299 CC="$ac_save_CC $ac_arg"
3300 rm -f conftest.$ac_objext
3301 if { (ac_try="$ac_compile"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_compile") 2>conftest.er1
3308 ac_status=$?
3309 grep -v '^ *+' conftest.er1 >conftest.err
3310 rm -f conftest.er1
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; } &&
3324 { ac_try='test -s conftest.$ac_objext'
3325 { (case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328 esac
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_try") 2>&5
3331 ac_status=$?
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_cv_prog_cc_c89=$ac_arg
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3342 rm -f core conftest.err conftest.$ac_objext
3343 test "x$ac_cv_prog_cc_c89" != "xno" && break
3344 done
3345 rm -f conftest.$ac_ext
3346 CC=$ac_save_CC
3349 # AC_CACHE_VAL
3350 case "x$ac_cv_prog_cc_c89" in
3352 { echo "$as_me:$LINENO: result: none needed" >&5
3353 echo "${ECHO_T}none needed" >&6; } ;;
3354 xno)
3355 { echo "$as_me:$LINENO: result: unsupported" >&5
3356 echo "${ECHO_T}unsupported" >&6; } ;;
3358 CC="$CC $ac_cv_prog_cc_c89"
3359 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3360 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3361 esac
3364 ac_ext=c
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3377 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3378 # On Suns, sometimes $CPP names a directory.
3379 if test -n "$CPP" && test -d "$CPP"; then
3380 CPP=
3382 if test -z "$CPP"; then
3383 if test "${ac_cv_prog_CPP+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386 # Double quotes because CPP needs to be expanded
3387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3389 ac_preproc_ok=false
3390 for ac_c_preproc_warn_flag in '' yes
3392 # Use a header file that comes with gcc, so configuring glibc
3393 # with a fresh cross-compiler works.
3394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3395 # <limits.h> exists even on freestanding compilers.
3396 # On the NeXT, cc -E runs the code through the compiler's parser,
3397 # not just through cpp. "Syntax error" is here to catch this case.
3398 cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h. */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3404 #ifdef __STDC__
3405 # include <limits.h>
3406 #else
3407 # include <assert.h>
3408 #endif
3409 Syntax error
3410 _ACEOF
3411 if { (ac_try="$ac_cpp conftest.$ac_ext"
3412 case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3418 ac_status=$?
3419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } >/dev/null; then
3424 if test -s conftest.err; then
3425 ac_cpp_err=$ac_c_preproc_warn_flag
3426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427 else
3428 ac_cpp_err=
3430 else
3431 ac_cpp_err=yes
3433 if test -z "$ac_cpp_err"; then
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 # Broken: fails on valid input.
3440 continue
3443 rm -f conftest.err conftest.$ac_ext
3445 # OK, works on sane cases. Now check whether nonexistent headers
3446 # can be detected and how.
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #include <ac_nonexistent.h>
3454 _ACEOF
3455 if { (ac_try="$ac_cpp conftest.$ac_ext"
3456 case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3462 ac_status=$?
3463 grep -v '^ *+' conftest.er1 >conftest.err
3464 rm -f conftest.er1
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } >/dev/null; then
3468 if test -s conftest.err; then
3469 ac_cpp_err=$ac_c_preproc_warn_flag
3470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3471 else
3472 ac_cpp_err=
3474 else
3475 ac_cpp_err=yes
3477 if test -z "$ac_cpp_err"; then
3478 # Broken: success on invalid input.
3479 continue
3480 else
3481 echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 # Passes both tests.
3485 ac_preproc_ok=:
3486 break
3489 rm -f conftest.err conftest.$ac_ext
3491 done
3492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3493 rm -f conftest.err conftest.$ac_ext
3494 if $ac_preproc_ok; then
3495 break
3498 done
3499 ac_cv_prog_CPP=$CPP
3502 CPP=$ac_cv_prog_CPP
3503 else
3504 ac_cv_prog_CPP=$CPP
3506 { echo "$as_me:$LINENO: result: $CPP" >&5
3507 echo "${ECHO_T}$CPP" >&6; }
3508 ac_preproc_ok=false
3509 for ac_c_preproc_warn_flag in '' yes
3511 # Use a header file that comes with gcc, so configuring glibc
3512 # with a fresh cross-compiler works.
3513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3514 # <limits.h> exists even on freestanding compilers.
3515 # On the NeXT, cc -E runs the code through the compiler's parser,
3516 # not just through cpp. "Syntax error" is here to catch this case.
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #ifdef __STDC__
3524 # include <limits.h>
3525 #else
3526 # include <assert.h>
3527 #endif
3528 Syntax error
3529 _ACEOF
3530 if { (ac_try="$ac_cpp conftest.$ac_ext"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537 ac_status=$?
3538 grep -v '^ *+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } >/dev/null; then
3543 if test -s conftest.err; then
3544 ac_cpp_err=$ac_c_preproc_warn_flag
3545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3546 else
3547 ac_cpp_err=
3549 else
3550 ac_cpp_err=yes
3552 if test -z "$ac_cpp_err"; then
3554 else
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 # Broken: fails on valid input.
3559 continue
3562 rm -f conftest.err conftest.$ac_ext
3564 # OK, works on sane cases. Now check whether nonexistent headers
3565 # can be detected and how.
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #include <ac_nonexistent.h>
3573 _ACEOF
3574 if { (ac_try="$ac_cpp conftest.$ac_ext"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3581 ac_status=$?
3582 grep -v '^ *+' conftest.er1 >conftest.err
3583 rm -f conftest.er1
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } >/dev/null; then
3587 if test -s conftest.err; then
3588 ac_cpp_err=$ac_c_preproc_warn_flag
3589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3590 else
3591 ac_cpp_err=
3593 else
3594 ac_cpp_err=yes
3596 if test -z "$ac_cpp_err"; then
3597 # Broken: success on invalid input.
3598 continue
3599 else
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 # Passes both tests.
3604 ac_preproc_ok=:
3605 break
3608 rm -f conftest.err conftest.$ac_ext
3610 done
3611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3612 rm -f conftest.err conftest.$ac_ext
3613 if $ac_preproc_ok; then
3615 else
3616 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3617 See \`config.log' for more details." >&5
3618 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3619 See \`config.log' for more details." >&2;}
3620 { (exit 1); exit 1; }; }
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3631 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3632 if test "${ac_cv_path_GREP+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635 # Extract the first word of "grep ggrep" to use in msg output
3636 if test -z "$GREP"; then
3637 set dummy grep ggrep; ac_prog_name=$2
3638 if test "${ac_cv_path_GREP+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 else
3641 ac_path_GREP_found=false
3642 # Loop through the user's path and test for each of PROGNAME-LIST
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_prog in grep ggrep; do
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3651 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3652 # Check for GNU ac_path_GREP and select it if it is found.
3653 # Check for GNU $ac_path_GREP
3654 case `"$ac_path_GREP" --version 2>&1` in
3655 *GNU*)
3656 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3658 ac_count=0
3659 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3660 while :
3662 cat "conftest.in" "conftest.in" >"conftest.tmp"
3663 mv "conftest.tmp" "conftest.in"
3664 cp "conftest.in" "conftest.nl"
3665 echo 'GREP' >> "conftest.nl"
3666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3668 ac_count=`expr $ac_count + 1`
3669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3670 # Best one so far, save it but keep looking for a better one
3671 ac_cv_path_GREP="$ac_path_GREP"
3672 ac_path_GREP_max=$ac_count
3674 # 10*(2^10) chars as input seems more than enough
3675 test $ac_count -gt 10 && break
3676 done
3677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3678 esac
3681 $ac_path_GREP_found && break 3
3682 done
3683 done
3685 done
3686 IFS=$as_save_IFS
3691 GREP="$ac_cv_path_GREP"
3692 if test -z "$GREP"; then
3693 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3694 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3695 { (exit 1); exit 1; }; }
3698 else
3699 ac_cv_path_GREP=$GREP
3704 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3705 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3706 GREP="$ac_cv_path_GREP"
3709 { echo "$as_me:$LINENO: checking for egrep" >&5
3710 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3711 if test "${ac_cv_path_EGREP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3715 then ac_cv_path_EGREP="$GREP -E"
3716 else
3717 # Extract the first word of "egrep" to use in msg output
3718 if test -z "$EGREP"; then
3719 set dummy egrep; ac_prog_name=$2
3720 if test "${ac_cv_path_EGREP+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723 ac_path_EGREP_found=false
3724 # Loop through the user's path and test for each of PROGNAME-LIST
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_prog in egrep; do
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3733 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3734 # Check for GNU ac_path_EGREP and select it if it is found.
3735 # Check for GNU $ac_path_EGREP
3736 case `"$ac_path_EGREP" --version 2>&1` in
3737 *GNU*)
3738 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3740 ac_count=0
3741 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3742 while :
3744 cat "conftest.in" "conftest.in" >"conftest.tmp"
3745 mv "conftest.tmp" "conftest.in"
3746 cp "conftest.in" "conftest.nl"
3747 echo 'EGREP' >> "conftest.nl"
3748 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3750 ac_count=`expr $ac_count + 1`
3751 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3752 # Best one so far, save it but keep looking for a better one
3753 ac_cv_path_EGREP="$ac_path_EGREP"
3754 ac_path_EGREP_max=$ac_count
3756 # 10*(2^10) chars as input seems more than enough
3757 test $ac_count -gt 10 && break
3758 done
3759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3760 esac
3763 $ac_path_EGREP_found && break 3
3764 done
3765 done
3767 done
3768 IFS=$as_save_IFS
3773 EGREP="$ac_cv_path_EGREP"
3774 if test -z "$EGREP"; then
3775 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3776 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3777 { (exit 1); exit 1; }; }
3780 else
3781 ac_cv_path_EGREP=$EGREP
3787 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3788 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3789 EGREP="$ac_cv_path_EGREP"
3792 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3793 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3794 if test "${ac_cv_header_stdc+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 #include <stdlib.h>
3804 #include <stdarg.h>
3805 #include <string.h>
3806 #include <float.h>
3809 main ()
3813 return 0;
3815 _ACEOF
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_compile") 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3831 { (case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_try") 2>&5
3837 ac_status=$?
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try='test -s conftest.$ac_objext'
3841 { (case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_try") 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 ac_cv_header_stdc=yes
3851 else
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 ac_cv_header_stdc=no
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 if test $ac_cv_header_stdc = yes; then
3861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 #include <string.h>
3870 _ACEOF
3871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3872 $EGREP "memchr" >/dev/null 2>&1; then
3874 else
3875 ac_cv_header_stdc=no
3877 rm -f conftest*
3881 if test $ac_cv_header_stdc = yes; then
3882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 #include <stdlib.h>
3891 _ACEOF
3892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3893 $EGREP "free" >/dev/null 2>&1; then
3895 else
3896 ac_cv_header_stdc=no
3898 rm -f conftest*
3902 if test $ac_cv_header_stdc = yes; then
3903 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3904 if test "$cross_compiling" = yes; then
3906 else
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 #include <ctype.h>
3914 #include <stdlib.h>
3915 #if ((' ' & 0x0FF) == 0x020)
3916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3918 #else
3919 # define ISLOWER(c) \
3920 (('a' <= (c) && (c) <= 'i') \
3921 || ('j' <= (c) && (c) <= 'r') \
3922 || ('s' <= (c) && (c) <= 'z'))
3923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3924 #endif
3926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3928 main ()
3930 int i;
3931 for (i = 0; i < 256; i++)
3932 if (XOR (islower (i), ISLOWER (i))
3933 || toupper (i) != TOUPPER (i))
3934 return 2;
3935 return 0;
3937 _ACEOF
3938 rm -f conftest$ac_exeext
3939 if { (ac_try="$ac_link"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_link") 2>&5
3946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3949 { (case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_try") 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3959 else
3960 echo "$as_me: program exited with status $ac_status" >&5
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3964 ( exit $ac_status )
3965 ac_cv_header_stdc=no
3967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3973 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3974 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3975 if test $ac_cv_header_stdc = yes; then
3977 cat >>confdefs.h <<\_ACEOF
3978 #define STDC_HEADERS 1
3979 _ACEOF
3983 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3993 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3994 inttypes.h stdint.h unistd.h
3996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002 cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h. */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 $ac_includes_default
4010 #include <$ac_header>
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4014 case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030 esac
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_try") 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040 esac
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4043 ac_status=$?
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 eval "$as_ac_Header=yes"
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 eval "$as_ac_Header=no"
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_res=`eval echo '${'$as_ac_Header'}'`
4057 { echo "$as_me:$LINENO: result: $ac_res" >&5
4058 echo "${ECHO_T}$ac_res" >&6; }
4059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4060 cat >>confdefs.h <<_ACEOF
4061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4062 _ACEOF
4066 done
4069 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4070 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4071 if test "${ac_cv_c_bigendian+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 # See if sys/param.h defines the BYTE_ORDER macro.
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h. */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 #include <sys/types.h>
4082 #include <sys/param.h>
4085 main ()
4087 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4088 bogus endian macros
4089 #endif
4092 return 0;
4094 _ACEOF
4095 rm -f conftest.$ac_objext
4096 if { (ac_try="$ac_compile"
4097 case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100 esac
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_compile") 2>conftest.er1
4103 ac_status=$?
4104 grep -v '^ *+' conftest.er1 >conftest.err
4105 rm -f conftest.er1
4106 cat conftest.err >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); } &&
4109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4110 { (case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4115 (eval "$ac_try") 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try='test -s conftest.$ac_objext'
4120 { (case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123 esac
4124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4125 (eval "$ac_try") 2>&5
4126 ac_status=$?
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 # It does; now see whether it defined to BIG_ENDIAN or not.
4130 cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h. */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h. */
4136 #include <sys/types.h>
4137 #include <sys/param.h>
4140 main ()
4142 #if BYTE_ORDER != BIG_ENDIAN
4143 not big endian
4144 #endif
4147 return 0;
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4152 case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_compile") 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4165 { (case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_try") 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_try") 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_c_bigendian=yes
4185 else
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4189 ac_cv_c_bigendian=no
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 else
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 # It does not; compile a test program.
4198 if test "$cross_compiling" = yes; then
4199 # try to guess the endianness by grepping values into an object file
4200 ac_cv_c_bigendian=unknown
4201 cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h. */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4207 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4208 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4209 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4210 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4211 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4212 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4214 main ()
4216 _ascii (); _ebcdic ();
4218 return 0;
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4223 case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_compile") 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239 esac
4240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; } &&
4245 { ac_try='test -s conftest.$ac_objext'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249 esac
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4252 ac_status=$?
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4255 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4256 ac_cv_c_bigendian=yes
4258 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4259 if test "$ac_cv_c_bigendian" = unknown; then
4260 ac_cv_c_bigendian=no
4261 else
4262 # finding both strings is unlikely to happen, but who knows?
4263 ac_cv_c_bigendian=unknown
4266 else
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 else
4275 cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 $ac_includes_default
4283 main ()
4286 /* Are we little or big endian? From Harbison&Steele. */
4287 union
4289 long int l;
4290 char c[sizeof (long int)];
4291 } u;
4292 u.l = 1;
4293 return u.c[sizeof (long int) - 1] == 1;
4296 return 0;
4298 _ACEOF
4299 rm -f conftest$ac_exeext
4300 if { (ac_try="$ac_link"
4301 case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_link") 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4310 { (case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313 esac
4314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_c_bigendian=no
4320 else
4321 echo "$as_me: program exited with status $ac_status" >&5
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4325 ( exit $ac_status )
4326 ac_cv_c_bigendian=yes
4328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4337 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4338 case $ac_cv_c_bigendian in
4339 yes)
4340 ENDIAN=big
4343 ENDIAN=little
4346 { { echo "$as_me:$LINENO: error: unknown endianness
4347 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4348 echo "$as_me: error: unknown endianness
4349 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4350 { (exit 1); exit 1; }; } ;;
4351 esac
4354 if test "$cross_compiling" = yes; then
4355 LLVM_CROSS_COMPILING=1
4358 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4359 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4360 if test "${ac_cv_build_exeext+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4364 ac_cv_build_exeext=.exe
4365 else
4366 ac_build_prefix=${build_alias}-
4368 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4369 set dummy ${ac_build_prefix}gcc; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375 if test -n "$BUILD_CC"; then
4376 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4381 IFS=$as_save_IFS
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4385 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 break 2
4389 done
4390 done
4391 IFS=$as_save_IFS
4395 BUILD_CC=$ac_cv_prog_BUILD_CC
4396 if test -n "$BUILD_CC"; then
4397 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4398 echo "${ECHO_T}$BUILD_CC" >&6; }
4399 else
4400 { echo "$as_me:$LINENO: result: no" >&5
4401 echo "${ECHO_T}no" >&6; }
4405 if test -z "$BUILD_CC"; then
4406 # Extract the first word of "gcc", so it can be a program name with args.
4407 set dummy gcc; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413 if test -n "$BUILD_CC"; then
4414 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_BUILD_CC="gcc"
4424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4427 done
4428 done
4429 IFS=$as_save_IFS
4433 BUILD_CC=$ac_cv_prog_BUILD_CC
4434 if test -n "$BUILD_CC"; then
4435 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4436 echo "${ECHO_T}$BUILD_CC" >&6; }
4437 else
4438 { echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6; }
4443 if test -z "$BUILD_CC"; then
4444 # Extract the first word of "cc", so it can be a program name with args.
4445 set dummy cc; ac_word=$2
4446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4448 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451 if test -n "$BUILD_CC"; then
4452 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4453 else
4454 ac_prog_rejected=no
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
4461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4463 ac_prog_rejected=yes
4464 continue
4466 ac_cv_prog_BUILD_CC="cc"
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4470 done
4471 done
4472 IFS=$as_save_IFS
4474 if test $ac_prog_rejected = yes; then
4475 # We found a bogon in the path, so make sure we never use it.
4476 set dummy $ac_cv_prog_BUILD_CC
4477 shift
4478 if test $# != 0; then
4479 # We chose a different compiler from the bogus one.
4480 # However, it has the same basename, so the bogon will be chosen
4481 # first if we set BUILD_CC to just the basename; use the full file name.
4482 shift
4483 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4488 BUILD_CC=$ac_cv_prog_BUILD_CC
4489 if test -n "$BUILD_CC"; then
4490 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4491 echo "${ECHO_T}$BUILD_CC" >&6; }
4492 else
4493 { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4500 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4501 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4502 { (exit 1); exit 1; }; }
4503 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4504 rm -f conftest*
4505 echo 'int main () { return 0; }' > conftest.$ac_ext
4506 ac_cv_build_exeext=
4507 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4508 (eval $ac_build_link) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; then
4512 for file in conftest.*; do
4513 case $file in
4514 *.c | *.o | *.obj) ;;
4515 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4516 esac
4517 done
4518 else
4519 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4520 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4521 { (exit 1); exit 1; }; }
4523 rm -f conftest*
4524 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4528 BUILD_EXEEXT=""
4529 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4530 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4531 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4532 ac_build_exeext=$BUILD_EXEEXT
4534 else
4535 LLVM_CROSS_COMPILING=0
4539 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4540 cvsbuild="yes"
4541 optimize="no"
4542 CVSBUILD=CVSBUILD=1
4544 else
4545 cvsbuild="no"
4546 optimize="yes"
4550 # Check whether --enable-optimized was given.
4551 if test "${enable_optimized+set}" = set; then
4552 enableval=$enable_optimized;
4553 else
4554 enableval=$optimize
4557 if test ${enableval} = "no" ; then
4558 ENABLE_OPTIMIZED=
4560 else
4561 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4565 # Check whether --enable-assertions was given.
4566 if test "${enable_assertions+set}" = set; then
4567 enableval=$enable_assertions;
4568 else
4569 enableval="yes"
4572 if test ${enableval} = "yes" ; then
4573 DISABLE_ASSERTIONS=
4575 else
4576 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4580 # Check whether --enable-debug-runtime was given.
4581 if test "${enable_debug_runtime+set}" = set; then
4582 enableval=$enable_debug_runtime;
4583 else
4584 enableval=no
4587 if test ${enableval} = "no" ; then
4588 DEBUG_RUNTIME=
4590 else
4591 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4595 # Check whether --enable-jit was given.
4596 if test "${enable_jit+set}" = set; then
4597 enableval=$enable_jit;
4598 else
4599 enableval=default
4602 if test ${enableval} = "no"
4603 then
4604 JIT=
4606 else
4607 case "$llvm_cv_target_arch" in
4608 x86) TARGET_HAS_JIT=1
4610 Sparc) TARGET_HAS_JIT=0
4612 PowerPC) TARGET_HAS_JIT=1
4614 x86_64) TARGET_HAS_JIT=1
4616 Alpha) TARGET_HAS_JIT=1
4618 IA64) TARGET_HAS_JIT=0
4620 ARM) TARGET_HAS_JIT=0
4622 *) TARGET_HAS_JIT=0
4624 esac
4627 # Check whether --enable-doxygen was given.
4628 if test "${enable_doxygen+set}" = set; then
4629 enableval=$enable_doxygen;
4630 else
4631 enableval=default
4634 case "$enableval" in
4635 yes) ENABLE_DOXYGEN=1
4637 no) ENABLE_DOXYGEN=0
4639 default) ENABLE_DOXYGEN=0
4641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4642 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4643 { (exit 1); exit 1; }; } ;;
4644 esac
4646 # Check whether --enable-threads was given.
4647 if test "${enable_threads+set}" = set; then
4648 enableval=$enable_threads;
4649 else
4650 enableval=default
4653 case "$enableval" in
4654 yes) ENABLE_THREADS=1
4656 no) ENABLE_THREADS=0
4658 default) ENABLE_THREADS=1
4660 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4661 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4662 { (exit 1); exit 1; }; } ;;
4663 esac
4665 cat >>confdefs.h <<_ACEOF
4666 #define ENABLE_THREADS $ENABLE_THREADS
4667 _ACEOF
4670 # Check whether --enable-pic was given.
4671 if test "${enable_pic+set}" = set; then
4672 enableval=$enable_pic;
4673 else
4674 enableval=default
4677 case "$enableval" in
4678 yes) ENABLE_PIC=1
4680 no) ENABLE_PIC=0
4682 default) ENABLE_PIC=0
4684 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4685 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4686 { (exit 1); exit 1; }; } ;;
4687 esac
4689 cat >>confdefs.h <<_ACEOF
4690 #define ENABLE_PIC $ENABLE_PIC
4691 _ACEOF
4694 TARGETS_TO_BUILD=""
4695 # Check whether --enable-targets was given.
4696 if test "${enable_targets+set}" = set; then
4697 enableval=$enable_targets;
4698 else
4699 enableval=all
4702 case "$enableval" in
4703 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4704 host-only)
4705 case "$llvm_cv_target_arch" in
4706 x86) TARGETS_TO_BUILD="X86" ;;
4707 x86_64) TARGETS_TO_BUILD="X86" ;;
4708 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4709 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4710 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4711 IA64) TARGETS_TO_BUILD="IA64" ;;
4712 ARM) TARGETS_TO_BUILD="ARM" ;;
4713 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4714 echo "$as_me: error: Can not set target to build" >&2;}
4715 { (exit 1); exit 1; }; } ;;
4716 esac
4718 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4719 case "$a_target" in
4720 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4721 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4722 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4723 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4724 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4725 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4726 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4727 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4728 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4729 { (exit 1); exit 1; }; } ;;
4730 esac
4731 done
4733 esac
4734 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4735 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4738 # Check whether --enable-cbe-printf-a was given.
4739 if test "${enable_cbe_printf_a+set}" = set; then
4740 enableval=$enable_cbe_printf_a;
4741 else
4742 enableval=default
4745 case "$enableval" in
4746 yes) ENABLE_CBE_PRINTF_A=1
4748 no) ENABLE_CBE_PRINTF_A=0
4750 default) ENABLE_CBE_PRINTF_A=1
4752 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4753 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4754 { (exit 1); exit 1; }; } ;;
4755 esac
4757 cat >>confdefs.h <<_ACEOF
4758 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4759 _ACEOF
4763 # Check whether --with-llvmgccdir was given.
4764 if test "${with_llvmgccdir+set}" = set; then
4765 withval=$with_llvmgccdir;
4766 else
4767 withval=default
4770 case "$withval" in
4771 default) WITH_LLVMGCCDIR=default ;;
4772 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4773 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4774 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4775 { (exit 1); exit 1; }; } ;;
4776 esac
4779 # Check whether --with-extra-options was given.
4780 if test "${with_extra_options+set}" = set; then
4781 withval=$with_extra_options;
4782 else
4783 withval=default
4786 case "$withval" in
4787 default) EXTRA_OPTIONS= ;;
4788 *) EXTRA_OPTIONS=$withval ;;
4789 esac
4790 EXTRA_OPTIONS=$EXTRA_OPTIONS
4794 ac_ext=c
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4800 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4801 # On Suns, sometimes $CPP names a directory.
4802 if test -n "$CPP" && test -d "$CPP"; then
4803 CPP=
4805 if test -z "$CPP"; then
4806 if test "${ac_cv_prog_CPP+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 # Double quotes because CPP needs to be expanded
4810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4812 ac_preproc_ok=false
4813 for ac_c_preproc_warn_flag in '' yes
4815 # Use a header file that comes with gcc, so configuring glibc
4816 # with a fresh cross-compiler works.
4817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4818 # <limits.h> exists even on freestanding compilers.
4819 # On the NeXT, cc -E runs the code through the compiler's parser,
4820 # not just through cpp. "Syntax error" is here to catch this case.
4821 cat >conftest.$ac_ext <<_ACEOF
4822 /* confdefs.h. */
4823 _ACEOF
4824 cat confdefs.h >>conftest.$ac_ext
4825 cat >>conftest.$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 #ifdef __STDC__
4828 # include <limits.h>
4829 #else
4830 # include <assert.h>
4831 #endif
4832 Syntax error
4833 _ACEOF
4834 if { (ac_try="$ac_cpp conftest.$ac_ext"
4835 case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838 esac
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null; then
4847 if test -s conftest.err; then
4848 ac_cpp_err=$ac_c_preproc_warn_flag
4849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4850 else
4851 ac_cpp_err=
4853 else
4854 ac_cpp_err=yes
4856 if test -z "$ac_cpp_err"; then
4858 else
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4862 # Broken: fails on valid input.
4863 continue
4866 rm -f conftest.err conftest.$ac_ext
4868 # OK, works on sane cases. Now check whether nonexistent headers
4869 # can be detected and how.
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 #include <ac_nonexistent.h>
4877 _ACEOF
4878 if { (ac_try="$ac_cpp conftest.$ac_ext"
4879 case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882 esac
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null; then
4891 if test -s conftest.err; then
4892 ac_cpp_err=$ac_c_preproc_warn_flag
4893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4894 else
4895 ac_cpp_err=
4897 else
4898 ac_cpp_err=yes
4900 if test -z "$ac_cpp_err"; then
4901 # Broken: success on invalid input.
4902 continue
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 # Passes both tests.
4908 ac_preproc_ok=:
4909 break
4912 rm -f conftest.err conftest.$ac_ext
4914 done
4915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4916 rm -f conftest.err conftest.$ac_ext
4917 if $ac_preproc_ok; then
4918 break
4921 done
4922 ac_cv_prog_CPP=$CPP
4925 CPP=$ac_cv_prog_CPP
4926 else
4927 ac_cv_prog_CPP=$CPP
4929 { echo "$as_me:$LINENO: result: $CPP" >&5
4930 echo "${ECHO_T}$CPP" >&6; }
4931 ac_preproc_ok=false
4932 for ac_c_preproc_warn_flag in '' yes
4934 # Use a header file that comes with gcc, so configuring glibc
4935 # with a fresh cross-compiler works.
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937 # <limits.h> exists even on freestanding compilers.
4938 # On the NeXT, cc -E runs the code through the compiler's parser,
4939 # not just through cpp. "Syntax error" is here to catch this case.
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #ifdef __STDC__
4947 # include <limits.h>
4948 #else
4949 # include <assert.h>
4950 #endif
4951 Syntax error
4952 _ACEOF
4953 if { (ac_try="$ac_cpp conftest.$ac_ext"
4954 case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957 esac
4958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } >/dev/null; then
4966 if test -s conftest.err; then
4967 ac_cpp_err=$ac_c_preproc_warn_flag
4968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4969 else
4970 ac_cpp_err=
4972 else
4973 ac_cpp_err=yes
4975 if test -z "$ac_cpp_err"; then
4977 else
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4981 # Broken: fails on valid input.
4982 continue
4985 rm -f conftest.err conftest.$ac_ext
4987 # OK, works on sane cases. Now check whether nonexistent headers
4988 # can be detected and how.
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h. */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 #include <ac_nonexistent.h>
4996 _ACEOF
4997 if { (ac_try="$ac_cpp conftest.$ac_ext"
4998 case "(($ac_try" in
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5001 esac
5002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5004 ac_status=$?
5005 grep -v '^ *+' conftest.er1 >conftest.err
5006 rm -f conftest.er1
5007 cat conftest.err >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } >/dev/null; then
5010 if test -s conftest.err; then
5011 ac_cpp_err=$ac_c_preproc_warn_flag
5012 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5013 else
5014 ac_cpp_err=
5016 else
5017 ac_cpp_err=yes
5019 if test -z "$ac_cpp_err"; then
5020 # Broken: success on invalid input.
5021 continue
5022 else
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5026 # Passes both tests.
5027 ac_preproc_ok=:
5028 break
5031 rm -f conftest.err conftest.$ac_ext
5033 done
5034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5035 rm -f conftest.err conftest.$ac_ext
5036 if $ac_preproc_ok; then
5038 else
5039 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5040 See \`config.log' for more details." >&5
5041 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5042 See \`config.log' for more details." >&2;}
5043 { (exit 1); exit 1; }; }
5046 ac_ext=c
5047 ac_cpp='$CPP $CPPFLAGS'
5048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052 ac_ext=c
5053 ac_cpp='$CPP $CPPFLAGS'
5054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5057 if test -n "$ac_tool_prefix"; then
5058 for ac_prog in gcc
5060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_prog_CC+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 if test -n "$CC"; then
5068 ac_cv_prog_CC="$CC" # Let the user override the test.
5069 else
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5081 done
5082 done
5083 IFS=$as_save_IFS
5087 CC=$ac_cv_prog_CC
5088 if test -n "$CC"; then
5089 { echo "$as_me:$LINENO: result: $CC" >&5
5090 echo "${ECHO_T}$CC" >&6; }
5091 else
5092 { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5097 test -n "$CC" && break
5098 done
5100 if test -z "$CC"; then
5101 ac_ct_CC=$CC
5102 for ac_prog in gcc
5104 # Extract the first word of "$ac_prog", so it can be a program name with args.
5105 set dummy $ac_prog; ac_word=$2
5106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111 if test -n "$ac_ct_CC"; then
5112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_ac_ct_CC="$ac_prog"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5132 if test -n "$ac_ct_CC"; then
5133 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5134 echo "${ECHO_T}$ac_ct_CC" >&6; }
5135 else
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5141 test -n "$ac_ct_CC" && break
5142 done
5144 if test "x$ac_ct_CC" = x; then
5145 CC=""
5146 else
5147 case $cross_compiling:$ac_tool_warned in
5148 yes:)
5149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5150 whose name does not start with the host triplet. If you think this
5151 configuration is useful to you, please write to autoconf@gnu.org." >&5
5152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5153 whose name does not start with the host triplet. If you think this
5154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5155 ac_tool_warned=yes ;;
5156 esac
5157 CC=$ac_ct_CC
5162 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5163 See \`config.log' for more details." >&5
5164 echo "$as_me: error: no acceptable C compiler found in \$PATH
5165 See \`config.log' for more details." >&2;}
5166 { (exit 1); exit 1; }; }
5168 # Provide some information about the compiler.
5169 echo "$as_me:$LINENO: checking for C compiler version" >&5
5170 ac_compiler=`set X $ac_compile; echo $2`
5171 { (ac_try="$ac_compiler --version >&5"
5172 case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175 esac
5176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177 (eval "$ac_compiler --version >&5") 2>&5
5178 ac_status=$?
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }
5181 { (ac_try="$ac_compiler -v >&5"
5182 case "(($ac_try" in
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5185 esac
5186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187 (eval "$ac_compiler -v >&5") 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }
5191 { (ac_try="$ac_compiler -V >&5"
5192 case "(($ac_try" in
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5195 esac
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_compiler -V >&5") 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }
5202 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5203 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5204 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h. */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5215 main ()
5217 #ifndef __GNUC__
5218 choke me
5219 #endif
5222 return 0;
5224 _ACEOF
5225 rm -f conftest.$ac_objext
5226 if { (ac_try="$ac_compile"
5227 case "(($ac_try" in
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5230 esac
5231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_compile") 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } &&
5239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5240 { (case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243 esac
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245 (eval "$ac_try") 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; } &&
5249 { ac_try='test -s conftest.$ac_objext'
5250 { (case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253 esac
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_try") 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 ac_compiler_gnu=yes
5260 else
5261 echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5264 ac_compiler_gnu=no
5267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5271 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5272 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5273 GCC=`test $ac_compiler_gnu = yes && echo yes`
5274 ac_test_CFLAGS=${CFLAGS+set}
5275 ac_save_CFLAGS=$CFLAGS
5276 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5277 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_cc_g+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 ac_save_c_werror_flag=$ac_c_werror_flag
5282 ac_c_werror_flag=yes
5283 ac_cv_prog_cc_g=no
5284 CFLAGS="-g"
5285 cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h. */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5293 main ()
5297 return 0;
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (ac_try="$ac_compile"
5302 case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5315 { (case "(($ac_try" in
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5318 esac
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_try") 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; } &&
5324 { ac_try='test -s conftest.$ac_objext'
5325 { (case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328 esac
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_try") 2>&5
5331 ac_status=$?
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5334 ac_cv_prog_cc_g=yes
5335 else
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5339 CFLAGS=""
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h. */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5348 main ()
5352 return 0;
5354 _ACEOF
5355 rm -f conftest.$ac_objext
5356 if { (ac_try="$ac_compile"
5357 case "(($ac_try" in
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5360 esac
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_compile") 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } &&
5369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5370 { (case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5373 esac
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_try") 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; } &&
5379 { ac_try='test -s conftest.$ac_objext'
5380 { (case "(($ac_try" in
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5383 esac
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_try") 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5390 else
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 ac_c_werror_flag=$ac_save_c_werror_flag
5395 CFLAGS="-g"
5396 cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h. */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5404 main ()
5408 return 0;
5410 _ACEOF
5411 rm -f conftest.$ac_objext
5412 if { (ac_try="$ac_compile"
5413 case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416 esac
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_compile") 2>conftest.er1
5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5426 { (case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try='test -s conftest.$ac_objext'
5436 { (case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439 esac
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_try") 2>&5
5442 ac_status=$?
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_cv_prog_cc_g=yes
5446 else
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 ac_c_werror_flag=$ac_save_c_werror_flag
5462 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5463 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5464 if test "$ac_test_CFLAGS" = set; then
5465 CFLAGS=$ac_save_CFLAGS
5466 elif test $ac_cv_prog_cc_g = yes; then
5467 if test "$GCC" = yes; then
5468 CFLAGS="-g -O2"
5469 else
5470 CFLAGS="-g"
5472 else
5473 if test "$GCC" = yes; then
5474 CFLAGS="-O2"
5475 else
5476 CFLAGS=
5479 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5480 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5481 if test "${ac_cv_prog_cc_c89+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484 ac_cv_prog_cc_c89=no
5485 ac_save_CC=$CC
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 #include <stdarg.h>
5493 #include <stdio.h>
5494 #include <sys/types.h>
5495 #include <sys/stat.h>
5496 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5497 struct buf { int x; };
5498 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5499 static char *e (p, i)
5500 char **p;
5501 int i;
5503 return p[i];
5505 static char *f (char * (*g) (char **, int), char **p, ...)
5507 char *s;
5508 va_list v;
5509 va_start (v,p);
5510 s = g (p, va_arg (v,int));
5511 va_end (v);
5512 return s;
5515 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5516 function prototypes and stuff, but not '\xHH' hex character constants.
5517 These don't provoke an error unfortunately, instead are silently treated
5518 as 'x'. The following induces an error, until -std is added to get
5519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5520 array size at least. It's necessary to write '\x00'==0 to get something
5521 that's true only with -std. */
5522 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5524 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5525 inside strings and character constants. */
5526 #define FOO(x) 'x'
5527 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5529 int test (int i, double x);
5530 struct s1 {int (*f) (int a);};
5531 struct s2 {int (*f) (double a);};
5532 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5533 int argc;
5534 char **argv;
5536 main ()
5538 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5540 return 0;
5542 _ACEOF
5543 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5544 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5546 CC="$ac_save_CC $ac_arg"
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5549 case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552 esac
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_compile") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } &&
5561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5562 { (case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_try") 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 ac_cv_prog_cc_c89=$ac_arg
5582 else
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5589 rm -f core conftest.err conftest.$ac_objext
5590 test "x$ac_cv_prog_cc_c89" != "xno" && break
5591 done
5592 rm -f conftest.$ac_ext
5593 CC=$ac_save_CC
5596 # AC_CACHE_VAL
5597 case "x$ac_cv_prog_cc_c89" in
5599 { echo "$as_me:$LINENO: result: none needed" >&5
5600 echo "${ECHO_T}none needed" >&6; } ;;
5601 xno)
5602 { echo "$as_me:$LINENO: result: unsupported" >&5
5603 echo "${ECHO_T}unsupported" >&6; } ;;
5605 CC="$CC $ac_cv_prog_cc_c89"
5606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5607 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5608 esac
5611 ac_ext=c
5612 ac_cpp='$CPP $CPPFLAGS'
5613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5617 ac_ext=cpp
5618 ac_cpp='$CXXCPP $CPPFLAGS'
5619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5622 if test -z "$CXX"; then
5623 if test -n "$CCC"; then
5624 CXX=$CCC
5625 else
5626 if test -n "$ac_tool_prefix"; then
5627 for ac_prog in g++
5629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5633 if test "${ac_cv_prog_CXX+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 if test -n "$CXX"; then
5637 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5650 done
5651 done
5652 IFS=$as_save_IFS
5656 CXX=$ac_cv_prog_CXX
5657 if test -n "$CXX"; then
5658 { echo "$as_me:$LINENO: result: $CXX" >&5
5659 echo "${ECHO_T}$CXX" >&6; }
5660 else
5661 { echo "$as_me:$LINENO: result: no" >&5
5662 echo "${ECHO_T}no" >&6; }
5666 test -n "$CXX" && break
5667 done
5669 if test -z "$CXX"; then
5670 ac_ct_CXX=$CXX
5671 for ac_prog in g++
5673 # Extract the first word of "$ac_prog", so it can be a program name with args.
5674 set dummy $ac_prog; ac_word=$2
5675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5677 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680 if test -n "$ac_ct_CXX"; then
5681 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5682 else
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5686 IFS=$as_save_IFS
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5690 ac_cv_prog_ac_ct_CXX="$ac_prog"
5691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 break 2
5694 done
5695 done
5696 IFS=$as_save_IFS
5700 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5701 if test -n "$ac_ct_CXX"; then
5702 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5703 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5704 else
5705 { echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6; }
5710 test -n "$ac_ct_CXX" && break
5711 done
5713 if test "x$ac_ct_CXX" = x; then
5714 CXX="g++"
5715 else
5716 case $cross_compiling:$ac_tool_warned in
5717 yes:)
5718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5719 whose name does not start with the host triplet. If you think this
5720 configuration is useful to you, please write to autoconf@gnu.org." >&5
5721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5722 whose name does not start with the host triplet. If you think this
5723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5724 ac_tool_warned=yes ;;
5725 esac
5726 CXX=$ac_ct_CXX
5732 # Provide some information about the compiler.
5733 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5734 ac_compiler=`set X $ac_compile; echo $2`
5735 { (ac_try="$ac_compiler --version >&5"
5736 case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compiler --version >&5") 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }
5745 { (ac_try="$ac_compiler -v >&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 -v >&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); }
5766 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5767 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5768 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5779 main ()
5781 #ifndef __GNUC__
5782 choke me
5783 #endif
5786 return 0;
5788 _ACEOF
5789 rm -f conftest.$ac_objext
5790 if { (ac_try="$ac_compile"
5791 case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_compile") 2>conftest.er1
5797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5804 { (case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_try") 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5823 ac_compiler_gnu=yes
5824 else
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 ac_compiler_gnu=no
5831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5835 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5836 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5837 GXX=`test $ac_compiler_gnu = yes && echo yes`
5838 ac_test_CXXFLAGS=${CXXFLAGS+set}
5839 ac_save_CXXFLAGS=$CXXFLAGS
5840 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5841 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5842 if test "${ac_cv_prog_cxx_g+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5846 ac_cxx_werror_flag=yes
5847 ac_cv_prog_cxx_g=no
5848 CXXFLAGS="-g"
5849 cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h. */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5857 main ()
5861 return 0;
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (ac_try="$ac_compile"
5866 case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5879 { (case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_try") 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; } &&
5888 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5898 ac_cv_prog_cxx_g=yes
5899 else
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5903 CXXFLAGS=""
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5912 main ()
5916 return 0;
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (ac_try="$ac_compile"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5927 ac_status=$?
5928 grep -v '^ *+' conftest.er1 >conftest.err
5929 rm -f conftest.er1
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } &&
5933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5934 { (case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_try") 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; } &&
5943 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5958 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5959 CXXFLAGS="-g"
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5968 main ()
5972 return 0;
5974 _ACEOF
5975 rm -f conftest.$ac_objext
5976 if { (ac_try="$ac_compile"
5977 case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5990 { (case "(($ac_try" in
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5993 esac
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_try") 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6009 ac_cv_prog_cxx_g=yes
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6026 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6027 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6028 if test "$ac_test_CXXFLAGS" = set; then
6029 CXXFLAGS=$ac_save_CXXFLAGS
6030 elif test $ac_cv_prog_cxx_g = yes; then
6031 if test "$GXX" = yes; then
6032 CXXFLAGS="-g -O2"
6033 else
6034 CXXFLAGS="-g"
6036 else
6037 if test "$GXX" = yes; then
6038 CXXFLAGS="-O2"
6039 else
6040 CXXFLAGS=
6043 ac_ext=c
6044 ac_cpp='$CPP $CPPFLAGS'
6045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6049 { echo "$as_me:$LINENO: checking " >&5
6050 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6051 if test "${ac_cv_has_flex+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 for ac_prog in flex lex
6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
6057 set dummy $ac_prog; ac_word=$2
6058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6060 if test "${ac_cv_prog_LEX+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063 if test -n "$LEX"; then
6064 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6069 IFS=$as_save_IFS
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_prog_LEX="$ac_prog"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 break 2
6077 done
6078 done
6079 IFS=$as_save_IFS
6083 LEX=$ac_cv_prog_LEX
6084 if test -n "$LEX"; then
6085 { echo "$as_me:$LINENO: result: $LEX" >&5
6086 echo "${ECHO_T}$LEX" >&6; }
6087 else
6088 { echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6; }
6093 test -n "$LEX" && break
6094 done
6095 test -n "$LEX" || LEX=":"
6097 if test -z "$LEXLIB"
6098 then
6099 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6100 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6101 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 else
6104 ac_check_lib_save_LIBS=$LIBS
6105 LIBS="-lfl $LIBS"
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6113 /* Override any GCC internal prototype to avoid an error.
6114 Use char because int might match the return type of a GCC
6115 builtin and then its argument prototype would still apply. */
6116 #ifdef __cplusplus
6117 extern "C"
6118 #endif
6119 char yywrap ();
6121 main ()
6123 return yywrap ();
6125 return 0;
6127 _ACEOF
6128 rm -f conftest.$ac_objext conftest$ac_exeext
6129 if { (ac_try="$ac_link"
6130 case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_link") 2>conftest.er1
6136 ac_status=$?
6137 grep -v '^ *+' conftest.er1 >conftest.err
6138 rm -f conftest.er1
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6143 { (case "(($ac_try" in
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6146 esac
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_try") 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest$ac_exeext'
6153 { (case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_try") 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 ac_cv_lib_fl_yywrap=yes
6163 else
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6167 ac_cv_lib_fl_yywrap=no
6170 rm -f core conftest.err conftest.$ac_objext \
6171 conftest$ac_exeext conftest.$ac_ext
6172 LIBS=$ac_check_lib_save_LIBS
6174 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6175 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6176 if test $ac_cv_lib_fl_yywrap = yes; then
6177 LEXLIB="-lfl"
6178 else
6179 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6180 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6181 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184 ac_check_lib_save_LIBS=$LIBS
6185 LIBS="-ll $LIBS"
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h. */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6193 /* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
6196 #ifdef __cplusplus
6197 extern "C"
6198 #endif
6199 char yywrap ();
6201 main ()
6203 return yywrap ();
6205 return 0;
6207 _ACEOF
6208 rm -f conftest.$ac_objext conftest$ac_exeext
6209 if { (ac_try="$ac_link"
6210 case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_link") 2>conftest.er1
6216 ac_status=$?
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6223 { (case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6226 esac
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_try") 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest$ac_exeext'
6233 { (case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236 esac
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_try") 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_cv_lib_l_yywrap=yes
6243 else
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6247 ac_cv_lib_l_yywrap=no
6250 rm -f core conftest.err conftest.$ac_objext \
6251 conftest$ac_exeext conftest.$ac_ext
6252 LIBS=$ac_check_lib_save_LIBS
6254 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6255 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6256 if test $ac_cv_lib_l_yywrap = yes; then
6257 LEXLIB="-ll"
6264 if test "x$LEX" != "x:"; then
6265 { echo "$as_me:$LINENO: checking lex output file root" >&5
6266 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6267 if test "${ac_cv_prog_lex_root+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 # The minimal lex program is just a single line: %%. But some broken lexes
6271 # (Solaris, I think it was) want two %% lines, so accommodate them.
6272 cat >conftest.l <<_ACEOF
6275 _ACEOF
6276 { (ac_try="$LEX conftest.l"
6277 case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$LEX conftest.l") 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }
6286 if test -f lex.yy.c; then
6287 ac_cv_prog_lex_root=lex.yy
6288 elif test -f lexyy.c; then
6289 ac_cv_prog_lex_root=lexyy
6290 else
6291 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6292 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6293 { (exit 1); exit 1; }; }
6296 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6297 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6298 rm -f conftest.l
6299 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6301 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6302 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6303 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 # POSIX says lex can declare yytext either as a pointer or an array; the
6307 # default is implementation-dependent. Figure out which it is, since
6308 # not all implementations provide the %pointer and %array declarations.
6309 ac_cv_prog_lex_yytext_pointer=no
6310 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6311 ac_save_LIBS=$LIBS
6312 LIBS="$LIBS $LEXLIB"
6313 cat >conftest.$ac_ext <<_ACEOF
6314 `cat $LEX_OUTPUT_ROOT.c`
6315 _ACEOF
6316 rm -f conftest.$ac_objext conftest$ac_exeext
6317 if { (ac_try="$ac_link"
6318 case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_link") 2>conftest.er1
6324 ac_status=$?
6325 grep -v '^ *+' conftest.er1 >conftest.err
6326 rm -f conftest.er1
6327 cat conftest.err >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6331 { (case "(($ac_try" in
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6334 esac
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_try") 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; } &&
6340 { ac_try='test -s conftest$ac_exeext'
6341 { (case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344 esac
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_try") 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 ac_cv_prog_lex_yytext_pointer=yes
6351 else
6352 echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6358 rm -f core conftest.err conftest.$ac_objext \
6359 conftest$ac_exeext conftest.$ac_ext
6360 LIBS=$ac_save_LIBS
6361 rm -f "${LEX_OUTPUT_ROOT}.c"
6364 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6365 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6366 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6368 cat >>confdefs.h <<\_ACEOF
6369 #define YYTEXT_POINTER 1
6370 _ACEOF
6377 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6378 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6379 if test "$LEX" != "flex"; then
6380 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6381 echo "$as_me: error: flex not found but required" >&2;}
6382 { (exit 1); exit 1; }; }
6383 else
6384 FLEX=flex
6388 { echo "$as_me:$LINENO: checking " >&5
6389 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6390 if test "${llvm_cv_has_bison+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393 for ac_prog in 'bison -y' byacc
6395 # Extract the first word of "$ac_prog", so it can be a program name with args.
6396 set dummy $ac_prog; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_prog_YACC+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 if test -n "$YACC"; then
6403 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_prog_YACC="$ac_prog"
6413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6416 done
6417 done
6418 IFS=$as_save_IFS
6422 YACC=$ac_cv_prog_YACC
6423 if test -n "$YACC"; then
6424 { echo "$as_me:$LINENO: result: $YACC" >&5
6425 echo "${ECHO_T}$YACC" >&6; }
6426 else
6427 { echo "$as_me:$LINENO: result: no" >&5
6428 echo "${ECHO_T}no" >&6; }
6432 test -n "$YACC" && break
6433 done
6434 test -n "$YACC" || YACC="yacc"
6437 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6438 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6439 if test "$YACC" != "bison -y"; then
6441 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6442 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6443 else
6444 BISON=bison
6448 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6449 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6450 if test "${lt_cv_path_NM+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453 if test -n "$NM"; then
6454 # Let the user override the test.
6455 lt_cv_path_NM="$NM"
6456 else
6457 lt_nm_to_check="${ac_tool_prefix}nm"
6458 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6459 lt_nm_to_check="$lt_nm_to_check nm"
6461 for lt_tmp_nm in $lt_nm_to_check; do
6462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6463 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6464 IFS="$lt_save_ifs"
6465 test -z "$ac_dir" && ac_dir=.
6466 tmp_nm="$ac_dir/$lt_tmp_nm"
6467 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6468 # Check to see if the nm accepts a BSD-compat flag.
6469 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6470 # nm: unknown option "B" ignored
6471 # Tru64's nm complains that /dev/null is an invalid object file
6472 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6473 */dev/null* | *'Invalid file or object type'*)
6474 lt_cv_path_NM="$tmp_nm -B"
6475 break
6478 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6479 */dev/null*)
6480 lt_cv_path_NM="$tmp_nm -p"
6481 break
6484 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6485 continue # so that we can try to find one that supports BSD flags
6487 esac
6489 esac
6491 done
6492 IFS="$lt_save_ifs"
6493 done
6494 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6497 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6498 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6499 NM="$lt_cv_path_NM"
6503 { echo "$as_me:$LINENO: checking for GNU make" >&5
6504 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6505 if test "${llvm_cv_gnu_make_command+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508 llvm_cv_gnu_make_command=''
6509 for a in "$MAKE" make gmake gnumake ; do
6510 if test -z "$a" ; then continue ; fi ;
6511 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6512 then
6513 llvm_cv_gnu_make_command=$a ;
6514 break;
6516 done
6518 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6519 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6520 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6521 ifGNUmake='' ;
6522 else
6523 ifGNUmake='#' ;
6524 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6525 echo "${ECHO_T}\"Not found\"" >&6; };
6529 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6530 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6531 LN_S=$as_ln_s
6532 if test "$LN_S" = "ln -s"; then
6533 { echo "$as_me:$LINENO: result: yes" >&5
6534 echo "${ECHO_T}yes" >&6; }
6535 else
6536 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6537 echo "${ECHO_T}no, using $LN_S" >&6; }
6540 # Extract the first word of "cmp", so it can be a program name with args.
6541 set dummy cmp; ac_word=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_path_CMP+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547 case $CMP in
6548 [\\/]* | ?:[\\/]*)
6549 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6563 done
6564 done
6565 IFS=$as_save_IFS
6567 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6569 esac
6571 CMP=$ac_cv_path_CMP
6572 if test -n "$CMP"; then
6573 { echo "$as_me:$LINENO: result: $CMP" >&5
6574 echo "${ECHO_T}$CMP" >&6; }
6575 else
6576 { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6581 # Extract the first word of "cp", so it can be a program name with args.
6582 set dummy cp; ac_word=$2
6583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585 if test "${ac_cv_path_CP+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588 case $CP in
6589 [\\/]* | ?:[\\/]*)
6590 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6604 done
6605 done
6606 IFS=$as_save_IFS
6608 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6610 esac
6612 CP=$ac_cv_path_CP
6613 if test -n "$CP"; then
6614 { echo "$as_me:$LINENO: result: $CP" >&5
6615 echo "${ECHO_T}$CP" >&6; }
6616 else
6617 { echo "$as_me:$LINENO: result: no" >&5
6618 echo "${ECHO_T}no" >&6; }
6622 # Extract the first word of "date", so it can be a program name with args.
6623 set dummy date; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_path_DATE+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629 case $DATE in
6630 [\\/]* | ?:[\\/]*)
6631 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6645 done
6646 done
6647 IFS=$as_save_IFS
6649 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6651 esac
6653 DATE=$ac_cv_path_DATE
6654 if test -n "$DATE"; then
6655 { echo "$as_me:$LINENO: result: $DATE" >&5
6656 echo "${ECHO_T}$DATE" >&6; }
6657 else
6658 { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6663 # Extract the first word of "find", so it can be a program name with args.
6664 set dummy find; ac_word=$2
6665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667 if test "${ac_cv_path_FIND+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670 case $FIND in
6671 [\\/]* | ?:[\\/]*)
6672 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6686 done
6687 done
6688 IFS=$as_save_IFS
6690 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6692 esac
6694 FIND=$ac_cv_path_FIND
6695 if test -n "$FIND"; then
6696 { echo "$as_me:$LINENO: result: $FIND" >&5
6697 echo "${ECHO_T}$FIND" >&6; }
6698 else
6699 { echo "$as_me:$LINENO: result: no" >&5
6700 echo "${ECHO_T}no" >&6; }
6704 # Extract the first word of "grep", so it can be a program name with args.
6705 set dummy grep; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_GREP+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 case $GREP in
6712 [\\/]* | ?:[\\/]*)
6713 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6727 done
6728 done
6729 IFS=$as_save_IFS
6731 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6733 esac
6735 GREP=$ac_cv_path_GREP
6736 if test -n "$GREP"; then
6737 { echo "$as_me:$LINENO: result: $GREP" >&5
6738 echo "${ECHO_T}$GREP" >&6; }
6739 else
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6745 # Extract the first word of "mkdir", so it can be a program name with args.
6746 set dummy mkdir; ac_word=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_path_MKDIR+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752 case $MKDIR in
6753 [\\/]* | ?:[\\/]*)
6754 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6768 done
6769 done
6770 IFS=$as_save_IFS
6772 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6774 esac
6776 MKDIR=$ac_cv_path_MKDIR
6777 if test -n "$MKDIR"; then
6778 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6779 echo "${ECHO_T}$MKDIR" >&6; }
6780 else
6781 { echo "$as_me:$LINENO: result: no" >&5
6782 echo "${ECHO_T}no" >&6; }
6786 # Extract the first word of "mv", so it can be a program name with args.
6787 set dummy mv; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_path_MV+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793 case $MV in
6794 [\\/]* | ?:[\\/]*)
6795 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6809 done
6810 done
6811 IFS=$as_save_IFS
6813 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6815 esac
6817 MV=$ac_cv_path_MV
6818 if test -n "$MV"; then
6819 { echo "$as_me:$LINENO: result: $MV" >&5
6820 echo "${ECHO_T}$MV" >&6; }
6821 else
6822 { echo "$as_me:$LINENO: result: no" >&5
6823 echo "${ECHO_T}no" >&6; }
6827 if test -n "$ac_tool_prefix"; then
6828 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6829 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_prog_RANLIB+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835 if test -n "$RANLIB"; then
6836 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6849 done
6850 done
6851 IFS=$as_save_IFS
6855 RANLIB=$ac_cv_prog_RANLIB
6856 if test -n "$RANLIB"; then
6857 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6858 echo "${ECHO_T}$RANLIB" >&6; }
6859 else
6860 { echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6; }
6866 if test -z "$ac_cv_prog_RANLIB"; then
6867 ac_ct_RANLIB=$RANLIB
6868 # Extract the first word of "ranlib", so it can be a program name with args.
6869 set dummy ranlib; ac_word=$2
6870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875 if test -n "$ac_ct_RANLIB"; then
6876 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_prog_ac_ct_RANLIB="ranlib"
6886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6889 done
6890 done
6891 IFS=$as_save_IFS
6895 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6896 if test -n "$ac_ct_RANLIB"; then
6897 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6898 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6899 else
6900 { echo "$as_me:$LINENO: result: no" >&5
6901 echo "${ECHO_T}no" >&6; }
6904 if test "x$ac_ct_RANLIB" = x; then
6905 RANLIB=":"
6906 else
6907 case $cross_compiling:$ac_tool_warned in
6908 yes:)
6909 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6910 whose name does not start with the host triplet. If you think this
6911 configuration is useful to you, please write to autoconf@gnu.org." >&5
6912 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6913 whose name does not start with the host triplet. If you think this
6914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6915 ac_tool_warned=yes ;;
6916 esac
6917 RANLIB=$ac_ct_RANLIB
6919 else
6920 RANLIB="$ac_cv_prog_RANLIB"
6923 # Extract the first word of "rm", so it can be a program name with args.
6924 set dummy rm; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_RM+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930 case $RM in
6931 [\\/]* | ?:[\\/]*)
6932 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6946 done
6947 done
6948 IFS=$as_save_IFS
6950 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6952 esac
6954 RM=$ac_cv_path_RM
6955 if test -n "$RM"; then
6956 { echo "$as_me:$LINENO: result: $RM" >&5
6957 echo "${ECHO_T}$RM" >&6; }
6958 else
6959 { echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6; }
6964 # Extract the first word of "sed", so it can be a program name with args.
6965 set dummy sed; ac_word=$2
6966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968 if test "${ac_cv_path_SED+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 case $SED in
6972 [\\/]* | ?:[\\/]*)
6973 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6987 done
6988 done
6989 IFS=$as_save_IFS
6991 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6993 esac
6995 SED=$ac_cv_path_SED
6996 if test -n "$SED"; then
6997 { echo "$as_me:$LINENO: result: $SED" >&5
6998 echo "${ECHO_T}$SED" >&6; }
6999 else
7000 { echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6; }
7005 # Extract the first word of "tar", so it can be a program name with args.
7006 set dummy tar; ac_word=$2
7007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009 if test "${ac_cv_path_TAR+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 else
7012 case $TAR in
7013 [\\/]* | ?:[\\/]*)
7014 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7028 done
7029 done
7030 IFS=$as_save_IFS
7032 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7034 esac
7036 TAR=$ac_cv_path_TAR
7037 if test -n "$TAR"; then
7038 { echo "$as_me:$LINENO: result: $TAR" >&5
7039 echo "${ECHO_T}$TAR" >&6; }
7040 else
7041 { echo "$as_me:$LINENO: result: no" >&5
7042 echo "${ECHO_T}no" >&6; }
7046 # Extract the first word of "pwd", so it can be a program name with args.
7047 set dummy pwd; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_BINPWD+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 else
7053 case $BINPWD in
7054 [\\/]* | ?:[\\/]*)
7055 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7069 done
7070 done
7071 IFS=$as_save_IFS
7073 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7075 esac
7077 BINPWD=$ac_cv_path_BINPWD
7078 if test -n "$BINPWD"; then
7079 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7080 echo "${ECHO_T}$BINPWD" >&6; }
7081 else
7082 { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7088 # Extract the first word of "Graphviz", so it can be a program name with args.
7089 set dummy Graphviz; ac_word=$2
7090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095 case $GRAPHVIZ in
7096 [\\/]* | ?:[\\/]*)
7097 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
7106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7107 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7111 done
7112 done
7113 IFS=$as_save_IFS
7115 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7117 esac
7119 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7120 if test -n "$GRAPHVIZ"; then
7121 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7122 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7123 else
7124 { echo "$as_me:$LINENO: result: no" >&5
7125 echo "${ECHO_T}no" >&6; }
7129 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7131 cat >>confdefs.h <<\_ACEOF
7132 #define HAVE_GRAPHVIZ 1
7133 _ACEOF
7135 if test "$llvm_cv_os_type" = "MingW" ; then
7136 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7139 cat >>confdefs.h <<_ACEOF
7140 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7141 _ACEOF
7144 # Extract the first word of "dot", so it can be a program name with args.
7145 set dummy dot; ac_word=$2
7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148 if test "${ac_cv_path_DOT+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151 case $DOT in
7152 [\\/]* | ?:[\\/]*)
7153 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7163 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7171 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7173 esac
7175 DOT=$ac_cv_path_DOT
7176 if test -n "$DOT"; then
7177 { echo "$as_me:$LINENO: result: $DOT" >&5
7178 echo "${ECHO_T}$DOT" >&6; }
7179 else
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7185 if test "$DOT" != "echo dot" ; then
7187 cat >>confdefs.h <<\_ACEOF
7188 #define HAVE_DOT 1
7189 _ACEOF
7191 if test "$llvm_cv_os_type" = "MingW" ; then
7192 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7195 cat >>confdefs.h <<_ACEOF
7196 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7197 _ACEOF
7200 for ac_prog in gv gsview32
7202 # Extract the first word of "$ac_prog", so it can be a program name with args.
7203 set dummy $ac_prog; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_GV+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209 case $GV in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7225 done
7226 done
7227 IFS=$as_save_IFS
7230 esac
7232 GV=$ac_cv_path_GV
7233 if test -n "$GV"; then
7234 { echo "$as_me:$LINENO: result: $GV" >&5
7235 echo "${ECHO_T}$GV" >&6; }
7236 else
7237 { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7242 test -n "$GV" && break
7243 done
7244 test -n "$GV" || GV="echo gv"
7246 if test "$GV" != "echo gv" ; then
7248 cat >>confdefs.h <<\_ACEOF
7249 #define HAVE_GV 1
7250 _ACEOF
7252 if test "$llvm_cv_os_type" = "MingW" ; then
7253 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7256 cat >>confdefs.h <<_ACEOF
7257 #define LLVM_PATH_GV "$GV${EXEEXT}"
7258 _ACEOF
7261 # Extract the first word of "dotty", so it can be a program name with args.
7262 set dummy dotty; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_DOTTY+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 case $DOTTY in
7269 [\\/]* | ?:[\\/]*)
7270 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 break 2
7284 done
7285 done
7286 IFS=$as_save_IFS
7288 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7290 esac
7292 DOTTY=$ac_cv_path_DOTTY
7293 if test -n "$DOTTY"; then
7294 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7295 echo "${ECHO_T}$DOTTY" >&6; }
7296 else
7297 { echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6; }
7302 if test "$DOTTY" != "echo dotty" ; then
7304 cat >>confdefs.h <<\_ACEOF
7305 #define HAVE_DOTTY 1
7306 _ACEOF
7308 if test "$llvm_cv_os_type" = "MingW" ; then
7309 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7312 cat >>confdefs.h <<_ACEOF
7313 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7314 _ACEOF
7319 # Extract the first word of "perl", so it can be a program name with args.
7320 set dummy perl; ac_word=$2
7321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323 if test "${ac_cv_path_PERL+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 case $PERL in
7327 [\\/]* | ?:[\\/]*)
7328 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7342 done
7343 done
7344 IFS=$as_save_IFS
7346 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7348 esac
7350 PERL=$ac_cv_path_PERL
7351 if test -n "$PERL"; then
7352 { echo "$as_me:$LINENO: result: $PERL" >&5
7353 echo "${ECHO_T}$PERL" >&6; }
7354 else
7355 { echo "$as_me:$LINENO: result: no" >&5
7356 echo "${ECHO_T}no" >&6; }
7360 if test "$PERL" != "none"; then
7361 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7362 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7363 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7364 { echo "$as_me:$LINENO: result: yes" >&5
7365 echo "${ECHO_T}yes" >&6; }
7366 else
7367 PERL=none
7368 { echo "$as_me:$LINENO: result: not found" >&5
7369 echo "${ECHO_T}not found" >&6; }
7374 if test x"$PERL" = xnone; then
7375 HAVE_PERL=0
7377 else
7378 HAVE_PERL=1
7382 # Find a good install program. We prefer a C program (faster),
7383 # so one script is as good as another. But avoid the broken or
7384 # incompatible versions:
7385 # SysV /etc/install, /usr/sbin/install
7386 # SunOS /usr/etc/install
7387 # IRIX /sbin/install
7388 # AIX /bin/install
7389 # AmigaOS /C/install, which installs bootblocks on floppy discs
7390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7393 # OS/2's system install, which has a completely different semantic
7394 # ./install, which can be erroneously created by make from ./install.sh.
7395 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7396 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7397 if test -z "$INSTALL"; then
7398 if test "${ac_cv_path_install+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 # Account for people who put trailing slashes in PATH elements.
7407 case $as_dir/ in
7408 ./ | .// | /cC/* | \
7409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7410 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7411 /usr/ucb/* ) ;;
7413 # OSF1 and SCO ODT 3.0 have their own names for install.
7414 # Don't use installbsd from OSF since it installs stuff as root
7415 # by default.
7416 for ac_prog in ginstall scoinst install; do
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7419 if test $ac_prog = install &&
7420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7421 # AIX install. It has an incompatible calling convention.
7423 elif test $ac_prog = install &&
7424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7425 # program-specific install script used by HP pwplus--don't use.
7427 else
7428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7429 break 3
7432 done
7433 done
7435 esac
7436 done
7437 IFS=$as_save_IFS
7441 if test "${ac_cv_path_install+set}" = set; then
7442 INSTALL=$ac_cv_path_install
7443 else
7444 # As a last resort, use the slow shell script. Don't cache a
7445 # value for INSTALL within a source directory, because that will
7446 # break other packages using the cache if that directory is
7447 # removed, or if the value is a relative name.
7448 INSTALL=$ac_install_sh
7451 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7452 echo "${ECHO_T}$INSTALL" >&6; }
7454 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7455 # It thinks the first close brace ends the variable substitution.
7456 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7458 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7460 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7463 # Extract the first word of "bzip2", so it can be a program name with args.
7464 set dummy bzip2; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_BZIP2+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470 case $BZIP2 in
7471 [\\/]* | ?:[\\/]*)
7472 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7486 done
7487 done
7488 IFS=$as_save_IFS
7490 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7492 esac
7494 BZIP2=$ac_cv_path_BZIP2
7495 if test -n "$BZIP2"; then
7496 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7497 echo "${ECHO_T}$BZIP2" >&6; }
7498 else
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7504 # Extract the first word of "doxygen", so it can be a program name with args.
7505 set dummy doxygen; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 case $DOXYGEN in
7512 [\\/]* | ?:[\\/]*)
7513 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7527 done
7528 done
7529 IFS=$as_save_IFS
7531 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7533 esac
7535 DOXYGEN=$ac_cv_path_DOXYGEN
7536 if test -n "$DOXYGEN"; then
7537 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7538 echo "${ECHO_T}$DOXYGEN" >&6; }
7539 else
7540 { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7545 # Extract the first word of "groff", so it can be a program name with args.
7546 set dummy groff; ac_word=$2
7547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549 if test "${ac_cv_path_GROFF+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 else
7552 case $GROFF in
7553 [\\/]* | ?:[\\/]*)
7554 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7568 done
7569 done
7570 IFS=$as_save_IFS
7572 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7574 esac
7576 GROFF=$ac_cv_path_GROFF
7577 if test -n "$GROFF"; then
7578 { echo "$as_me:$LINENO: result: $GROFF" >&5
7579 echo "${ECHO_T}$GROFF" >&6; }
7580 else
7581 { echo "$as_me:$LINENO: result: no" >&5
7582 echo "${ECHO_T}no" >&6; }
7586 # Extract the first word of "gzip", so it can be a program name with args.
7587 set dummy gzip; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_GZIP+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 case $GZIP in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7609 done
7610 done
7611 IFS=$as_save_IFS
7613 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7615 esac
7617 GZIP=$ac_cv_path_GZIP
7618 if test -n "$GZIP"; then
7619 { echo "$as_me:$LINENO: result: $GZIP" >&5
7620 echo "${ECHO_T}$GZIP" >&6; }
7621 else
7622 { echo "$as_me:$LINENO: result: no" >&5
7623 echo "${ECHO_T}no" >&6; }
7627 # Extract the first word of "pod2html", so it can be a program name with args.
7628 set dummy pod2html; ac_word=$2
7629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631 if test "${ac_cv_path_POD2HTML+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634 case $POD2HTML in
7635 [\\/]* | ?:[\\/]*)
7636 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7650 done
7651 done
7652 IFS=$as_save_IFS
7654 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7656 esac
7658 POD2HTML=$ac_cv_path_POD2HTML
7659 if test -n "$POD2HTML"; then
7660 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7661 echo "${ECHO_T}$POD2HTML" >&6; }
7662 else
7663 { echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6; }
7668 # Extract the first word of "pod2man", so it can be a program name with args.
7669 set dummy pod2man; ac_word=$2
7670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672 if test "${ac_cv_path_POD2MAN+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674 else
7675 case $POD2MAN in
7676 [\\/]* | ?:[\\/]*)
7677 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7691 done
7692 done
7693 IFS=$as_save_IFS
7695 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7697 esac
7699 POD2MAN=$ac_cv_path_POD2MAN
7700 if test -n "$POD2MAN"; then
7701 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7702 echo "${ECHO_T}$POD2MAN" >&6; }
7703 else
7704 { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7709 # Extract the first word of "runtest", so it can be a program name with args.
7710 set dummy runtest; ac_word=$2
7711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7713 if test "${ac_cv_path_RUNTEST+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716 case $RUNTEST in
7717 [\\/]* | ?:[\\/]*)
7718 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7728 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7732 done
7733 done
7734 IFS=$as_save_IFS
7736 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7738 esac
7740 RUNTEST=$ac_cv_path_RUNTEST
7741 if test -n "$RUNTEST"; then
7742 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7743 echo "${ECHO_T}$RUNTEST" >&6; }
7744 else
7745 { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7751 no_itcl=true
7752 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7753 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7755 # Check whether --with-tclinclude was given.
7756 if test "${with_tclinclude+set}" = set; then
7757 withval=$with_tclinclude; with_tclinclude=${withval}
7758 else
7759 with_tclinclude=''
7762 if test "${ac_cv_path_tclsh+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7766 if test x"${with_tclinclude}" != x ; then
7767 if test -f ${with_tclinclude}/tclsh ; then
7768 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7769 elif test -f ${with_tclinclude}/src/tclsh ; then
7770 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7771 else
7772 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7773 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7774 { (exit 1); exit 1; }; }
7778 if test x"${ac_cv_path_tclsh}" = x ; then
7779 { echo "$as_me:$LINENO: result: none" >&5
7780 echo "${ECHO_T}none" >&6; }
7781 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
7783 # Extract the first word of "$ac_prog", so it can be a program name with args.
7784 set dummy $ac_prog; ac_word=$2
7785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7787 if test "${ac_cv_path_TCLSH+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790 case $TCLSH in
7791 [\\/]* | ?:[\\/]*)
7792 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796 for as_dir in $PATH
7798 IFS=$as_save_IFS
7799 test -z "$as_dir" && as_dir=.
7800 for ac_exec_ext in '' $ac_executable_extensions; do
7801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7802 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 break 2
7806 done
7807 done
7808 IFS=$as_save_IFS
7811 esac
7813 TCLSH=$ac_cv_path_TCLSH
7814 if test -n "$TCLSH"; then
7815 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7816 echo "${ECHO_T}$TCLSH" >&6; }
7817 else
7818 { echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6; }
7823 test -n "$TCLSH" && break
7824 done
7826 if test x"${TCLSH}" = x ; then
7827 ac_cv_path_tclsh='';
7828 else
7829 ac_cv_path_tclsh="${TCLSH}";
7831 else
7832 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7833 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7834 TCLSH="${ac_cv_path_tclsh}"
7840 # Extract the first word of "zip", so it can be a program name with args.
7841 set dummy zip; ac_word=$2
7842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7844 if test "${ac_cv_path_ZIP+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847 case $ZIP in
7848 [\\/]* | ?:[\\/]*)
7849 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 break 2
7863 done
7864 done
7865 IFS=$as_save_IFS
7867 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7869 esac
7871 ZIP=$ac_cv_path_ZIP
7872 if test -n "$ZIP"; then
7873 { echo "$as_me:$LINENO: result: $ZIP" >&5
7874 echo "${ECHO_T}$ZIP" >&6; }
7875 else
7876 { echo "$as_me:$LINENO: result: no" >&5
7877 echo "${ECHO_T}no" >&6; }
7882 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7883 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7884 if test "${llvm_cv_link_use_r+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887 ac_ext=c
7888 ac_cpp='$CPP $CPPFLAGS'
7889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893 oldcflags="$CFLAGS"
7894 CFLAGS="$CFLAGS -Wl,-R."
7895 cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h. */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7903 main ()
7905 int main() { return 0; }
7907 return 0;
7909 _ACEOF
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (ac_try="$ac_link"
7912 case "(($ac_try" in
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7915 esac
7916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_link") 2>conftest.er1
7918 ac_status=$?
7919 grep -v '^ *+' conftest.er1 >conftest.err
7920 rm -f conftest.er1
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7925 { (case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928 esac
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_try") 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest$ac_exeext'
7935 { (case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7938 esac
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_try") 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 llvm_cv_link_use_r=yes
7945 else
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 llvm_cv_link_use_r=no
7952 rm -f core conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext conftest.$ac_ext
7954 CFLAGS="$oldcflags"
7955 ac_ext=c
7956 ac_cpp='$CPP $CPPFLAGS'
7957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7964 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7965 if test "$llvm_cv_link_use_r" = yes ; then
7967 cat >>confdefs.h <<\_ACEOF
7968 #define HAVE_LINK_R 1
7969 _ACEOF
7976 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7977 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7978 if test "${ac_cv_c_const+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981 cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h. */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7989 main ()
7991 /* FIXME: Include the comments suggested by Paul. */
7992 #ifndef __cplusplus
7993 /* Ultrix mips cc rejects this. */
7994 typedef int charset[2];
7995 const charset x;
7996 /* SunOS 4.1.1 cc rejects this. */
7997 char const *const *ccp;
7998 char **p;
7999 /* NEC SVR4.0.2 mips cc rejects this. */
8000 struct point {int x, y;};
8001 static struct point const zero = {0,0};
8002 /* AIX XL C 1.02.0.0 rejects this.
8003 It does not let you subtract one const X* pointer from another in
8004 an arm of an if-expression whose if-part is not a constant
8005 expression */
8006 const char *g = "string";
8007 ccp = &g + (g ? g-g : 0);
8008 /* HPUX 7.0 cc rejects these. */
8009 ++ccp;
8010 p = (char**) ccp;
8011 ccp = (char const *const *) p;
8012 { /* SCO 3.2v4 cc rejects this. */
8013 char *t;
8014 char const *s = 0 ? (char *) 0 : (char const *) 0;
8016 *t++ = 0;
8017 if (s) return 0;
8019 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8020 int x[] = {25, 17};
8021 const int *foo = &x[0];
8022 ++foo;
8024 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8025 typedef const int *iptr;
8026 iptr p = 0;
8027 ++p;
8029 { /* AIX XL C 1.02.0.0 rejects this saying
8030 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8031 struct s { int j; const int *ap[3]; };
8032 struct s *b; b->j = 5;
8034 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8035 const int foo = 10;
8036 if (!foo) return 0;
8038 return !x[0] && !zero.x;
8039 #endif
8042 return 0;
8044 _ACEOF
8045 rm -f conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8047 case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_compile") 2>conftest.er1
8053 ac_status=$?
8054 grep -v '^ *+' conftest.er1 >conftest.err
8055 rm -f conftest.er1
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8060 { (case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063 esac
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_try") 2>&5
8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; } &&
8069 { ac_try='test -s conftest.$ac_objext'
8070 { (case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8073 esac
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_try") 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 ac_cv_c_const=yes
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 ac_cv_c_const=no
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8090 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8091 if test $ac_cv_c_const = no; then
8093 cat >>confdefs.h <<\_ACEOF
8094 #define const
8095 _ACEOF
8104 ac_header_dirent=no
8105 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8106 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8107 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8108 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 else
8112 cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h. */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8118 #include <sys/types.h>
8119 #include <$ac_hdr>
8122 main ()
8124 if ((DIR *) 0)
8125 return 0;
8127 return 0;
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8132 case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8138 ac_status=$?
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8145 { (case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148 esac
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_try") 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest.$ac_objext'
8155 { (case "(($ac_try" in
8156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8157 *) ac_try_echo=$ac_try;;
8158 esac
8159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8160 (eval "$ac_try") 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; }; then
8164 eval "$as_ac_Header=yes"
8165 else
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 eval "$as_ac_Header=no"
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 ac_res=`eval echo '${'$as_ac_Header'}'`
8175 { echo "$as_me:$LINENO: result: $ac_res" >&5
8176 echo "${ECHO_T}$ac_res" >&6; }
8177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8178 cat >>confdefs.h <<_ACEOF
8179 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8180 _ACEOF
8182 ac_header_dirent=$ac_hdr; break
8185 done
8186 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8187 if test $ac_header_dirent = dirent.h; then
8188 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8189 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8190 if test "${ac_cv_search_opendir+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193 ac_func_search_save_LIBS=$LIBS
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h. */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8201 /* Override any GCC internal prototype to avoid an error.
8202 Use char because int might match the return type of a GCC
8203 builtin and then its argument prototype would still apply. */
8204 #ifdef __cplusplus
8205 extern "C"
8206 #endif
8207 char opendir ();
8209 main ()
8211 return opendir ();
8213 return 0;
8215 _ACEOF
8216 for ac_lib in '' dir; do
8217 if test -z "$ac_lib"; then
8218 ac_res="none required"
8219 else
8220 ac_res=-l$ac_lib
8221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8223 rm -f conftest.$ac_objext conftest$ac_exeext
8224 if { (ac_try="$ac_link"
8225 case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_link") 2>conftest.er1
8231 ac_status=$?
8232 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1
8234 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } &&
8237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8238 { (case "(($ac_try" in
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8241 esac
8242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_try") 2>&5
8244 ac_status=$?
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; } &&
8247 { ac_try='test -s conftest$ac_exeext'
8248 { (case "(($ac_try" in
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8251 esac
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_try") 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_search_opendir=$ac_res
8258 else
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8265 rm -f core conftest.err conftest.$ac_objext \
8266 conftest$ac_exeext
8267 if test "${ac_cv_search_opendir+set}" = set; then
8268 break
8270 done
8271 if test "${ac_cv_search_opendir+set}" = set; then
8273 else
8274 ac_cv_search_opendir=no
8276 rm conftest.$ac_ext
8277 LIBS=$ac_func_search_save_LIBS
8279 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8280 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8281 ac_res=$ac_cv_search_opendir
8282 if test "$ac_res" != no; then
8283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8287 else
8288 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8289 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8290 if test "${ac_cv_search_opendir+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293 ac_func_search_save_LIBS=$LIBS
8294 cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h. */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8301 /* Override any GCC internal prototype to avoid an error.
8302 Use char because int might match the return type of a GCC
8303 builtin and then its argument prototype would still apply. */
8304 #ifdef __cplusplus
8305 extern "C"
8306 #endif
8307 char opendir ();
8309 main ()
8311 return opendir ();
8313 return 0;
8315 _ACEOF
8316 for ac_lib in '' x; do
8317 if test -z "$ac_lib"; then
8318 ac_res="none required"
8319 else
8320 ac_res=-l$ac_lib
8321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (ac_try="$ac_link"
8325 case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8328 esac
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_link") 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8338 { (case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341 esac
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343 (eval "$ac_try") 2>&5
8344 ac_status=$?
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try='test -s conftest$ac_exeext'
8348 { (case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_try") 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; }; then
8357 ac_cv_search_opendir=$ac_res
8358 else
8359 echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8365 rm -f core conftest.err conftest.$ac_objext \
8366 conftest$ac_exeext
8367 if test "${ac_cv_search_opendir+set}" = set; then
8368 break
8370 done
8371 if test "${ac_cv_search_opendir+set}" = set; then
8373 else
8374 ac_cv_search_opendir=no
8376 rm conftest.$ac_ext
8377 LIBS=$ac_func_search_save_LIBS
8379 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8380 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8381 ac_res=$ac_cv_search_opendir
8382 if test "$ac_res" != no; then
8383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8390 for ac_header in dlfcn.h
8392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 ac_res=`eval echo '${'$as_ac_Header'}'`
8400 { echo "$as_me:$LINENO: result: $ac_res" >&5
8401 echo "${ECHO_T}$ac_res" >&6; }
8402 else
8403 # Is the header compilable?
8404 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 $ac_includes_default
8413 #include <$ac_header>
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (ac_try="$ac_compile"
8417 case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8420 esac
8421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_compile") 2>conftest.er1
8423 ac_status=$?
8424 grep -v '^ *+' conftest.er1 >conftest.err
8425 rm -f conftest.er1
8426 cat conftest.err >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8430 { (case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8433 esac
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_try") 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try='test -s conftest.$ac_objext'
8440 { (case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_try") 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_header_compiler=yes
8450 else
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8454 ac_header_compiler=no
8457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8459 echo "${ECHO_T}$ac_header_compiler" >&6; }
8461 # Is the header present?
8462 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8464 cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 #include <$ac_header>
8471 _ACEOF
8472 if { (ac_try="$ac_cpp conftest.$ac_ext"
8473 case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8476 esac
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } >/dev/null; then
8485 if test -s conftest.err; then
8486 ac_cpp_err=$ac_c_preproc_warn_flag
8487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8488 else
8489 ac_cpp_err=
8491 else
8492 ac_cpp_err=yes
8494 if test -z "$ac_cpp_err"; then
8495 ac_header_preproc=yes
8496 else
8497 echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8500 ac_header_preproc=no
8503 rm -f conftest.err conftest.$ac_ext
8504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8505 echo "${ECHO_T}$ac_header_preproc" >&6; }
8507 # So? What about this header?
8508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8509 yes:no: )
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8514 ac_header_preproc=yes
8516 no:yes:* )
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8529 ( cat <<\_ASBOX
8530 ## ----------------------------------- ##
8531 ## Report this to llvmbugs@cs.uiuc.edu ##
8532 ## ----------------------------------- ##
8533 _ASBOX
8534 ) | sed "s/^/$as_me: WARNING: /" >&2
8536 esac
8537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542 eval "$as_ac_Header=\$ac_header_preproc"
8544 ac_res=`eval echo '${'$as_ac_Header'}'`
8545 { echo "$as_me:$LINENO: result: $ac_res" >&5
8546 echo "${ECHO_T}$ac_res" >&6; }
8549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8550 cat >>confdefs.h <<_ACEOF
8551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8552 _ACEOF
8556 done
8558 # Check whether --enable-ltdl-install was given.
8559 if test "${enable_ltdl_install+set}" = set; then
8560 enableval=$enable_ltdl_install;
8566 if test x"${enable_ltdl_install-no}" != xno; then
8567 INSTALL_LTDL_TRUE=
8568 INSTALL_LTDL_FALSE='#'
8569 else
8570 INSTALL_LTDL_TRUE='#'
8571 INSTALL_LTDL_FALSE=
8576 if test x"${enable_ltdl_convenience-no}" != xno; then
8577 CONVENIENCE_LTDL_TRUE=
8578 CONVENIENCE_LTDL_FALSE='#'
8579 else
8580 CONVENIENCE_LTDL_TRUE='#'
8581 CONVENIENCE_LTDL_FALSE=
8585 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8586 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8587 library_names_spec=
8588 libname_spec='lib$name'
8589 soname_spec=
8590 shrext_cmds=".so"
8591 postinstall_cmds=
8592 postuninstall_cmds=
8593 finish_cmds=
8594 finish_eval=
8595 shlibpath_var=
8596 shlibpath_overrides_runpath=unknown
8597 version_type=none
8598 dynamic_linker="$host_os ld.so"
8599 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8600 if test "$GCC" = yes; then
8601 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8602 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8603 # if the path contains ";" then we assume it to be the separator
8604 # otherwise default to the standard path separator (i.e. ":") - it is
8605 # assumed that no part of a normal pathname contains ";" but that should
8606 # okay in the real world where ";" in dirpaths is itself problematic.
8607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8608 else
8609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8611 else
8612 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8614 need_lib_prefix=unknown
8615 hardcode_into_libs=no
8617 # when you set need_version to no, make sure it does not cause -set_version
8618 # flags to be left without arguments
8619 need_version=unknown
8621 case $host_os in
8622 aix3*)
8623 version_type=linux
8624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8625 shlibpath_var=LIBPATH
8627 # AIX 3 has no versioning support, so we append a major version to the name.
8628 soname_spec='${libname}${release}${shared_ext}$major'
8631 aix4* | aix5*)
8632 version_type=linux
8633 need_lib_prefix=no
8634 need_version=no
8635 hardcode_into_libs=yes
8636 if test "$host_cpu" = ia64; then
8637 # AIX 5 supports IA64
8638 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8639 shlibpath_var=LD_LIBRARY_PATH
8640 else
8641 # With GCC up to 2.95.x, collect2 would create an import file
8642 # for dependence libraries. The import file would start with
8643 # the line `#! .'. This would cause the generated library to
8644 # depend on `.', always an invalid library. This was fixed in
8645 # development snapshots of GCC prior to 3.0.
8646 case $host_os in
8647 aix4 | aix4.[01] | aix4.[01].*)
8648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8649 echo ' yes '
8650 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8652 else
8653 can_build_shared=no
8656 esac
8657 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8658 # soname into executable. Probably we can add versioning support to
8659 # collect2, so additional links can be useful in future.
8660 if test "$aix_use_runtimelinking" = yes; then
8661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8662 # instead of lib<name>.a to let people know that these are not
8663 # typical AIX shared libraries.
8664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8665 else
8666 # We preserve .a as extension for shared libraries through AIX4.2
8667 # and later when we are not doing run time linking.
8668 library_names_spec='${libname}${release}.a $libname.a'
8669 soname_spec='${libname}${release}${shared_ext}$major'
8671 shlibpath_var=LIBPATH
8675 amigaos*)
8676 library_names_spec='$libname.ixlibrary $libname.a'
8677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8678 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'
8681 beos*)
8682 library_names_spec='${libname}${shared_ext}'
8683 dynamic_linker="$host_os ld.so"
8684 shlibpath_var=LIBRARY_PATH
8687 bsdi[45]*)
8688 version_type=linux
8689 need_version=no
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8692 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8693 shlibpath_var=LD_LIBRARY_PATH
8694 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8695 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8696 # the default ld.so.conf also contains /usr/contrib/lib and
8697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8698 # libtool to hard-code these into programs
8701 cygwin* | mingw* | pw32*)
8702 version_type=windows
8703 shrext_cmds=".dll"
8704 need_version=no
8705 need_lib_prefix=no
8707 case $GCC,$host_os in
8708 yes,cygwin* | yes,mingw* | yes,pw32*)
8709 library_names_spec='$libname.dll.a'
8710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8711 postinstall_cmds='base_file=`basename \${file}`~
8712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8713 dldir=$destdir/`dirname \$dlpath`~
8714 test -d \$dldir || mkdir -p \$dldir~
8715 $install_prog $dir/$dlname \$dldir/$dlname~
8716 chmod a+x \$dldir/$dlname'
8717 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8718 dlpath=$dir/\$dldll~
8719 $rm \$dlpath'
8720 shlibpath_overrides_runpath=yes
8722 case $host_os in
8723 cygwin*)
8724 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8725 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8726 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8728 mingw*)
8729 # MinGW DLLs use traditional 'lib' prefix
8730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8731 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8732 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8733 # It is most probably a Windows format PATH printed by
8734 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8735 # path with ; separators, and with drive letters. We can handle the
8736 # drive letters (cygwin fileutils understands them), so leave them,
8737 # especially as we might pass files found there to a mingw objdump,
8738 # which wouldn't understand a cygwinified path. Ahh.
8739 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8740 else
8741 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8744 pw32*)
8745 # pw32 DLLs use 'pw' prefix rather than 'lib'
8746 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8748 esac
8752 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8754 esac
8755 dynamic_linker='Win32 ld.exe'
8756 # FIXME: first we should search . and the directory the executable is in
8757 shlibpath_var=PATH
8760 darwin* | rhapsody*)
8761 dynamic_linker="$host_os dyld"
8762 version_type=darwin
8763 need_lib_prefix=no
8764 need_version=no
8765 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8766 soname_spec='${libname}${release}${major}$shared_ext'
8767 shlibpath_overrides_runpath=yes
8768 shlibpath_var=DYLD_LIBRARY_PATH
8769 shrext_cmds='.dylib'
8770 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8771 if test "$GCC" = yes; then
8772 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"`
8773 else
8774 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8776 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8779 dgux*)
8780 version_type=linux
8781 need_lib_prefix=no
8782 need_version=no
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 shlibpath_var=LD_LIBRARY_PATH
8788 freebsd1*)
8789 dynamic_linker=no
8792 kfreebsd*-gnu)
8793 version_type=linux
8794 need_lib_prefix=no
8795 need_version=no
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8797 soname_spec='${libname}${release}${shared_ext}$major'
8798 shlibpath_var=LD_LIBRARY_PATH
8799 shlibpath_overrides_runpath=no
8800 hardcode_into_libs=yes
8801 dynamic_linker='GNU ld.so'
8804 freebsd* | dragonfly*)
8805 # DragonFly does not have aout. When/if they implement a new
8806 # versioning mechanism, adjust this.
8807 if test -x /usr/bin/objformat; then
8808 objformat=`/usr/bin/objformat`
8809 else
8810 case $host_os in
8811 freebsd[123]*) objformat=aout ;;
8812 *) objformat=elf ;;
8813 esac
8815 version_type=freebsd-$objformat
8816 case $version_type in
8817 freebsd-elf*)
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8819 need_version=no
8820 need_lib_prefix=no
8822 freebsd-*)
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8824 need_version=yes
8826 esac
8827 shlibpath_var=LD_LIBRARY_PATH
8828 case $host_os in
8829 freebsd2*)
8830 shlibpath_overrides_runpath=yes
8832 freebsd3.[01]* | freebsdelf3.[01]*)
8833 shlibpath_overrides_runpath=yes
8834 hardcode_into_libs=yes
8836 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8837 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8838 shlibpath_overrides_runpath=no
8839 hardcode_into_libs=yes
8841 freebsd*) # from 4.6 on
8842 shlibpath_overrides_runpath=yes
8843 hardcode_into_libs=yes
8845 esac
8848 gnu*)
8849 version_type=linux
8850 need_lib_prefix=no
8851 need_version=no
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 shlibpath_var=LD_LIBRARY_PATH
8855 hardcode_into_libs=yes
8858 hpux9* | hpux10* | hpux11*)
8859 # Give a soname corresponding to the major version so that dld.sl refuses to
8860 # link against other versions.
8861 version_type=sunos
8862 need_lib_prefix=no
8863 need_version=no
8864 case $host_cpu in
8865 ia64*)
8866 shrext_cmds='.so'
8867 hardcode_into_libs=yes
8868 dynamic_linker="$host_os dld.so"
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 if test "X$HPUX_IA64_MODE" = X32; then
8874 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8875 else
8876 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8880 hppa*64*)
8881 shrext_cmds='.sl'
8882 hardcode_into_libs=yes
8883 dynamic_linker="$host_os dld.sl"
8884 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8885 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8892 shrext_cmds='.sl'
8893 dynamic_linker="$host_os dld.sl"
8894 shlibpath_var=SHLIB_PATH
8895 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897 soname_spec='${libname}${release}${shared_ext}$major'
8899 esac
8900 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8901 postinstall_cmds='chmod 555 $lib'
8904 interix3*)
8905 version_type=linux
8906 need_lib_prefix=no
8907 need_version=no
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8909 soname_spec='${libname}${release}${shared_ext}$major'
8910 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8911 shlibpath_var=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath=no
8913 hardcode_into_libs=yes
8916 irix5* | irix6* | nonstopux*)
8917 case $host_os in
8918 nonstopux*) version_type=nonstopux ;;
8920 if test "$lt_cv_prog_gnu_ld" = yes; then
8921 version_type=linux
8922 else
8923 version_type=irix
8924 fi ;;
8925 esac
8926 need_lib_prefix=no
8927 need_version=no
8928 soname_spec='${libname}${release}${shared_ext}$major'
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8930 case $host_os in
8931 irix5* | nonstopux*)
8932 libsuff= shlibsuff=
8935 case $LD in # libtool.m4 will add one of these switches to LD
8936 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8937 libsuff= shlibsuff= libmagic=32-bit;;
8938 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8939 libsuff=32 shlibsuff=N32 libmagic=N32;;
8940 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8941 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8942 *) libsuff= shlibsuff= libmagic=never-match;;
8943 esac
8945 esac
8946 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8947 shlibpath_overrides_runpath=no
8948 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8949 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8950 hardcode_into_libs=yes
8953 # No shared lib support for Linux oldld, aout, or coff.
8954 linux*oldld* | linux*aout* | linux*coff*)
8955 dynamic_linker=no
8958 # This must be Linux ELF.
8959 linux*)
8960 version_type=linux
8961 need_lib_prefix=no
8962 need_version=no
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8966 shlibpath_var=LD_LIBRARY_PATH
8967 shlibpath_overrides_runpath=no
8968 # This implies no fast_install, which is unacceptable.
8969 # Some rework will be needed to allow for fast_install
8970 # before this can be enabled.
8971 hardcode_into_libs=yes
8973 # Append ld.so.conf contents to the search path
8974 if test -f /etc/ld.so.conf; then
8975 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' ' '`
8976 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8979 # We used to test for /lib/ld.so.1 and disable shared libraries on
8980 # powerpc, because MkLinux only supported shared libraries with the
8981 # GNU dynamic linker. Since this was broken with cross compilers,
8982 # most powerpc-linux boxes support dynamic linking these days and
8983 # people can always --disable-shared, the test was removed, and we
8984 # assume the GNU/Linux dynamic linker is in use.
8985 dynamic_linker='GNU/Linux ld.so'
8988 knetbsd*-gnu)
8989 version_type=linux
8990 need_lib_prefix=no
8991 need_version=no
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=no
8996 hardcode_into_libs=yes
8997 dynamic_linker='GNU ld.so'
9000 netbsd*)
9001 version_type=sunos
9002 need_lib_prefix=no
9003 need_version=no
9004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9006 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9007 dynamic_linker='NetBSD (a.out) ld.so'
9008 else
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 dynamic_linker='NetBSD ld.elf_so'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 shlibpath_overrides_runpath=yes
9015 hardcode_into_libs=yes
9018 newsos6)
9019 version_type=linux
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=yes
9025 nto-qnx*)
9026 version_type=linux
9027 need_lib_prefix=no
9028 need_version=no
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 shlibpath_var=LD_LIBRARY_PATH
9032 shlibpath_overrides_runpath=yes
9035 openbsd*)
9036 version_type=sunos
9037 sys_lib_dlsearch_path_spec="/usr/lib"
9038 need_lib_prefix=no
9039 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9040 case $host_os in
9041 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9042 *) need_version=no ;;
9043 esac
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9048 case $host_os in
9049 openbsd2.[89] | openbsd2.[89].*)
9050 shlibpath_overrides_runpath=no
9053 shlibpath_overrides_runpath=yes
9055 esac
9056 else
9057 shlibpath_overrides_runpath=yes
9061 os2*)
9062 libname_spec='$name'
9063 shrext_cmds=".dll"
9064 need_lib_prefix=no
9065 library_names_spec='$libname${shared_ext} $libname.a'
9066 dynamic_linker='OS/2 ld.exe'
9067 shlibpath_var=LIBPATH
9070 osf3* | osf4* | osf5*)
9071 version_type=osf
9072 need_lib_prefix=no
9073 need_version=no
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9078 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9081 solaris*)
9082 version_type=linux
9083 need_lib_prefix=no
9084 need_version=no
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9086 soname_spec='${libname}${release}${shared_ext}$major'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=yes
9089 hardcode_into_libs=yes
9090 # ldd complains unless libraries are executable
9091 postinstall_cmds='chmod +x $lib'
9094 sunos4*)
9095 version_type=sunos
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9097 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9098 shlibpath_var=LD_LIBRARY_PATH
9099 shlibpath_overrides_runpath=yes
9100 if test "$with_gnu_ld" = yes; then
9101 need_lib_prefix=no
9103 need_version=yes
9106 sysv4 | sysv4.3*)
9107 version_type=linux
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9109 soname_spec='${libname}${release}${shared_ext}$major'
9110 shlibpath_var=LD_LIBRARY_PATH
9111 case $host_vendor in
9112 sni)
9113 shlibpath_overrides_runpath=no
9114 need_lib_prefix=no
9115 export_dynamic_flag_spec='${wl}-Blargedynsym'
9116 runpath_var=LD_RUN_PATH
9118 siemens)
9119 need_lib_prefix=no
9121 motorola)
9122 need_lib_prefix=no
9123 need_version=no
9124 shlibpath_overrides_runpath=no
9125 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9127 esac
9130 sysv4*MP*)
9131 if test -d /usr/nec ;then
9132 version_type=linux
9133 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9134 soname_spec='$libname${shared_ext}.$major'
9135 shlibpath_var=LD_LIBRARY_PATH
9139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9140 version_type=freebsd-elf
9141 need_lib_prefix=no
9142 need_version=no
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 hardcode_into_libs=yes
9147 if test "$with_gnu_ld" = yes; then
9148 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9149 shlibpath_overrides_runpath=no
9150 else
9151 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9152 shlibpath_overrides_runpath=yes
9153 case $host_os in
9154 sco3.2v5*)
9155 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9157 esac
9159 sys_lib_dlsearch_path_spec='/usr/lib'
9162 uts4*)
9163 version_type=linux
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 shlibpath_var=LD_LIBRARY_PATH
9170 dynamic_linker=no
9172 esac
9173 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9174 echo "${ECHO_T}$dynamic_linker" >&6; }
9175 test "$dynamic_linker" = no && can_build_shared=no
9177 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9178 if test "$GCC" = yes; then
9179 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9183 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9184 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9185 if test "${libltdl_cv_shlibext+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 else
9189 module=yes
9190 eval libltdl_cv_shlibext=$shrext_cmds
9193 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9194 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9195 if test -n "$libltdl_cv_shlibext"; then
9197 cat >>confdefs.h <<_ACEOF
9198 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9199 _ACEOF
9204 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9205 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9206 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209 libltdl_cv_shlibpath_var="$shlibpath_var"
9211 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9212 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9213 if test -n "$libltdl_cv_shlibpath_var"; then
9215 cat >>confdefs.h <<_ACEOF
9216 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9217 _ACEOF
9222 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9223 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9224 if test "${libltdl_cv_sys_search_path+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9229 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9230 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9231 if test -n "$libltdl_cv_sys_search_path"; then
9232 sys_search_path=
9233 for dir in $libltdl_cv_sys_search_path; do
9234 if test -z "$sys_search_path"; then
9235 sys_search_path="$dir"
9236 else
9237 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9239 done
9241 cat >>confdefs.h <<_ACEOF
9242 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9243 _ACEOF
9247 { echo "$as_me:$LINENO: checking for objdir" >&5
9248 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9249 if test "${libltdl_cv_objdir+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252 libltdl_cv_objdir="$objdir"
9253 if test -n "$objdir"; then
9255 else
9256 rm -f .libs 2>/dev/null
9257 mkdir .libs 2>/dev/null
9258 if test -d .libs; then
9259 libltdl_cv_objdir=.libs
9260 else
9261 # MS-DOS does not allow filenames that begin with a dot.
9262 libltdl_cv_objdir=_libs
9264 rmdir .libs 2>/dev/null
9268 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9269 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9271 cat >>confdefs.h <<_ACEOF
9272 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9273 _ACEOF
9280 # Check for command to grab the raw symbol name followed by C symbol from nm.
9281 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9282 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9283 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9287 # These are sane defaults that work on at least a few old systems.
9288 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9290 # Character class describing NM global symbol codes.
9291 symcode='[BCDEGRST]'
9293 # Regexp to match symbols that can be accessed directly from C.
9294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9296 # Transform an extracted symbol line into a proper C declaration
9297 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9299 # Transform an extracted symbol line into symbol name and symbol address
9300 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'"
9302 # Define system-specific variables.
9303 case $host_os in
9304 aix*)
9305 symcode='[BCDT]'
9307 cygwin* | mingw* | pw32*)
9308 symcode='[ABCDGISTW]'
9310 hpux*) # Its linker distinguishes data from code symbols
9311 if test "$host_cpu" = ia64; then
9312 symcode='[ABCDEGRST]'
9314 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9315 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'"
9317 linux*)
9318 if test "$host_cpu" = ia64; then
9319 symcode='[ABCDGIRSTW]'
9320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9321 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'"
9324 irix* | nonstopux*)
9325 symcode='[BCDEGRST]'
9327 osf*)
9328 symcode='[BCDEGQRST]'
9330 solaris*)
9331 symcode='[BDRT]'
9333 sco3.2v5*)
9334 symcode='[DT]'
9336 sysv4.2uw2*)
9337 symcode='[DT]'
9339 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9340 symcode='[ABDT]'
9342 sysv4)
9343 symcode='[DFNSTU]'
9345 esac
9347 # Handle CRLF in mingw tool chain
9348 opt_cr=
9349 case $build_os in
9350 mingw*)
9351 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9353 esac
9355 # If we're using GNU nm, then use its standard symbol codes.
9356 case `$NM -V 2>&1` in
9357 *GNU* | *'with BFD'*)
9358 symcode='[ABCDGIRSTW]' ;;
9359 esac
9361 # Try without a prefix undercore, then with it.
9362 for ac_symprfx in "" "_"; do
9364 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9365 symxfrm="\\1 $ac_symprfx\\2 \\2"
9367 # Write the raw and C identifiers.
9368 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9370 # Check to see that the pipe works correctly.
9371 pipe_works=no
9373 rm -f conftest*
9374 cat > conftest.$ac_ext <<EOF
9375 #ifdef __cplusplus
9376 extern "C" {
9377 #endif
9378 char nm_test_var;
9379 void nm_test_func(){}
9380 #ifdef __cplusplus
9382 #endif
9383 int main(){nm_test_var='a';nm_test_func();return(0);}
9386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387 (eval $ac_compile) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; then
9391 # Now try to grab the symbols.
9392 nlist=conftest.nm
9393 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9394 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && test -s "$nlist"; then
9398 # Try sorting and uniquifying the output.
9399 if sort "$nlist" | uniq > "$nlist"T; then
9400 mv -f "$nlist"T "$nlist"
9401 else
9402 rm -f "$nlist"T
9405 # Make sure that we snagged all the symbols we need.
9406 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9407 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9408 cat <<EOF > conftest.$ac_ext
9409 #ifdef __cplusplus
9410 extern "C" {
9411 #endif
9414 # Now generate the symbol file.
9415 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9417 cat <<EOF >> conftest.$ac_ext
9418 #if defined (__STDC__) && __STDC__
9419 # define lt_ptr_t void *
9420 #else
9421 # define lt_ptr_t char *
9422 # define const
9423 #endif
9425 /* The mapping between symbol names and symbols. */
9426 const struct {
9427 const char *name;
9428 lt_ptr_t address;
9430 lt_preloaded_symbols[] =
9433 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9434 cat <<\EOF >> conftest.$ac_ext
9435 {0, (lt_ptr_t) 0}
9438 #ifdef __cplusplus
9440 #endif
9442 # Now try linking the two files.
9443 mv conftest.$ac_objext conftstm.$ac_objext
9444 lt_save_LIBS="$LIBS"
9445 lt_save_CFLAGS="$CFLAGS"
9446 LIBS="conftstm.$ac_objext"
9447 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449 (eval $ac_link) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9453 pipe_works=yes
9455 LIBS="$lt_save_LIBS"
9456 CFLAGS="$lt_save_CFLAGS"
9457 else
9458 echo "cannot find nm_test_func in $nlist" >&5
9460 else
9461 echo "cannot find nm_test_var in $nlist" >&5
9463 else
9464 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9466 else
9467 echo "$progname: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9470 rm -f conftest* conftst*
9472 # Do not use the global_symbol_pipe unless it works.
9473 if test "$pipe_works" = yes; then
9474 break
9475 else
9476 lt_cv_sys_global_symbol_pipe=
9478 done
9482 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9483 lt_cv_sys_global_symbol_to_cdecl=
9485 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9486 { echo "$as_me:$LINENO: result: failed" >&5
9487 echo "${ECHO_T}failed" >&6; }
9488 else
9489 { echo "$as_me:$LINENO: result: ok" >&5
9490 echo "${ECHO_T}ok" >&6; }
9494 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9495 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9496 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9500 libltdl_cv_preloaded_symbols=yes
9501 else
9502 libltdl_cv_preloaded_symbols=no
9506 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9507 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9508 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9510 cat >>confdefs.h <<\_ACEOF
9511 #define HAVE_PRELOADED_SYMBOLS 1
9512 _ACEOF
9516 LIBADD_DL=
9518 ac_ext=c
9519 ac_cpp='$CPP $CPPFLAGS'
9520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9525 { echo "$as_me:$LINENO: checking for shl_load" >&5
9526 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9527 if test "${ac_cv_func_shl_load+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530 cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h. */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9538 #define shl_load innocuous_shl_load
9540 /* System header to define __stub macros and hopefully few prototypes,
9541 which can conflict with char shl_load (); below.
9542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9543 <limits.h> exists even on freestanding compilers. */
9545 #ifdef __STDC__
9546 # include <limits.h>
9547 #else
9548 # include <assert.h>
9549 #endif
9551 #undef shl_load
9553 /* Override any GCC internal prototype to avoid an error.
9554 Use char because int might match the return type of a GCC
9555 builtin and then its argument prototype would still apply. */
9556 #ifdef __cplusplus
9557 extern "C"
9558 #endif
9559 char shl_load ();
9560 /* The GNU C library defines this for functions which it implements
9561 to always fail with ENOSYS. Some functions are actually named
9562 something starting with __ and the normal name is an alias. */
9563 #if defined __stub_shl_load || defined __stub___shl_load
9564 choke me
9565 #endif
9568 main ()
9570 return shl_load ();
9572 return 0;
9574 _ACEOF
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (ac_try="$ac_link"
9577 case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_link") 2>conftest.er1
9583 ac_status=$?
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
9589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9590 { (case "(($ac_try" in
9591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9592 *) ac_try_echo=$ac_try;;
9593 esac
9594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9595 (eval "$ac_try") 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; } &&
9599 { ac_try='test -s conftest$ac_exeext'
9600 { (case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_try") 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; }; then
9609 ac_cv_func_shl_load=yes
9610 else
9611 echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9614 ac_cv_func_shl_load=no
9617 rm -f core conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9620 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9621 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9622 if test $ac_cv_func_shl_load = yes; then
9624 cat >>confdefs.h <<\_ACEOF
9625 #define HAVE_SHL_LOAD 1
9626 _ACEOF
9628 else
9629 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9630 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9631 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 else
9634 ac_check_lib_save_LIBS=$LIBS
9635 LIBS="-ldld $LIBS"
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h. */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 char shl_load ();
9651 main ()
9653 return shl_load ();
9655 return 0;
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9660 case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673 { (case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_try") 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_try") 2>&5
9689 ac_status=$?
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_lib_dld_shl_load=yes
9693 else
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_lib_dld_shl_load=no
9700 rm -f core conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_lib_save_LIBS
9704 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9705 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9706 if test $ac_cv_lib_dld_shl_load = yes; then
9708 cat >>confdefs.h <<\_ACEOF
9709 #define HAVE_SHL_LOAD 1
9710 _ACEOF
9712 LIBADD_DL="$LIBADD_DL -ldld"
9713 else
9714 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9715 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719 ac_check_lib_save_LIBS=$LIBS
9720 LIBS="-ldl $LIBS"
9721 cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h. */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9728 /* Override any GCC internal prototype to avoid an error.
9729 Use char because int might match the return type of a GCC
9730 builtin and then its argument prototype would still apply. */
9731 #ifdef __cplusplus
9732 extern "C"
9733 #endif
9734 char dlopen ();
9736 main ()
9738 return dlopen ();
9740 return 0;
9742 _ACEOF
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (ac_try="$ac_link"
9745 case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_link") 2>conftest.er1
9751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
9757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9758 { (case "(($ac_try" in
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9761 esac
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_try") 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try='test -s conftest$ac_exeext'
9768 { (case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9771 esac
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_try") 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 ac_cv_lib_dl_dlopen=yes
9778 else
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 ac_cv_lib_dl_dlopen=no
9785 rm -f core conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9787 LIBS=$ac_check_lib_save_LIBS
9789 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9790 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9791 if test $ac_cv_lib_dl_dlopen = yes; then
9793 cat >>confdefs.h <<\_ACEOF
9794 #define HAVE_LIBDL 1
9795 _ACEOF
9797 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9798 else
9799 cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h. */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h. */
9805 #if HAVE_DLFCN_H
9806 # include <dlfcn.h>
9807 #endif
9810 main ()
9812 dlopen(0, 0);
9814 return 0;
9816 _ACEOF
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832 { (case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_try") 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
9842 { (case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_try") 2>&5
9848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9852 cat >>confdefs.h <<\_ACEOF
9853 #define HAVE_LIBDL 1
9854 _ACEOF
9855 libltdl_cv_func_dlopen="yes"
9856 else
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9861 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9862 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865 ac_check_lib_save_LIBS=$LIBS
9866 LIBS="-lsvld $LIBS"
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9874 /* Override any GCC internal prototype to avoid an error.
9875 Use char because int might match the return type of a GCC
9876 builtin and then its argument prototype would still apply. */
9877 #ifdef __cplusplus
9878 extern "C"
9879 #endif
9880 char dlopen ();
9882 main ()
9884 return dlopen ();
9886 return 0;
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9891 case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894 esac
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_link") 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9904 { (case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9907 esac
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_try") 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; } &&
9913 { ac_try='test -s conftest$ac_exeext'
9914 { (case "(($ac_try" in
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9917 esac
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_try") 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_lib_svld_dlopen=yes
9924 else
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 ac_cv_lib_svld_dlopen=no
9931 rm -f core conftest.err conftest.$ac_objext \
9932 conftest$ac_exeext conftest.$ac_ext
9933 LIBS=$ac_check_lib_save_LIBS
9935 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9936 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9937 if test $ac_cv_lib_svld_dlopen = yes; then
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_LIBDL 1
9941 _ACEOF
9943 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9944 else
9945 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9946 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9947 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950 ac_check_lib_save_LIBS=$LIBS
9951 LIBS="-ldld $LIBS"
9952 cat >conftest.$ac_ext <<_ACEOF
9953 /* confdefs.h. */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9959 /* Override any GCC internal prototype to avoid an error.
9960 Use char because int might match the return type of a GCC
9961 builtin and then its argument prototype would still apply. */
9962 #ifdef __cplusplus
9963 extern "C"
9964 #endif
9965 char dld_link ();
9967 main ()
9969 return dld_link ();
9971 return 0;
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9976 case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
9982 ac_status=$?
9983 grep -v '^ *+' conftest.er1 >conftest.err
9984 rm -f conftest.er1
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest$ac_exeext'
9999 { (case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10002 esac
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_try") 2>&5
10005 ac_status=$?
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_cv_lib_dld_dld_link=yes
10009 else
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_cv_lib_dld_dld_link=no
10016 rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 LIBS=$ac_check_lib_save_LIBS
10020 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10021 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10022 if test $ac_cv_lib_dld_dld_link = yes; then
10024 cat >>confdefs.h <<\_ACEOF
10025 #define HAVE_DLD 1
10026 _ACEOF
10028 LIBADD_DL="$LIBADD_DL -ldld"
10029 else
10030 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10031 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10032 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h. */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10043 #define _dyld_func_lookup innocuous__dyld_func_lookup
10045 /* System header to define __stub macros and hopefully few prototypes,
10046 which can conflict with char _dyld_func_lookup (); below.
10047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10048 <limits.h> exists even on freestanding compilers. */
10050 #ifdef __STDC__
10051 # include <limits.h>
10052 #else
10053 # include <assert.h>
10054 #endif
10056 #undef _dyld_func_lookup
10058 /* Override any GCC internal prototype to avoid an error.
10059 Use char because int might match the return type of a GCC
10060 builtin and then its argument prototype would still apply. */
10061 #ifdef __cplusplus
10062 extern "C"
10063 #endif
10064 char _dyld_func_lookup ();
10065 /* The GNU C library defines this for functions which it implements
10066 to always fail with ENOSYS. Some functions are actually named
10067 something starting with __ and the normal name is an alias. */
10068 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10069 choke me
10070 #endif
10073 main ()
10075 return _dyld_func_lookup ();
10077 return 0;
10079 _ACEOF
10080 rm -f conftest.$ac_objext conftest$ac_exeext
10081 if { (ac_try="$ac_link"
10082 case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085 esac
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_link") 2>conftest.er1
10088 ac_status=$?
10089 grep -v '^ *+' conftest.er1 >conftest.err
10090 rm -f conftest.er1
10091 cat conftest.err >&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } &&
10094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10095 { (case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098 esac
10099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_try") 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try='test -s conftest$ac_exeext'
10105 { (case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108 esac
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_try") 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
10114 ac_cv_func__dyld_func_lookup=yes
10115 else
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 ac_cv_func__dyld_func_lookup=no
10122 rm -f core conftest.err conftest.$ac_objext \
10123 conftest$ac_exeext conftest.$ac_ext
10125 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10126 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10127 if test $ac_cv_func__dyld_func_lookup = yes; then
10129 cat >>confdefs.h <<\_ACEOF
10130 #define HAVE_DYLD 1
10131 _ACEOF
10144 rm -f core conftest.err conftest.$ac_objext \
10145 conftest$ac_exeext conftest.$ac_ext
10156 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10157 then
10158 lt_save_LIBS="$LIBS"
10159 LIBS="$LIBS $LIBADD_DL"
10161 for ac_func in dlerror
10163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169 cat >conftest.$ac_ext <<_ACEOF
10170 /* confdefs.h. */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10177 #define $ac_func innocuous_$ac_func
10179 /* System header to define __stub macros and hopefully few prototypes,
10180 which can conflict with char $ac_func (); below.
10181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10182 <limits.h> exists even on freestanding compilers. */
10184 #ifdef __STDC__
10185 # include <limits.h>
10186 #else
10187 # include <assert.h>
10188 #endif
10190 #undef $ac_func
10192 /* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
10195 #ifdef __cplusplus
10196 extern "C"
10197 #endif
10198 char $ac_func ();
10199 /* The GNU C library defines this for functions which it implements
10200 to always fail with ENOSYS. Some functions are actually named
10201 something starting with __ and the normal name is an alias. */
10202 #if defined __stub_$ac_func || defined __stub___$ac_func
10203 choke me
10204 #endif
10207 main ()
10209 return $ac_func ();
10211 return 0;
10213 _ACEOF
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (ac_try="$ac_link"
10216 case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219 esac
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_link") 2>conftest.er1
10222 ac_status=$?
10223 grep -v '^ *+' conftest.er1 >conftest.err
10224 rm -f conftest.er1
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } &&
10228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10229 { (case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_try") 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest$ac_exeext'
10239 { (case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10242 esac
10243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244 (eval "$ac_try") 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 eval "$as_ac_var=yes"
10249 else
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 eval "$as_ac_var=no"
10256 rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
10259 ac_res=`eval echo '${'$as_ac_var'}'`
10260 { echo "$as_me:$LINENO: result: $ac_res" >&5
10261 echo "${ECHO_T}$ac_res" >&6; }
10262 if test `eval echo '${'$as_ac_var'}'` = yes; then
10263 cat >>confdefs.h <<_ACEOF
10264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10265 _ACEOF
10268 done
10270 LIBS="$lt_save_LIBS"
10272 ac_ext=c
10273 ac_cpp='$CPP $CPPFLAGS'
10274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10280 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10281 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10282 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 else
10285 ac_cv_sys_symbol_underscore=no
10286 cat > conftest.$ac_ext <<EOF
10287 void nm_test_func(){}
10288 int main(){nm_test_func;return 0;}
10290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291 (eval $ac_compile) 2>&5
10292 ac_status=$?
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); }; then
10295 # Now try to grab the symbols.
10296 ac_nlist=conftest.nm
10297 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10298 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && test -s "$ac_nlist"; then
10302 # See whether the symbols have a leading underscore.
10303 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10304 ac_cv_sys_symbol_underscore=yes
10305 else
10306 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10308 else
10309 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10312 else
10313 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10315 else
10316 echo "configure: failed program was:" >&5
10317 cat conftest.c >&5
10319 rm -rf conftest*
10322 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10323 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10326 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10327 if test x"$libltdl_cv_func_dlopen" = xyes ||
10328 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10329 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10330 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10331 if test "${libltdl_cv_need_uscore+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334 libltdl_cv_need_uscore=unknown
10335 save_LIBS="$LIBS"
10336 LIBS="$LIBS $LIBADD_DL"
10337 if test "$cross_compiling" = yes; then :
10338 libltdl_cv_need_uscore=cross
10339 else
10340 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10341 lt_status=$lt_dlunknown
10342 cat > conftest.$ac_ext <<EOF
10343 #line 10343 "configure"
10344 #include "confdefs.h"
10346 #if HAVE_DLFCN_H
10347 #include <dlfcn.h>
10348 #endif
10350 #include <stdio.h>
10352 #ifdef RTLD_GLOBAL
10353 # define LT_DLGLOBAL RTLD_GLOBAL
10354 #else
10355 # ifdef DL_GLOBAL
10356 # define LT_DLGLOBAL DL_GLOBAL
10357 # else
10358 # define LT_DLGLOBAL 0
10359 # endif
10360 #endif
10362 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10363 find out it does not work in some platform. */
10364 #ifndef LT_DLLAZY_OR_NOW
10365 # ifdef RTLD_LAZY
10366 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10367 # else
10368 # ifdef DL_LAZY
10369 # define LT_DLLAZY_OR_NOW DL_LAZY
10370 # else
10371 # ifdef RTLD_NOW
10372 # define LT_DLLAZY_OR_NOW RTLD_NOW
10373 # else
10374 # ifdef DL_NOW
10375 # define LT_DLLAZY_OR_NOW DL_NOW
10376 # else
10377 # define LT_DLLAZY_OR_NOW 0
10378 # endif
10379 # endif
10380 # endif
10381 # endif
10382 #endif
10384 #ifdef __cplusplus
10385 extern "C" void exit (int);
10386 #endif
10388 void fnord() { int i=42;}
10389 int main ()
10391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10392 int status = $lt_dlunknown;
10394 if (self)
10396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10397 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10398 /* dlclose (self); */
10400 else
10401 puts (dlerror ());
10403 exit (status);
10406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407 (eval $ac_link) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10411 (./conftest; exit; ) >&5 2>/dev/null
10412 lt_status=$?
10413 case x$lt_status in
10414 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10415 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10416 x$lt_dlunknown|x*) ;;
10417 esac
10418 else :
10419 # compilation failed
10423 rm -fr conftest*
10425 LIBS="$save_LIBS"
10428 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10429 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10433 if test x"$libltdl_cv_need_uscore" = xyes; then
10435 cat >>confdefs.h <<\_ACEOF
10436 #define NEED_USCORE 1
10437 _ACEOF
10442 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10443 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10444 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 else
10447 # PORTME does your system automatically load deplibs for dlopen?
10448 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10449 # For now, we just catch OSes we know something about -- in the
10450 # future, we'll try test this programmatically.
10451 libltdl_cv_sys_dlopen_deplibs=unknown
10452 case "$host_os" in
10453 aix3*|aix4.1.*|aix4.2.*)
10454 # Unknown whether this is true for these versions of AIX, but
10455 # we want this `case' here to explicitly catch those versions.
10456 libltdl_cv_sys_dlopen_deplibs=unknown
10458 aix[45]*)
10459 libltdl_cv_sys_dlopen_deplibs=yes
10461 darwin*)
10462 # Assuming the user has installed a libdl from somewhere, this is true
10463 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10464 libltdl_cv_sys_dlopen_deplibs=yes
10466 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10467 # GNU and its variants, using gnu ld.so (Glibc)
10468 libltdl_cv_sys_dlopen_deplibs=yes
10470 hpux10*|hpux11*)
10471 libltdl_cv_sys_dlopen_deplibs=yes
10473 interix*)
10474 libltdl_cv_sys_dlopen_deplibs=yes
10476 irix[12345]*|irix6.[01]*)
10477 # Catch all versions of IRIX before 6.2, and indicate that we don't
10478 # know how it worked for any of those versions.
10479 libltdl_cv_sys_dlopen_deplibs=unknown
10481 irix*)
10482 # The case above catches anything before 6.2, and it's known that
10483 # at 6.2 and later dlopen does load deplibs.
10484 libltdl_cv_sys_dlopen_deplibs=yes
10486 netbsd*)
10487 libltdl_cv_sys_dlopen_deplibs=yes
10489 openbsd*)
10490 libltdl_cv_sys_dlopen_deplibs=yes
10492 osf[1234]*)
10493 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10494 # it did *not* use an RPATH in a shared library to find objects the
10495 # library depends on, so we explictly say `no'.
10496 libltdl_cv_sys_dlopen_deplibs=no
10498 osf5.0|osf5.0a|osf5.1)
10499 # dlopen *does* load deplibs and with the right loader patch applied
10500 # it even uses RPATH in a shared library to search for shared objects
10501 # that the library depends on, but there's no easy way to know if that
10502 # patch is installed. Since this is the case, all we can really
10503 # say is unknown -- it depends on the patch being installed. If
10504 # it is, this changes to `yes'. Without it, it would be `no'.
10505 libltdl_cv_sys_dlopen_deplibs=unknown
10507 osf*)
10508 # the two cases above should catch all versions of osf <= 5.1. Read
10509 # the comments above for what we know about them.
10510 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10511 # is used to find them so we can finally say `yes'.
10512 libltdl_cv_sys_dlopen_deplibs=yes
10514 solaris*)
10515 libltdl_cv_sys_dlopen_deplibs=yes
10517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10518 libltdl_cv_sys_dlopen_deplibs=yes
10520 esac
10523 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10524 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10525 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10527 cat >>confdefs.h <<\_ACEOF
10528 #define LTDL_DLOPEN_DEPLIBS 1
10529 _ACEOF
10534 for ac_header in argz.h
10536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 ac_res=`eval echo '${'$as_ac_Header'}'`
10544 { echo "$as_me:$LINENO: result: $ac_res" >&5
10545 echo "${ECHO_T}$ac_res" >&6; }
10546 else
10547 # Is the header compilable?
10548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10550 cat >conftest.$ac_ext <<_ACEOF
10551 /* confdefs.h. */
10552 _ACEOF
10553 cat confdefs.h >>conftest.$ac_ext
10554 cat >>conftest.$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10556 $ac_includes_default
10557 #include <$ac_header>
10558 _ACEOF
10559 rm -f conftest.$ac_objext
10560 if { (ac_try="$ac_compile"
10561 case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564 esac
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_compile") 2>conftest.er1
10567 ac_status=$?
10568 grep -v '^ *+' conftest.er1 >conftest.err
10569 rm -f conftest.er1
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } &&
10573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10574 { (case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577 esac
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_try") 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; } &&
10583 { ac_try='test -s conftest.$ac_objext'
10584 { (case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10587 esac
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_try") 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 ac_header_compiler=yes
10594 else
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_header_compiler=no
10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10603 echo "${ECHO_T}$ac_header_compiler" >&6; }
10605 # Is the header present?
10606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614 #include <$ac_header>
10615 _ACEOF
10616 if { (ac_try="$ac_cpp conftest.$ac_ext"
10617 case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620 esac
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } >/dev/null; then
10629 if test -s conftest.err; then
10630 ac_cpp_err=$ac_c_preproc_warn_flag
10631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10632 else
10633 ac_cpp_err=
10635 else
10636 ac_cpp_err=yes
10638 if test -z "$ac_cpp_err"; then
10639 ac_header_preproc=yes
10640 else
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10644 ac_header_preproc=no
10647 rm -f conftest.err conftest.$ac_ext
10648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10649 echo "${ECHO_T}$ac_header_preproc" >&6; }
10651 # So? What about this header?
10652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10653 yes:no: )
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10658 ac_header_preproc=yes
10660 no:yes:* )
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10673 ( cat <<\_ASBOX
10674 ## ----------------------------------- ##
10675 ## Report this to llvmbugs@cs.uiuc.edu ##
10676 ## ----------------------------------- ##
10677 _ASBOX
10678 ) | sed "s/^/$as_me: WARNING: /" >&2
10680 esac
10681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 else
10686 eval "$as_ac_Header=\$ac_header_preproc"
10688 ac_res=`eval echo '${'$as_ac_Header'}'`
10689 { echo "$as_me:$LINENO: result: $ac_res" >&5
10690 echo "${ECHO_T}$ac_res" >&6; }
10693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10694 cat >>confdefs.h <<_ACEOF
10695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696 _ACEOF
10700 done
10703 { echo "$as_me:$LINENO: checking for error_t" >&5
10704 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10705 if test "${ac_cv_type_error_t+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 else
10708 cat >conftest.$ac_ext <<_ACEOF
10709 /* confdefs.h. */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714 #if HAVE_ARGZ_H
10715 # include <argz.h>
10716 #endif
10718 typedef error_t ac__type_new_;
10720 main ()
10722 if ((ac__type_new_ *) 0)
10723 return 0;
10724 if (sizeof (ac__type_new_))
10725 return 0;
10727 return 0;
10729 _ACEOF
10730 rm -f conftest.$ac_objext
10731 if { (ac_try="$ac_compile"
10732 case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735 esac
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_compile") 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10745 { (case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748 esac
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_try") 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; } &&
10754 { ac_try='test -s conftest.$ac_objext'
10755 { (case "(($ac_try" in
10756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10757 *) ac_try_echo=$ac_try;;
10758 esac
10759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10760 (eval "$ac_try") 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 ac_cv_type_error_t=yes
10765 else
10766 echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10769 ac_cv_type_error_t=no
10772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10775 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10776 if test $ac_cv_type_error_t = yes; then
10778 cat >>confdefs.h <<_ACEOF
10779 #define HAVE_ERROR_T 1
10780 _ACEOF
10783 else
10785 cat >>confdefs.h <<\_ACEOF
10786 #define error_t int
10787 _ACEOF
10797 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805 cat >conftest.$ac_ext <<_ACEOF
10806 /* confdefs.h. */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h. */
10811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10813 #define $ac_func innocuous_$ac_func
10815 /* System header to define __stub macros and hopefully few prototypes,
10816 which can conflict with char $ac_func (); below.
10817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 <limits.h> exists even on freestanding compilers. */
10820 #ifdef __STDC__
10821 # include <limits.h>
10822 #else
10823 # include <assert.h>
10824 #endif
10826 #undef $ac_func
10828 /* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
10831 #ifdef __cplusplus
10832 extern "C"
10833 #endif
10834 char $ac_func ();
10835 /* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
10838 #if defined __stub_$ac_func || defined __stub___$ac_func
10839 choke me
10840 #endif
10843 main ()
10845 return $ac_func ();
10847 return 0;
10849 _ACEOF
10850 rm -f conftest.$ac_objext conftest$ac_exeext
10851 if { (ac_try="$ac_link"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_link") 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10868 esac
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest$ac_exeext'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 eval "$as_ac_var=yes"
10885 else
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 eval "$as_ac_var=no"
10892 rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10895 ac_res=`eval echo '${'$as_ac_var'}'`
10896 { echo "$as_me:$LINENO: result: $ac_res" >&5
10897 echo "${ECHO_T}$ac_res" >&6; }
10898 if test `eval echo '${'$as_ac_var'}'` = yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10901 _ACEOF
10904 done
10933 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10934 stdio.h unistd.h
10936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10943 ac_res=`eval echo '${'$as_ac_Header'}'`
10944 { echo "$as_me:$LINENO: result: $ac_res" >&5
10945 echo "${ECHO_T}$ac_res" >&6; }
10946 else
10947 # Is the header compilable?
10948 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h. */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 $ac_includes_default
10957 #include <$ac_header>
10958 _ACEOF
10959 rm -f conftest.$ac_objext
10960 if { (ac_try="$ac_compile"
10961 case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
10967 ac_status=$?
10968 grep -v '^ *+' conftest.er1 >conftest.err
10969 rm -f conftest.er1
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10974 { (case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977 esac
10978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_try") 2>&5
10980 ac_status=$?
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; } &&
10983 { ac_try='test -s conftest.$ac_objext'
10984 { (case "(($ac_try" in
10985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10987 esac
10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_try") 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; }; then
10993 ac_header_compiler=yes
10994 else
10995 echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10998 ac_header_compiler=no
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11003 echo "${ECHO_T}$ac_header_compiler" >&6; }
11005 # Is the header present?
11006 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11008 cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h. */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h. */
11014 #include <$ac_header>
11015 _ACEOF
11016 if { (ac_try="$ac_cpp conftest.$ac_ext"
11017 case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020 esac
11021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } >/dev/null; then
11029 if test -s conftest.err; then
11030 ac_cpp_err=$ac_c_preproc_warn_flag
11031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11032 else
11033 ac_cpp_err=
11035 else
11036 ac_cpp_err=yes
11038 if test -z "$ac_cpp_err"; then
11039 ac_header_preproc=yes
11040 else
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 ac_header_preproc=no
11047 rm -f conftest.err conftest.$ac_ext
11048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11049 echo "${ECHO_T}$ac_header_preproc" >&6; }
11051 # So? What about this header?
11052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11053 yes:no: )
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11058 ac_header_preproc=yes
11060 no:yes:* )
11061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11068 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11073 ( cat <<\_ASBOX
11074 ## ----------------------------------- ##
11075 ## Report this to llvmbugs@cs.uiuc.edu ##
11076 ## ----------------------------------- ##
11077 _ASBOX
11078 ) | sed "s/^/$as_me: WARNING: /" >&2
11080 esac
11081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 else
11086 eval "$as_ac_Header=\$ac_header_preproc"
11088 ac_res=`eval echo '${'$as_ac_Header'}'`
11089 { echo "$as_me:$LINENO: result: $ac_res" >&5
11090 echo "${ECHO_T}$ac_res" >&6; }
11093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11094 cat >>confdefs.h <<_ACEOF
11095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11096 _ACEOF
11100 done
11106 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 ac_res=`eval echo '${'$as_ac_Header'}'`
11116 { echo "$as_me:$LINENO: result: $ac_res" >&5
11117 echo "${ECHO_T}$ac_res" >&6; }
11118 else
11119 # Is the header compilable?
11120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11122 cat >conftest.$ac_ext <<_ACEOF
11123 /* confdefs.h. */
11124 _ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h. */
11128 $ac_includes_default
11129 #include <$ac_header>
11130 _ACEOF
11131 rm -f conftest.$ac_objext
11132 if { (ac_try="$ac_compile"
11133 case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136 esac
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_compile") 2>conftest.er1
11139 ac_status=$?
11140 grep -v '^ *+' conftest.er1 >conftest.err
11141 rm -f conftest.er1
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11146 { (case "(($ac_try" in
11147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11148 *) ac_try_echo=$ac_try;;
11149 esac
11150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11151 (eval "$ac_try") 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; } &&
11155 { ac_try='test -s conftest.$ac_objext'
11156 { (case "(($ac_try" in
11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158 *) ac_try_echo=$ac_try;;
11159 esac
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_try") 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_header_compiler=yes
11166 else
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11170 ac_header_compiler=no
11173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11175 echo "${ECHO_T}$ac_header_compiler" >&6; }
11177 # Is the header present?
11178 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11180 cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h. */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 #include <$ac_header>
11187 _ACEOF
11188 if { (ac_try="$ac_cpp conftest.$ac_ext"
11189 case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11192 esac
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11195 ac_status=$?
11196 grep -v '^ *+' conftest.er1 >conftest.err
11197 rm -f conftest.er1
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } >/dev/null; then
11201 if test -s conftest.err; then
11202 ac_cpp_err=$ac_c_preproc_warn_flag
11203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11204 else
11205 ac_cpp_err=
11207 else
11208 ac_cpp_err=yes
11210 if test -z "$ac_cpp_err"; then
11211 ac_header_preproc=yes
11212 else
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11216 ac_header_preproc=no
11219 rm -f conftest.err conftest.$ac_ext
11220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11221 echo "${ECHO_T}$ac_header_preproc" >&6; }
11223 # So? What about this header?
11224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11225 yes:no: )
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11230 ac_header_preproc=yes
11232 no:yes:* )
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11245 ( cat <<\_ASBOX
11246 ## ----------------------------------- ##
11247 ## Report this to llvmbugs@cs.uiuc.edu ##
11248 ## ----------------------------------- ##
11249 _ASBOX
11250 ) | sed "s/^/$as_me: WARNING: /" >&2
11252 esac
11253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258 eval "$as_ac_Header=\$ac_header_preproc"
11260 ac_res=`eval echo '${'$as_ac_Header'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11266 cat >>confdefs.h <<_ACEOF
11267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11268 _ACEOF
11272 done
11276 for ac_header in string.h strings.h
11278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 ac_res=`eval echo '${'$as_ac_Header'}'`
11286 { echo "$as_me:$LINENO: result: $ac_res" >&5
11287 echo "${ECHO_T}$ac_res" >&6; }
11288 else
11289 # Is the header compilable?
11290 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 $ac_includes_default
11299 #include <$ac_header>
11300 _ACEOF
11301 rm -f conftest.$ac_objext
11302 if { (ac_try="$ac_compile"
11303 case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306 esac
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_compile") 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; } &&
11325 { ac_try='test -s conftest.$ac_objext'
11326 { (case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11329 esac
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
11332 ac_status=$?
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_header_compiler=yes
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_compiler=no
11343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11345 echo "${ECHO_T}$ac_header_compiler" >&6; }
11347 # Is the header present?
11348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 #include <$ac_header>
11357 _ACEOF
11358 if { (ac_try="$ac_cpp conftest.$ac_ext"
11359 case "(($ac_try" in
11360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11362 esac
11363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11365 ac_status=$?
11366 grep -v '^ *+' conftest.er1 >conftest.err
11367 rm -f conftest.er1
11368 cat conftest.err >&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } >/dev/null; then
11371 if test -s conftest.err; then
11372 ac_cpp_err=$ac_c_preproc_warn_flag
11373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11374 else
11375 ac_cpp_err=
11377 else
11378 ac_cpp_err=yes
11380 if test -z "$ac_cpp_err"; then
11381 ac_header_preproc=yes
11382 else
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 ac_header_preproc=no
11389 rm -f conftest.err conftest.$ac_ext
11390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11391 echo "${ECHO_T}$ac_header_preproc" >&6; }
11393 # So? What about this header?
11394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11395 yes:no: )
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11400 ac_header_preproc=yes
11402 no:yes:* )
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11415 ( cat <<\_ASBOX
11416 ## ----------------------------------- ##
11417 ## Report this to llvmbugs@cs.uiuc.edu ##
11418 ## ----------------------------------- ##
11419 _ASBOX
11420 ) | sed "s/^/$as_me: WARNING: /" >&2
11422 esac
11423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428 eval "$as_ac_Header=\$ac_header_preproc"
11430 ac_res=`eval echo '${'$as_ac_Header'}'`
11431 { echo "$as_me:$LINENO: result: $ac_res" >&5
11432 echo "${ECHO_T}$ac_res" >&6; }
11435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11436 cat >>confdefs.h <<_ACEOF
11437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11438 _ACEOF
11439 break
11442 done
11447 for ac_func in strchr index
11449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 else
11455 cat >conftest.$ac_ext <<_ACEOF
11456 /* confdefs.h. */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11463 #define $ac_func innocuous_$ac_func
11465 /* System header to define __stub macros and hopefully few prototypes,
11466 which can conflict with char $ac_func (); below.
11467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11468 <limits.h> exists even on freestanding compilers. */
11470 #ifdef __STDC__
11471 # include <limits.h>
11472 #else
11473 # include <assert.h>
11474 #endif
11476 #undef $ac_func
11478 /* Override any GCC internal prototype to avoid an error.
11479 Use char because int might match the return type of a GCC
11480 builtin and then its argument prototype would still apply. */
11481 #ifdef __cplusplus
11482 extern "C"
11483 #endif
11484 char $ac_func ();
11485 /* The GNU C library defines this for functions which it implements
11486 to always fail with ENOSYS. Some functions are actually named
11487 something starting with __ and the normal name is an alias. */
11488 #if defined __stub_$ac_func || defined __stub___$ac_func
11489 choke me
11490 #endif
11493 main ()
11495 return $ac_func ();
11497 return 0;
11499 _ACEOF
11500 rm -f conftest.$ac_objext conftest$ac_exeext
11501 if { (ac_try="$ac_link"
11502 case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505 esac
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_link") 2>conftest.er1
11508 ac_status=$?
11509 grep -v '^ *+' conftest.er1 >conftest.err
11510 rm -f conftest.er1
11511 cat conftest.err >&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11515 { (case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518 esac
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_try") 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest$ac_exeext'
11525 { (case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528 esac
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_try") 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 eval "$as_ac_var=yes"
11535 else
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 eval "$as_ac_var=no"
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext conftest.$ac_ext
11545 ac_res=`eval echo '${'$as_ac_var'}'`
11546 { echo "$as_me:$LINENO: result: $ac_res" >&5
11547 echo "${ECHO_T}$ac_res" >&6; }
11548 if test `eval echo '${'$as_ac_var'}'` = yes; then
11549 cat >>confdefs.h <<_ACEOF
11550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11551 _ACEOF
11552 break
11554 done
11558 for ac_func in strrchr rindex
11560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566 cat >conftest.$ac_ext <<_ACEOF
11567 /* confdefs.h. */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11574 #define $ac_func innocuous_$ac_func
11576 /* System header to define __stub macros and hopefully few prototypes,
11577 which can conflict with char $ac_func (); below.
11578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11579 <limits.h> exists even on freestanding compilers. */
11581 #ifdef __STDC__
11582 # include <limits.h>
11583 #else
11584 # include <assert.h>
11585 #endif
11587 #undef $ac_func
11589 /* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
11592 #ifdef __cplusplus
11593 extern "C"
11594 #endif
11595 char $ac_func ();
11596 /* The GNU C library defines this for functions which it implements
11597 to always fail with ENOSYS. Some functions are actually named
11598 something starting with __ and the normal name is an alias. */
11599 #if defined __stub_$ac_func || defined __stub___$ac_func
11600 choke me
11601 #endif
11604 main ()
11606 return $ac_func ();
11608 return 0;
11610 _ACEOF
11611 rm -f conftest.$ac_objext conftest$ac_exeext
11612 if { (ac_try="$ac_link"
11613 case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11616 esac
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_link") 2>conftest.er1
11619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11626 { (case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629 esac
11630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_try") 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; } &&
11635 { ac_try='test -s conftest$ac_exeext'
11636 { (case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11639 esac
11640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_try") 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 eval "$as_ac_var=yes"
11646 else
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11650 eval "$as_ac_var=no"
11653 rm -f core conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11656 ac_res=`eval echo '${'$as_ac_var'}'`
11657 { echo "$as_me:$LINENO: result: $ac_res" >&5
11658 echo "${ECHO_T}$ac_res" >&6; }
11659 if test `eval echo '${'$as_ac_var'}'` = yes; then
11660 cat >>confdefs.h <<_ACEOF
11661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11662 _ACEOF
11663 break
11665 done
11669 for ac_func in memcpy bcopy
11671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h. */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11685 #define $ac_func innocuous_$ac_func
11687 /* System header to define __stub macros and hopefully few prototypes,
11688 which can conflict with char $ac_func (); below.
11689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11690 <limits.h> exists even on freestanding compilers. */
11692 #ifdef __STDC__
11693 # include <limits.h>
11694 #else
11695 # include <assert.h>
11696 #endif
11698 #undef $ac_func
11700 /* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11703 #ifdef __cplusplus
11704 extern "C"
11705 #endif
11706 char $ac_func ();
11707 /* The GNU C library defines this for functions which it implements
11708 to always fail with ENOSYS. Some functions are actually named
11709 something starting with __ and the normal name is an alias. */
11710 #if defined __stub_$ac_func || defined __stub___$ac_func
11711 choke me
11712 #endif
11715 main ()
11717 return $ac_func ();
11719 return 0;
11721 _ACEOF
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (ac_try="$ac_link"
11724 case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727 esac
11728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_link") 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11737 { (case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_try") 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest$ac_exeext'
11747 { (case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_try") 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; }; then
11756 eval "$as_ac_var=yes"
11757 else
11758 echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11761 eval "$as_ac_var=no"
11764 rm -f core conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11767 ac_res=`eval echo '${'$as_ac_var'}'`
11768 { echo "$as_me:$LINENO: result: $ac_res" >&5
11769 echo "${ECHO_T}$ac_res" >&6; }
11770 if test `eval echo '${'$as_ac_var'}'` = yes; then
11771 cat >>confdefs.h <<_ACEOF
11772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11773 _ACEOF
11774 break
11776 done
11780 for ac_func in memmove strcmp
11782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 else
11788 cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h. */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11796 #define $ac_func innocuous_$ac_func
11798 /* System header to define __stub macros and hopefully few prototypes,
11799 which can conflict with char $ac_func (); below.
11800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11801 <limits.h> exists even on freestanding compilers. */
11803 #ifdef __STDC__
11804 # include <limits.h>
11805 #else
11806 # include <assert.h>
11807 #endif
11809 #undef $ac_func
11811 /* Override any GCC internal prototype to avoid an error.
11812 Use char because int might match the return type of a GCC
11813 builtin and then its argument prototype would still apply. */
11814 #ifdef __cplusplus
11815 extern "C"
11816 #endif
11817 char $ac_func ();
11818 /* The GNU C library defines this for functions which it implements
11819 to always fail with ENOSYS. Some functions are actually named
11820 something starting with __ and the normal name is an alias. */
11821 #if defined __stub_$ac_func || defined __stub___$ac_func
11822 choke me
11823 #endif
11826 main ()
11828 return $ac_func ();
11830 return 0;
11832 _ACEOF
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (ac_try="$ac_link"
11835 case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11838 esac
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_link") 2>conftest.er1
11841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
11847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851 esac
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; } &&
11857 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11867 eval "$as_ac_var=yes"
11868 else
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 eval "$as_ac_var=no"
11875 rm -f core conftest.err conftest.$ac_objext \
11876 conftest$ac_exeext conftest.$ac_ext
11878 ac_res=`eval echo '${'$as_ac_var'}'`
11879 { echo "$as_me:$LINENO: result: $ac_res" >&5
11880 echo "${ECHO_T}$ac_res" >&6; }
11881 if test `eval echo '${'$as_ac_var'}'` = yes; then
11882 cat >>confdefs.h <<_ACEOF
11883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11884 _ACEOF
11887 done
11892 for ac_func in closedir opendir readdir
11894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11908 #define $ac_func innocuous_$ac_func
11910 /* System header to define __stub macros and hopefully few prototypes,
11911 which can conflict with char $ac_func (); below.
11912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11913 <limits.h> exists even on freestanding compilers. */
11915 #ifdef __STDC__
11916 # include <limits.h>
11917 #else
11918 # include <assert.h>
11919 #endif
11921 #undef $ac_func
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 char $ac_func ();
11930 /* The GNU C library defines this for functions which it implements
11931 to always fail with ENOSYS. Some functions are actually named
11932 something starting with __ and the normal name is an alias. */
11933 #if defined __stub_$ac_func || defined __stub___$ac_func
11934 choke me
11935 #endif
11938 main ()
11940 return $ac_func ();
11942 return 0;
11944 _ACEOF
11945 rm -f conftest.$ac_objext conftest$ac_exeext
11946 if { (ac_try="$ac_link"
11947 case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11950 esac
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_link") 2>conftest.er1
11953 ac_status=$?
11954 grep -v '^ *+' conftest.er1 >conftest.err
11955 rm -f conftest.er1
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } &&
11959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11960 { (case "(($ac_try" in
11961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11963 esac
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_try") 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest$ac_exeext'
11970 { (case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973 esac
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_try") 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; }; then
11979 eval "$as_ac_var=yes"
11980 else
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 eval "$as_ac_var=no"
11987 rm -f core conftest.err conftest.$ac_objext \
11988 conftest$ac_exeext conftest.$ac_ext
11990 ac_res=`eval echo '${'$as_ac_var'}'`
11991 { echo "$as_me:$LINENO: result: $ac_res" >&5
11992 echo "${ECHO_T}$ac_res" >&6; }
11993 if test `eval echo '${'$as_ac_var'}'` = yes; then
11994 cat >>confdefs.h <<_ACEOF
11995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11996 _ACEOF
11999 done
12002 # Check whether --enable-shared was given.
12003 if test "${enable_shared+set}" = set; then
12004 enableval=$enable_shared; p=${PACKAGE-default}
12005 case $enableval in
12006 yes) enable_shared=yes ;;
12007 no) enable_shared=no ;;
12009 enable_shared=no
12010 # Look at the argument we got. We use all the common list separators.
12011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12012 for pkg in $enableval; do
12013 IFS="$lt_save_ifs"
12014 if test "X$pkg" = "X$p"; then
12015 enable_shared=yes
12017 done
12018 IFS="$lt_save_ifs"
12020 esac
12021 else
12022 enable_shared=yes
12026 # Check whether --enable-static was given.
12027 if test "${enable_static+set}" = set; then
12028 enableval=$enable_static; p=${PACKAGE-default}
12029 case $enableval in
12030 yes) enable_static=yes ;;
12031 no) enable_static=no ;;
12033 enable_static=no
12034 # Look at the argument we got. We use all the common list separators.
12035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12036 for pkg in $enableval; do
12037 IFS="$lt_save_ifs"
12038 if test "X$pkg" = "X$p"; then
12039 enable_static=yes
12041 done
12042 IFS="$lt_save_ifs"
12044 esac
12045 else
12046 enable_static=yes
12050 # Check whether --enable-fast-install was given.
12051 if test "${enable_fast_install+set}" = set; then
12052 enableval=$enable_fast_install; p=${PACKAGE-default}
12053 case $enableval in
12054 yes) enable_fast_install=yes ;;
12055 no) enable_fast_install=no ;;
12057 enable_fast_install=no
12058 # Look at the argument we got. We use all the common list separators.
12059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12060 for pkg in $enableval; do
12061 IFS="$lt_save_ifs"
12062 if test "X$pkg" = "X$p"; then
12063 enable_fast_install=yes
12065 done
12066 IFS="$lt_save_ifs"
12068 esac
12069 else
12070 enable_fast_install=yes
12074 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12075 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12076 if test "${lt_cv_path_SED+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 else
12079 # Loop through the user's path and test for sed and gsed.
12080 # Then use that list of sed's as ones to test for truncation.
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
12086 for lt_ac_prog in sed gsed; do
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12089 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12091 done
12092 done
12093 done
12094 lt_ac_max=0
12095 lt_ac_count=0
12096 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12097 # along with /bin/sed that truncates output.
12098 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12099 test ! -f $lt_ac_sed && continue
12100 cat /dev/null > conftest.in
12101 lt_ac_count=0
12102 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12103 # Check for GNU sed and select it if it is found.
12104 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12105 lt_cv_path_SED=$lt_ac_sed
12106 break
12108 while true; do
12109 cat conftest.in conftest.in >conftest.tmp
12110 mv conftest.tmp conftest.in
12111 cp conftest.in conftest.nl
12112 echo >>conftest.nl
12113 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12114 cmp -s conftest.out conftest.nl || break
12115 # 10000 chars as input seems more than enough
12116 test $lt_ac_count -gt 10 && break
12117 lt_ac_count=`expr $lt_ac_count + 1`
12118 if test $lt_ac_count -gt $lt_ac_max; then
12119 lt_ac_max=$lt_ac_count
12120 lt_cv_path_SED=$lt_ac_sed
12122 done
12123 done
12127 SED=$lt_cv_path_SED
12128 { echo "$as_me:$LINENO: result: $SED" >&5
12129 echo "${ECHO_T}$SED" >&6; }
12132 # Check whether --with-gnu-ld was given.
12133 if test "${with_gnu_ld+set}" = set; then
12134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12135 else
12136 with_gnu_ld=no
12139 ac_prog=ld
12140 if test "$GCC" = yes; then
12141 # Check if gcc -print-prog-name=ld gives a path.
12142 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12143 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12144 case $host in
12145 *-*-mingw*)
12146 # gcc leaves a trailing carriage return which upsets mingw
12147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12150 esac
12151 case $ac_prog in
12152 # Accept absolute paths.
12153 [\\/]* | ?:[\\/]*)
12154 re_direlt='/[^/][^/]*/\.\./'
12155 # Canonicalize the pathname of ld
12156 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12157 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12158 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12159 done
12160 test -z "$LD" && LD="$ac_prog"
12163 # If it fails, then pretend we aren't using GCC.
12164 ac_prog=ld
12167 # If it is relative, then search for the first ld in PATH.
12168 with_gnu_ld=unknown
12170 esac
12171 elif test "$with_gnu_ld" = yes; then
12172 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12173 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12174 else
12175 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12176 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12178 if test "${lt_cv_path_LD+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 else
12181 if test -z "$LD"; then
12182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12183 for ac_dir in $PATH; do
12184 IFS="$lt_save_ifs"
12185 test -z "$ac_dir" && ac_dir=.
12186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12187 lt_cv_path_LD="$ac_dir/$ac_prog"
12188 # Check to see if the program is GNU ld. I'd rather use --version,
12189 # but apparently some variants of GNU ld only accept -v.
12190 # Break only if it was the GNU/non-GNU ld that we prefer.
12191 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12192 *GNU* | *'with BFD'*)
12193 test "$with_gnu_ld" != no && break
12196 test "$with_gnu_ld" != yes && break
12198 esac
12200 done
12201 IFS="$lt_save_ifs"
12202 else
12203 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12207 LD="$lt_cv_path_LD"
12208 if test -n "$LD"; then
12209 { echo "$as_me:$LINENO: result: $LD" >&5
12210 echo "${ECHO_T}$LD" >&6; }
12211 else
12212 { echo "$as_me:$LINENO: result: no" >&5
12213 echo "${ECHO_T}no" >&6; }
12215 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12216 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12217 { (exit 1); exit 1; }; }
12218 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12219 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12220 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12224 case `$LD -v 2>&1 </dev/null` in
12225 *GNU* | *'with BFD'*)
12226 lt_cv_prog_gnu_ld=yes
12229 lt_cv_prog_gnu_ld=no
12231 esac
12233 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12234 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12235 with_gnu_ld=$lt_cv_prog_gnu_ld
12238 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12239 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12240 if test "${lt_cv_ld_reload_flag+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 else
12243 lt_cv_ld_reload_flag='-r'
12245 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12246 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12247 reload_flag=$lt_cv_ld_reload_flag
12248 case $reload_flag in
12249 "" | " "*) ;;
12250 *) reload_flag=" $reload_flag" ;;
12251 esac
12252 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12253 case $host_os in
12254 darwin*)
12255 if test "$GCC" = yes; then
12256 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12257 else
12258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12261 esac
12263 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12264 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12265 if test "${lt_cv_deplibs_check_method+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268 lt_cv_file_magic_cmd='$MAGIC_CMD'
12269 lt_cv_file_magic_test_file=
12270 lt_cv_deplibs_check_method='unknown'
12271 # Need to set the preceding variable on all platforms that support
12272 # interlibrary dependencies.
12273 # 'none' -- dependencies not supported.
12274 # `unknown' -- same as none, but documents that we really don't know.
12275 # 'pass_all' -- all dependencies passed with no checks.
12276 # 'test_compile' -- check by making test program.
12277 # 'file_magic [[regex]]' -- check by looking for files in library path
12278 # which responds to the $file_magic_cmd with a given extended regex.
12279 # If you have `file' or equivalent on your system and you're not sure
12280 # whether `pass_all' will *always* work, you probably want this one.
12282 case $host_os in
12283 aix4* | aix5*)
12284 lt_cv_deplibs_check_method=pass_all
12287 beos*)
12288 lt_cv_deplibs_check_method=pass_all
12291 bsdi[45]*)
12292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12293 lt_cv_file_magic_cmd='/usr/bin/file -L'
12294 lt_cv_file_magic_test_file=/shlib/libc.so
12297 cygwin*)
12298 # func_win32_libid is a shell function defined in ltmain.sh
12299 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12300 lt_cv_file_magic_cmd='func_win32_libid'
12303 mingw* | pw32*)
12304 # Base MSYS/MinGW do not provide the 'file' command needed by
12305 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12306 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12307 lt_cv_file_magic_cmd='$OBJDUMP -f'
12310 darwin* | rhapsody*)
12311 lt_cv_deplibs_check_method=pass_all
12314 freebsd* | kfreebsd*-gnu | dragonfly*)
12315 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12316 case $host_cpu in
12317 i*86 )
12318 # Not sure whether the presence of OpenBSD here was a mistake.
12319 # Let's accept both of them until this is cleared up.
12320 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12321 lt_cv_file_magic_cmd=/usr/bin/file
12322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12324 esac
12325 else
12326 lt_cv_deplibs_check_method=pass_all
12330 gnu*)
12331 lt_cv_deplibs_check_method=pass_all
12334 hpux10.20* | hpux11*)
12335 lt_cv_file_magic_cmd=/usr/bin/file
12336 case $host_cpu in
12337 ia64*)
12338 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12339 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12341 hppa*64*)
12342 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]'
12343 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12346 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12347 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12349 esac
12352 interix3*)
12353 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12357 irix5* | irix6* | nonstopux*)
12358 case $LD in
12359 *-32|*"-32 ") libmagic=32-bit;;
12360 *-n32|*"-n32 ") libmagic=N32;;
12361 *-64|*"-64 ") libmagic=64-bit;;
12362 *) libmagic=never-match;;
12363 esac
12364 lt_cv_deplibs_check_method=pass_all
12367 # This must be Linux ELF.
12368 linux*)
12369 lt_cv_deplibs_check_method=pass_all
12372 netbsd*)
12373 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12375 else
12376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12380 newos6*)
12381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12382 lt_cv_file_magic_cmd=/usr/bin/file
12383 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12386 nto-qnx*)
12387 lt_cv_deplibs_check_method=unknown
12390 openbsd*)
12391 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12393 else
12394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12398 osf3* | osf4* | osf5*)
12399 lt_cv_deplibs_check_method=pass_all
12402 solaris*)
12403 lt_cv_deplibs_check_method=pass_all
12406 sysv4 | sysv4.3*)
12407 case $host_vendor in
12408 motorola)
12409 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]'
12410 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12412 ncr)
12413 lt_cv_deplibs_check_method=pass_all
12415 sequent)
12416 lt_cv_file_magic_cmd='/bin/file'
12417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12419 sni)
12420 lt_cv_file_magic_cmd='/bin/file'
12421 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12422 lt_cv_file_magic_test_file=/lib/libc.so
12424 siemens)
12425 lt_cv_deplibs_check_method=pass_all
12428 lt_cv_deplibs_check_method=pass_all
12430 esac
12433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12434 lt_cv_deplibs_check_method=pass_all
12436 esac
12439 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12440 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12441 file_magic_cmd=$lt_cv_file_magic_cmd
12442 deplibs_check_method=$lt_cv_deplibs_check_method
12443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12447 # If no C compiler was specified, use CC.
12448 LTCC=${LTCC-"$CC"}
12450 # If no C compiler flags were specified, use CFLAGS.
12451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12453 # Allow CC to be a program name with arguments.
12454 compiler=$CC
12456 # Check whether --enable-libtool-lock was given.
12457 if test "${enable_libtool_lock+set}" = set; then
12458 enableval=$enable_libtool_lock;
12461 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12463 # Some flags need to be propagated to the compiler or linker for good
12464 # libtool support.
12465 case $host in
12466 ia64-*-hpux*)
12467 # Find out which ABI we are using.
12468 echo 'int i;' > conftest.$ac_ext
12469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470 (eval $ac_compile) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; then
12474 case `/usr/bin/file conftest.$ac_objext` in
12475 *ELF-32*)
12476 HPUX_IA64_MODE="32"
12478 *ELF-64*)
12479 HPUX_IA64_MODE="64"
12481 esac
12483 rm -rf conftest*
12485 *-*-irix6*)
12486 # Find out which ABI we are using.
12487 echo '#line 12487 "configure"' > conftest.$ac_ext
12488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12489 (eval $ac_compile) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; then
12493 if test "$lt_cv_prog_gnu_ld" = yes; then
12494 case `/usr/bin/file conftest.$ac_objext` in
12495 *32-bit*)
12496 LD="${LD-ld} -melf32bsmip"
12498 *N32*)
12499 LD="${LD-ld} -melf32bmipn32"
12501 *64-bit*)
12502 LD="${LD-ld} -melf64bmip"
12504 esac
12505 else
12506 case `/usr/bin/file conftest.$ac_objext` in
12507 *32-bit*)
12508 LD="${LD-ld} -32"
12510 *N32*)
12511 LD="${LD-ld} -n32"
12513 *64-bit*)
12514 LD="${LD-ld} -64"
12516 esac
12519 rm -rf conftest*
12522 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12523 # Find out which ABI we are using.
12524 echo 'int i;' > conftest.$ac_ext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12526 (eval $ac_compile) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; then
12530 case `/usr/bin/file conftest.o` in
12531 *32-bit*)
12532 case $host in
12533 x86_64-*linux*)
12534 LD="${LD-ld} -m elf_i386"
12536 ppc64-*linux*|powerpc64-*linux*)
12537 LD="${LD-ld} -m elf32ppclinux"
12539 s390x-*linux*)
12540 LD="${LD-ld} -m elf_s390"
12542 sparc64-*linux*)
12543 LD="${LD-ld} -m elf32_sparc"
12545 esac
12547 *64-bit*)
12548 case $host in
12549 x86_64-*linux*)
12550 LD="${LD-ld} -m elf_x86_64"
12552 ppc*-*linux*|powerpc*-*linux*)
12553 LD="${LD-ld} -m elf64ppc"
12555 s390*-*linux*)
12556 LD="${LD-ld} -m elf64_s390"
12558 sparc*-*linux*)
12559 LD="${LD-ld} -m elf64_sparc"
12561 esac
12563 esac
12565 rm -rf conftest*
12568 *-*-sco3.2v5*)
12569 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12570 SAVE_CFLAGS="$CFLAGS"
12571 CFLAGS="$CFLAGS -belf"
12572 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12573 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12574 if test "${lt_cv_cc_needs_belf+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577 ac_ext=c
12578 ac_cpp='$CPP $CPPFLAGS'
12579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12583 cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h. */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12591 main ()
12595 return 0;
12597 _ACEOF
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (ac_try="$ac_link"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>conftest.er1
12606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616 esac
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest$ac_exeext'
12623 { (case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_try") 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 lt_cv_cc_needs_belf=yes
12633 else
12634 echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12637 lt_cv_cc_needs_belf=no
12640 rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642 ac_ext=c
12643 ac_cpp='$CPP $CPPFLAGS'
12644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12649 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12650 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12651 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12652 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12653 CFLAGS="$SAVE_CFLAGS"
12656 sparc*-*solaris*)
12657 # Find out which ABI we are using.
12658 echo 'int i;' > conftest.$ac_ext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660 (eval $ac_compile) 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; then
12664 case `/usr/bin/file conftest.o` in
12665 *64-bit*)
12666 case $lt_cv_prog_gnu_ld in
12667 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12668 *) LD="${LD-ld} -64" ;;
12669 esac
12671 esac
12673 rm -rf conftest*
12677 esac
12679 need_locks="$enable_libtool_lock"
12684 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12685 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12686 (test "X$CXX" != "Xg++"))) ; then
12687 ac_ext=cpp
12688 ac_cpp='$CXXCPP $CPPFLAGS'
12689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12692 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12693 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12694 if test -z "$CXXCPP"; then
12695 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 else
12698 # Double quotes because CXXCPP needs to be expanded
12699 for CXXCPP in "$CXX -E" "/lib/cpp"
12701 ac_preproc_ok=false
12702 for ac_cxx_preproc_warn_flag in '' yes
12704 # Use a header file that comes with gcc, so configuring glibc
12705 # with a fresh cross-compiler works.
12706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12707 # <limits.h> exists even on freestanding compilers.
12708 # On the NeXT, cc -E runs the code through the compiler's parser,
12709 # not just through cpp. "Syntax error" is here to catch this case.
12710 cat >conftest.$ac_ext <<_ACEOF
12711 /* confdefs.h. */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12716 #ifdef __STDC__
12717 # include <limits.h>
12718 #else
12719 # include <assert.h>
12720 #endif
12721 Syntax error
12722 _ACEOF
12723 if { (ac_try="$ac_cpp conftest.$ac_ext"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } >/dev/null; then
12736 if test -s conftest.err; then
12737 ac_cpp_err=$ac_cxx_preproc_warn_flag
12738 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12739 else
12740 ac_cpp_err=
12742 else
12743 ac_cpp_err=yes
12745 if test -z "$ac_cpp_err"; then
12747 else
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 # Broken: fails on valid input.
12752 continue
12755 rm -f conftest.err conftest.$ac_ext
12757 # OK, works on sane cases. Now check whether nonexistent headers
12758 # can be detected and how.
12759 cat >conftest.$ac_ext <<_ACEOF
12760 /* confdefs.h. */
12761 _ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12765 #include <ac_nonexistent.h>
12766 _ACEOF
12767 if { (ac_try="$ac_cpp conftest.$ac_ext"
12768 case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12771 esac
12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } >/dev/null; then
12780 if test -s conftest.err; then
12781 ac_cpp_err=$ac_cxx_preproc_warn_flag
12782 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12783 else
12784 ac_cpp_err=
12786 else
12787 ac_cpp_err=yes
12789 if test -z "$ac_cpp_err"; then
12790 # Broken: success on invalid input.
12791 continue
12792 else
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 # Passes both tests.
12797 ac_preproc_ok=:
12798 break
12801 rm -f conftest.err conftest.$ac_ext
12803 done
12804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12805 rm -f conftest.err conftest.$ac_ext
12806 if $ac_preproc_ok; then
12807 break
12810 done
12811 ac_cv_prog_CXXCPP=$CXXCPP
12814 CXXCPP=$ac_cv_prog_CXXCPP
12815 else
12816 ac_cv_prog_CXXCPP=$CXXCPP
12818 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12819 echo "${ECHO_T}$CXXCPP" >&6; }
12820 ac_preproc_ok=false
12821 for ac_cxx_preproc_warn_flag in '' yes
12823 # Use a header file that comes with gcc, so configuring glibc
12824 # with a fresh cross-compiler works.
12825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12826 # <limits.h> exists even on freestanding compilers.
12827 # On the NeXT, cc -E runs the code through the compiler's parser,
12828 # not just through cpp. "Syntax error" is here to catch this case.
12829 cat >conftest.$ac_ext <<_ACEOF
12830 /* confdefs.h. */
12831 _ACEOF
12832 cat confdefs.h >>conftest.$ac_ext
12833 cat >>conftest.$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 #ifdef __STDC__
12836 # include <limits.h>
12837 #else
12838 # include <assert.h>
12839 #endif
12840 Syntax error
12841 _ACEOF
12842 if { (ac_try="$ac_cpp conftest.$ac_ext"
12843 case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846 esac
12847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } >/dev/null; then
12855 if test -s conftest.err; then
12856 ac_cpp_err=$ac_cxx_preproc_warn_flag
12857 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12858 else
12859 ac_cpp_err=
12861 else
12862 ac_cpp_err=yes
12864 if test -z "$ac_cpp_err"; then
12866 else
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 # Broken: fails on valid input.
12871 continue
12874 rm -f conftest.err conftest.$ac_ext
12876 # OK, works on sane cases. Now check whether nonexistent headers
12877 # can be detected and how.
12878 cat >conftest.$ac_ext <<_ACEOF
12879 /* confdefs.h. */
12880 _ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 #include <ac_nonexistent.h>
12885 _ACEOF
12886 if { (ac_try="$ac_cpp conftest.$ac_ext"
12887 case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12890 esac
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12893 ac_status=$?
12894 grep -v '^ *+' conftest.er1 >conftest.err
12895 rm -f conftest.er1
12896 cat conftest.err >&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } >/dev/null; then
12899 if test -s conftest.err; then
12900 ac_cpp_err=$ac_cxx_preproc_warn_flag
12901 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12902 else
12903 ac_cpp_err=
12905 else
12906 ac_cpp_err=yes
12908 if test -z "$ac_cpp_err"; then
12909 # Broken: success on invalid input.
12910 continue
12911 else
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 # Passes both tests.
12916 ac_preproc_ok=:
12917 break
12920 rm -f conftest.err conftest.$ac_ext
12922 done
12923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12924 rm -f conftest.err conftest.$ac_ext
12925 if $ac_preproc_ok; then
12927 else
12928 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12929 See \`config.log' for more details." >&5
12930 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12931 See \`config.log' for more details." >&2;}
12932 { (exit 1); exit 1; }; }
12935 ac_ext=cpp
12936 ac_cpp='$CXXCPP $CPPFLAGS'
12937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12944 ac_ext=f
12945 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12946 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12947 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12948 if test -n "$ac_tool_prefix"; then
12949 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
12951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12955 if test "${ac_cv_prog_F77+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 else
12958 if test -n "$F77"; then
12959 ac_cv_prog_F77="$F77" # Let the user override the test.
12960 else
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $PATH
12964 IFS=$as_save_IFS
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12968 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12970 break 2
12972 done
12973 done
12974 IFS=$as_save_IFS
12978 F77=$ac_cv_prog_F77
12979 if test -n "$F77"; then
12980 { echo "$as_me:$LINENO: result: $F77" >&5
12981 echo "${ECHO_T}$F77" >&6; }
12982 else
12983 { echo "$as_me:$LINENO: result: no" >&5
12984 echo "${ECHO_T}no" >&6; }
12988 test -n "$F77" && break
12989 done
12991 if test -z "$F77"; then
12992 ac_ct_F77=$F77
12993 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
12995 # Extract the first word of "$ac_prog", so it can be a program name with args.
12996 set dummy $ac_prog; ac_word=$2
12997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12999 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13001 else
13002 if test -n "$ac_ct_F77"; then
13003 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13004 else
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13012 ac_cv_prog_ac_ct_F77="$ac_prog"
13013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 break 2
13016 done
13017 done
13018 IFS=$as_save_IFS
13022 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13023 if test -n "$ac_ct_F77"; then
13024 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13025 echo "${ECHO_T}$ac_ct_F77" >&6; }
13026 else
13027 { echo "$as_me:$LINENO: result: no" >&5
13028 echo "${ECHO_T}no" >&6; }
13032 test -n "$ac_ct_F77" && break
13033 done
13035 if test "x$ac_ct_F77" = x; then
13036 F77=""
13037 else
13038 case $cross_compiling:$ac_tool_warned in
13039 yes:)
13040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13041 whose name does not start with the host triplet. If you think this
13042 configuration is useful to you, please write to autoconf@gnu.org." >&5
13043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13044 whose name does not start with the host triplet. If you think this
13045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13046 ac_tool_warned=yes ;;
13047 esac
13048 F77=$ac_ct_F77
13053 # Provide some information about the compiler.
13054 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13055 ac_compiler=`set X $ac_compile; echo $2`
13056 { (ac_try="$ac_compiler --version >&5"
13057 case "(($ac_try" in
13058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13060 esac
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_compiler --version >&5") 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }
13066 { (ac_try="$ac_compiler -v >&5"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_compiler -v >&5") 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }
13076 { (ac_try="$ac_compiler -V >&5"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_compiler -V >&5") 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }
13086 rm -f a.out
13088 # If we don't use `.F' as extension, the preprocessor is not run on the
13089 # input file. (Note that this only needs to work for GNU compilers.)
13090 ac_save_ext=$ac_ext
13091 ac_ext=F
13092 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13093 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13094 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097 cat >conftest.$ac_ext <<_ACEOF
13098 program main
13099 #ifndef __GNUC__
13100 choke me
13101 #endif
13104 _ACEOF
13105 rm -f conftest.$ac_objext
13106 if { (ac_try="$ac_compile"
13107 case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110 esac
13111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_compile") 2>conftest.er1
13113 ac_status=$?
13114 grep -v '^ *+' conftest.er1 >conftest.err
13115 rm -f conftest.er1
13116 cat conftest.err >&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
13119 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13120 { (case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13123 esac
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_try") 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest.$ac_objext'
13130 { (case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133 esac
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_try") 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_compiler_gnu=yes
13140 else
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13144 ac_compiler_gnu=no
13147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13148 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13151 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13152 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13153 ac_ext=$ac_save_ext
13154 ac_test_FFLAGS=${FFLAGS+set}
13155 ac_save_FFLAGS=$FFLAGS
13156 FFLAGS=
13157 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13158 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13159 if test "${ac_cv_prog_f77_g+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162 FFLAGS=-g
13163 cat >conftest.$ac_ext <<_ACEOF
13164 program main
13167 _ACEOF
13168 rm -f conftest.$ac_objext
13169 if { (ac_try="$ac_compile"
13170 case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13173 esac
13174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_compile") 2>conftest.er1
13176 ac_status=$?
13177 grep -v '^ *+' conftest.er1 >conftest.err
13178 rm -f conftest.er1
13179 cat conftest.err >&5
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); } &&
13182 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13183 { (case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13186 esac
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_try") 2>&5
13189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; } &&
13192 { ac_try='test -s conftest.$ac_objext'
13193 { (case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13196 esac
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198 (eval "$ac_try") 2>&5
13199 ac_status=$?
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202 ac_cv_prog_f77_g=yes
13203 else
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 ac_cv_prog_f77_g=no
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13214 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13215 if test "$ac_test_FFLAGS" = set; then
13216 FFLAGS=$ac_save_FFLAGS
13217 elif test $ac_cv_prog_f77_g = yes; then
13218 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13219 FFLAGS="-g -O2"
13220 else
13221 FFLAGS="-g"
13223 else
13224 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13225 FFLAGS="-O2"
13226 else
13227 FFLAGS=
13231 G77=`test $ac_compiler_gnu = yes && echo yes`
13232 ac_ext=c
13233 ac_cpp='$CPP $CPPFLAGS'
13234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13240 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13242 # find the maximum length of command line arguments
13243 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13244 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13245 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 else
13249 teststring="ABCD"
13251 case $build_os in
13252 msdosdjgpp*)
13253 # On DJGPP, this test can blow up pretty badly due to problems in libc
13254 # (any single argument exceeding 2000 bytes causes a buffer overrun
13255 # during glob expansion). Even if it were fixed, the result of this
13256 # check would be larger than it should be.
13257 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13260 gnu*)
13261 # Under GNU Hurd, this test is not required because there is
13262 # no limit to the length of command line arguments.
13263 # Libtool will interpret -1 as no limit whatsoever
13264 lt_cv_sys_max_cmd_len=-1;
13267 cygwin* | mingw*)
13268 # On Win9x/ME, this test blows up -- it succeeds, but takes
13269 # about 5 minutes as the teststring grows exponentially.
13270 # Worse, since 9x/ME are not pre-emptively multitasking,
13271 # you end up with a "frozen" computer, even though with patience
13272 # the test eventually succeeds (with a max line length of 256k).
13273 # Instead, let's just punt: use the minimum linelength reported by
13274 # all of the supported platforms: 8192 (on NT/2K/XP).
13275 lt_cv_sys_max_cmd_len=8192;
13278 amigaos*)
13279 # On AmigaOS with pdksh, this test takes hours, literally.
13280 # So we just punt and use a minimum line length of 8192.
13281 lt_cv_sys_max_cmd_len=8192;
13284 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13285 # This has been around since 386BSD, at least. Likely further.
13286 if test -x /sbin/sysctl; then
13287 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13288 elif test -x /usr/sbin/sysctl; then
13289 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13290 else
13291 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13293 # And add a safety zone
13294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13298 interix*)
13299 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13300 lt_cv_sys_max_cmd_len=196608
13303 osf*)
13304 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13305 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13306 # nice to cause kernel panics so lets avoid the loop below.
13307 # First set a reasonable default.
13308 lt_cv_sys_max_cmd_len=16384
13310 if test -x /sbin/sysconfig; then
13311 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13312 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13313 esac
13316 sco3.2v5*)
13317 lt_cv_sys_max_cmd_len=102400
13319 sysv5* | sco5v6* | sysv4.2uw2*)
13320 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13321 if test -n "$kargmax"; then
13322 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13323 else
13324 lt_cv_sys_max_cmd_len=32768
13328 # If test is not a shell built-in, we'll probably end up computing a
13329 # maximum length that is only half of the actual maximum length, but
13330 # we can't tell.
13331 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13332 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13333 = "XX$teststring") >/dev/null 2>&1 &&
13334 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13335 lt_cv_sys_max_cmd_len=$new_result &&
13336 test $i != 17 # 1/2 MB should be enough
13338 i=`expr $i + 1`
13339 teststring=$teststring$teststring
13340 done
13341 teststring=
13342 # Add a significant safety factor because C++ compilers can tack on massive
13343 # amounts of additional arguments before passing them to the linker.
13344 # It appears as though 1/2 is a usable value.
13345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13347 esac
13351 if test -n $lt_cv_sys_max_cmd_len ; then
13352 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13353 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13354 else
13355 { echo "$as_me:$LINENO: result: none" >&5
13356 echo "${ECHO_T}none" >&6; }
13362 # Check for command to grab the raw symbol name followed by C symbol from nm.
13363 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13364 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13365 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13369 # These are sane defaults that work on at least a few old systems.
13370 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13372 # Character class describing NM global symbol codes.
13373 symcode='[BCDEGRST]'
13375 # Regexp to match symbols that can be accessed directly from C.
13376 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13378 # Transform an extracted symbol line into a proper C declaration
13379 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13381 # Transform an extracted symbol line into symbol name and symbol address
13382 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'"
13384 # Define system-specific variables.
13385 case $host_os in
13386 aix*)
13387 symcode='[BCDT]'
13389 cygwin* | mingw* | pw32*)
13390 symcode='[ABCDGISTW]'
13392 hpux*) # Its linker distinguishes data from code symbols
13393 if test "$host_cpu" = ia64; then
13394 symcode='[ABCDEGRST]'
13396 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13397 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'"
13399 linux*)
13400 if test "$host_cpu" = ia64; then
13401 symcode='[ABCDGIRSTW]'
13402 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13403 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'"
13406 irix* | nonstopux*)
13407 symcode='[BCDEGRST]'
13409 osf*)
13410 symcode='[BCDEGQRST]'
13412 solaris*)
13413 symcode='[BDRT]'
13415 sco3.2v5*)
13416 symcode='[DT]'
13418 sysv4.2uw2*)
13419 symcode='[DT]'
13421 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13422 symcode='[ABDT]'
13424 sysv4)
13425 symcode='[DFNSTU]'
13427 esac
13429 # Handle CRLF in mingw tool chain
13430 opt_cr=
13431 case $build_os in
13432 mingw*)
13433 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13435 esac
13437 # If we're using GNU nm, then use its standard symbol codes.
13438 case `$NM -V 2>&1` in
13439 *GNU* | *'with BFD'*)
13440 symcode='[ABCDGIRSTW]' ;;
13441 esac
13443 # Try without a prefix undercore, then with it.
13444 for ac_symprfx in "" "_"; do
13446 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13447 symxfrm="\\1 $ac_symprfx\\2 \\2"
13449 # Write the raw and C identifiers.
13450 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13452 # Check to see that the pipe works correctly.
13453 pipe_works=no
13455 rm -f conftest*
13456 cat > conftest.$ac_ext <<EOF
13457 #ifdef __cplusplus
13458 extern "C" {
13459 #endif
13460 char nm_test_var;
13461 void nm_test_func(){}
13462 #ifdef __cplusplus
13464 #endif
13465 int main(){nm_test_var='a';nm_test_func();return(0);}
13468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13469 (eval $ac_compile) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; then
13473 # Now try to grab the symbols.
13474 nlist=conftest.nm
13475 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13476 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); } && test -s "$nlist"; then
13480 # Try sorting and uniquifying the output.
13481 if sort "$nlist" | uniq > "$nlist"T; then
13482 mv -f "$nlist"T "$nlist"
13483 else
13484 rm -f "$nlist"T
13487 # Make sure that we snagged all the symbols we need.
13488 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13489 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13490 cat <<EOF > conftest.$ac_ext
13491 #ifdef __cplusplus
13492 extern "C" {
13493 #endif
13496 # Now generate the symbol file.
13497 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13499 cat <<EOF >> conftest.$ac_ext
13500 #if defined (__STDC__) && __STDC__
13501 # define lt_ptr_t void *
13502 #else
13503 # define lt_ptr_t char *
13504 # define const
13505 #endif
13507 /* The mapping between symbol names and symbols. */
13508 const struct {
13509 const char *name;
13510 lt_ptr_t address;
13512 lt_preloaded_symbols[] =
13515 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13516 cat <<\EOF >> conftest.$ac_ext
13517 {0, (lt_ptr_t) 0}
13520 #ifdef __cplusplus
13522 #endif
13524 # Now try linking the two files.
13525 mv conftest.$ac_objext conftstm.$ac_objext
13526 lt_save_LIBS="$LIBS"
13527 lt_save_CFLAGS="$CFLAGS"
13528 LIBS="conftstm.$ac_objext"
13529 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13531 (eval $ac_link) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13535 pipe_works=yes
13537 LIBS="$lt_save_LIBS"
13538 CFLAGS="$lt_save_CFLAGS"
13539 else
13540 echo "cannot find nm_test_func in $nlist" >&5
13542 else
13543 echo "cannot find nm_test_var in $nlist" >&5
13545 else
13546 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13548 else
13549 echo "$progname: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13552 rm -f conftest* conftst*
13554 # Do not use the global_symbol_pipe unless it works.
13555 if test "$pipe_works" = yes; then
13556 break
13557 else
13558 lt_cv_sys_global_symbol_pipe=
13560 done
13564 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13565 lt_cv_sys_global_symbol_to_cdecl=
13567 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13568 { echo "$as_me:$LINENO: result: failed" >&5
13569 echo "${ECHO_T}failed" >&6; }
13570 else
13571 { echo "$as_me:$LINENO: result: ok" >&5
13572 echo "${ECHO_T}ok" >&6; }
13575 { echo "$as_me:$LINENO: checking for objdir" >&5
13576 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13577 if test "${lt_cv_objdir+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 else
13580 rm -f .libs 2>/dev/null
13581 mkdir .libs 2>/dev/null
13582 if test -d .libs; then
13583 lt_cv_objdir=.libs
13584 else
13585 # MS-DOS does not allow filenames that begin with a dot.
13586 lt_cv_objdir=_libs
13588 rmdir .libs 2>/dev/null
13590 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13591 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13592 objdir=$lt_cv_objdir
13598 case $host_os in
13599 aix3*)
13600 # AIX sometimes has problems with the GCC collect2 program. For some
13601 # reason, if we set the COLLECT_NAMES environment variable, the problems
13602 # vanish in a puff of smoke.
13603 if test "X${COLLECT_NAMES+set}" != Xset; then
13604 COLLECT_NAMES=
13605 export COLLECT_NAMES
13608 esac
13610 # Sed substitution that helps us do robust quoting. It backslashifies
13611 # metacharacters that are still active within double-quoted strings.
13612 Xsed='sed -e 1s/^X//'
13613 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13615 # Same as above, but do not quote variable references.
13616 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13618 # Sed substitution to delay expansion of an escaped shell variable in a
13619 # double_quote_subst'ed string.
13620 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13622 # Sed substitution to avoid accidental globbing in evaled expressions
13623 no_glob_subst='s/\*/\\\*/g'
13625 # Constants:
13626 rm="rm -f"
13628 # Global variables:
13629 default_ofile=mklib
13630 can_build_shared=yes
13632 # All known linkers require a `.a' archive for static linking (except MSVC,
13633 # which needs '.lib').
13634 libext=a
13635 ltmain="$ac_aux_dir/ltmain.sh"
13636 ofile="$default_ofile"
13637 with_gnu_ld="$lt_cv_prog_gnu_ld"
13639 if test -n "$ac_tool_prefix"; then
13640 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13641 set dummy ${ac_tool_prefix}ar; ac_word=$2
13642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13644 if test "${ac_cv_prog_AR+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 else
13647 if test -n "$AR"; then
13648 ac_cv_prog_AR="$AR" # Let the user override the test.
13649 else
13650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651 for as_dir in $PATH
13653 IFS=$as_save_IFS
13654 test -z "$as_dir" && as_dir=.
13655 for ac_exec_ext in '' $ac_executable_extensions; do
13656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13657 ac_cv_prog_AR="${ac_tool_prefix}ar"
13658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13659 break 2
13661 done
13662 done
13663 IFS=$as_save_IFS
13667 AR=$ac_cv_prog_AR
13668 if test -n "$AR"; then
13669 { echo "$as_me:$LINENO: result: $AR" >&5
13670 echo "${ECHO_T}$AR" >&6; }
13671 else
13672 { echo "$as_me:$LINENO: result: no" >&5
13673 echo "${ECHO_T}no" >&6; }
13678 if test -z "$ac_cv_prog_AR"; then
13679 ac_ct_AR=$AR
13680 # Extract the first word of "ar", so it can be a program name with args.
13681 set dummy ar; ac_word=$2
13682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13684 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13685 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 else
13687 if test -n "$ac_ct_AR"; then
13688 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13689 else
13690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13691 for as_dir in $PATH
13693 IFS=$as_save_IFS
13694 test -z "$as_dir" && as_dir=.
13695 for ac_exec_ext in '' $ac_executable_extensions; do
13696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13697 ac_cv_prog_ac_ct_AR="ar"
13698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13699 break 2
13701 done
13702 done
13703 IFS=$as_save_IFS
13707 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13708 if test -n "$ac_ct_AR"; then
13709 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13710 echo "${ECHO_T}$ac_ct_AR" >&6; }
13711 else
13712 { echo "$as_me:$LINENO: result: no" >&5
13713 echo "${ECHO_T}no" >&6; }
13716 if test "x$ac_ct_AR" = x; then
13717 AR="false"
13718 else
13719 case $cross_compiling:$ac_tool_warned in
13720 yes:)
13721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13722 whose name does not start with the host triplet. If you think this
13723 configuration is useful to you, please write to autoconf@gnu.org." >&5
13724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13725 whose name does not start with the host triplet. If you think this
13726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13727 ac_tool_warned=yes ;;
13728 esac
13729 AR=$ac_ct_AR
13731 else
13732 AR="$ac_cv_prog_AR"
13735 if test -n "$ac_tool_prefix"; then
13736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13737 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13740 if test "${ac_cv_prog_RANLIB+set}" = set; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 else
13743 if test -n "$RANLIB"; then
13744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13745 else
13746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747 for as_dir in $PATH
13749 IFS=$as_save_IFS
13750 test -z "$as_dir" && as_dir=.
13751 for ac_exec_ext in '' $ac_executable_extensions; do
13752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13755 break 2
13757 done
13758 done
13759 IFS=$as_save_IFS
13763 RANLIB=$ac_cv_prog_RANLIB
13764 if test -n "$RANLIB"; then
13765 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13766 echo "${ECHO_T}$RANLIB" >&6; }
13767 else
13768 { echo "$as_me:$LINENO: result: no" >&5
13769 echo "${ECHO_T}no" >&6; }
13774 if test -z "$ac_cv_prog_RANLIB"; then
13775 ac_ct_RANLIB=$RANLIB
13776 # Extract the first word of "ranlib", so it can be a program name with args.
13777 set dummy ranlib; ac_word=$2
13778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783 if test -n "$ac_ct_RANLIB"; then
13784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13785 else
13786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in $PATH
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13793 ac_cv_prog_ac_ct_RANLIB="ranlib"
13794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13795 break 2
13797 done
13798 done
13799 IFS=$as_save_IFS
13803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13804 if test -n "$ac_ct_RANLIB"; then
13805 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13806 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13807 else
13808 { echo "$as_me:$LINENO: result: no" >&5
13809 echo "${ECHO_T}no" >&6; }
13812 if test "x$ac_ct_RANLIB" = x; then
13813 RANLIB=":"
13814 else
13815 case $cross_compiling:$ac_tool_warned in
13816 yes:)
13817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13818 whose name does not start with the host triplet. If you think this
13819 configuration is useful to you, please write to autoconf@gnu.org." >&5
13820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13821 whose name does not start with the host triplet. If you think this
13822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13823 ac_tool_warned=yes ;;
13824 esac
13825 RANLIB=$ac_ct_RANLIB
13827 else
13828 RANLIB="$ac_cv_prog_RANLIB"
13831 if test -n "$ac_tool_prefix"; then
13832 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13833 set dummy ${ac_tool_prefix}strip; ac_word=$2
13834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13836 if test "${ac_cv_prog_STRIP+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839 if test -n "$STRIP"; then
13840 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13841 else
13842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13843 for as_dir in $PATH
13845 IFS=$as_save_IFS
13846 test -z "$as_dir" && as_dir=.
13847 for ac_exec_ext in '' $ac_executable_extensions; do
13848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13849 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13851 break 2
13853 done
13854 done
13855 IFS=$as_save_IFS
13859 STRIP=$ac_cv_prog_STRIP
13860 if test -n "$STRIP"; then
13861 { echo "$as_me:$LINENO: result: $STRIP" >&5
13862 echo "${ECHO_T}$STRIP" >&6; }
13863 else
13864 { echo "$as_me:$LINENO: result: no" >&5
13865 echo "${ECHO_T}no" >&6; }
13870 if test -z "$ac_cv_prog_STRIP"; then
13871 ac_ct_STRIP=$STRIP
13872 # Extract the first word of "strip", so it can be a program name with args.
13873 set dummy strip; ac_word=$2
13874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13876 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 else
13879 if test -n "$ac_ct_STRIP"; then
13880 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13881 else
13882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883 for as_dir in $PATH
13885 IFS=$as_save_IFS
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
13888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13889 ac_cv_prog_ac_ct_STRIP="strip"
13890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13891 break 2
13893 done
13894 done
13895 IFS=$as_save_IFS
13899 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13900 if test -n "$ac_ct_STRIP"; then
13901 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13902 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13903 else
13904 { echo "$as_me:$LINENO: result: no" >&5
13905 echo "${ECHO_T}no" >&6; }
13908 if test "x$ac_ct_STRIP" = x; then
13909 STRIP=":"
13910 else
13911 case $cross_compiling:$ac_tool_warned in
13912 yes:)
13913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13914 whose name does not start with the host triplet. If you think this
13915 configuration is useful to you, please write to autoconf@gnu.org." >&5
13916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13917 whose name does not start with the host triplet. If you think this
13918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13919 ac_tool_warned=yes ;;
13920 esac
13921 STRIP=$ac_ct_STRIP
13923 else
13924 STRIP="$ac_cv_prog_STRIP"
13928 old_CC="$CC"
13929 old_CFLAGS="$CFLAGS"
13931 # Set sane defaults for various variables
13932 test -z "$AR" && AR=ar
13933 test -z "$AR_FLAGS" && AR_FLAGS=cru
13934 test -z "$AS" && AS=as
13935 test -z "$CC" && CC=cc
13936 test -z "$LTCC" && LTCC=$CC
13937 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13938 test -z "$DLLTOOL" && DLLTOOL=dlltool
13939 test -z "$LD" && LD=ld
13940 test -z "$LN_S" && LN_S="ln -s"
13941 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13942 test -z "$NM" && NM=nm
13943 test -z "$SED" && SED=sed
13944 test -z "$OBJDUMP" && OBJDUMP=objdump
13945 test -z "$RANLIB" && RANLIB=:
13946 test -z "$STRIP" && STRIP=:
13947 test -z "$ac_objext" && ac_objext=o
13949 # Determine commands to create old-style static archives.
13950 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13951 old_postinstall_cmds='chmod 644 $oldlib'
13952 old_postuninstall_cmds=
13954 if test -n "$RANLIB"; then
13955 case $host_os in
13956 openbsd*)
13957 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13962 esac
13963 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13966 for cc_temp in $compiler""; do
13967 case $cc_temp in
13968 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13969 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13970 \-*) ;;
13971 *) break;;
13972 esac
13973 done
13974 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13977 # Only perform the check for file, if the check method requires it
13978 case $deplibs_check_method in
13979 file_magic*)
13980 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13981 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13982 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13983 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 else
13986 case $MAGIC_CMD in
13987 [\\/*] | ?:[\\/]*)
13988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13991 lt_save_MAGIC_CMD="$MAGIC_CMD"
13992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13994 for ac_dir in $ac_dummy; do
13995 IFS="$lt_save_ifs"
13996 test -z "$ac_dir" && ac_dir=.
13997 if test -f $ac_dir/${ac_tool_prefix}file; then
13998 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13999 if test -n "$file_magic_test_file"; then
14000 case $deplibs_check_method in
14001 "file_magic "*)
14002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14005 $EGREP "$file_magic_regex" > /dev/null; then
14007 else
14008 cat <<EOF 1>&2
14010 *** Warning: the command libtool uses to detect shared libraries,
14011 *** $file_magic_cmd, produces output that libtool cannot recognize.
14012 *** The result is that libtool may fail to recognize shared libraries
14013 *** as such. This will affect the creation of libtool libraries that
14014 *** depend on shared libraries, but programs linked with such libtool
14015 *** libraries will work regardless of this problem. Nevertheless, you
14016 *** may want to report the problem to your system manager and/or to
14017 *** bug-libtool@gnu.org
14020 fi ;;
14021 esac
14023 break
14025 done
14026 IFS="$lt_save_ifs"
14027 MAGIC_CMD="$lt_save_MAGIC_CMD"
14029 esac
14032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14033 if test -n "$MAGIC_CMD"; then
14034 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14035 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14036 else
14037 { echo "$as_me:$LINENO: result: no" >&5
14038 echo "${ECHO_T}no" >&6; }
14041 if test -z "$lt_cv_path_MAGIC_CMD"; then
14042 if test -n "$ac_tool_prefix"; then
14043 { echo "$as_me:$LINENO: checking for file" >&5
14044 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14045 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048 case $MAGIC_CMD in
14049 [\\/*] | ?:[\\/]*)
14050 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14053 lt_save_MAGIC_CMD="$MAGIC_CMD"
14054 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14055 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14056 for ac_dir in $ac_dummy; do
14057 IFS="$lt_save_ifs"
14058 test -z "$ac_dir" && ac_dir=.
14059 if test -f $ac_dir/file; then
14060 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14061 if test -n "$file_magic_test_file"; then
14062 case $deplibs_check_method in
14063 "file_magic "*)
14064 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14066 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14067 $EGREP "$file_magic_regex" > /dev/null; then
14069 else
14070 cat <<EOF 1>&2
14072 *** Warning: the command libtool uses to detect shared libraries,
14073 *** $file_magic_cmd, produces output that libtool cannot recognize.
14074 *** The result is that libtool may fail to recognize shared libraries
14075 *** as such. This will affect the creation of libtool libraries that
14076 *** depend on shared libraries, but programs linked with such libtool
14077 *** libraries will work regardless of this problem. Nevertheless, you
14078 *** may want to report the problem to your system manager and/or to
14079 *** bug-libtool@gnu.org
14082 fi ;;
14083 esac
14085 break
14087 done
14088 IFS="$lt_save_ifs"
14089 MAGIC_CMD="$lt_save_MAGIC_CMD"
14091 esac
14094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14095 if test -n "$MAGIC_CMD"; then
14096 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14097 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14098 else
14099 { echo "$as_me:$LINENO: result: no" >&5
14100 echo "${ECHO_T}no" >&6; }
14103 else
14104 MAGIC_CMD=:
14110 esac
14112 enable_dlopen=yes
14113 enable_win32_dll=no
14115 # Check whether --enable-libtool-lock was given.
14116 if test "${enable_libtool_lock+set}" = set; then
14117 enableval=$enable_libtool_lock;
14120 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14123 # Check whether --with-pic was given.
14124 if test "${with_pic+set}" = set; then
14125 withval=$with_pic; pic_mode="$withval"
14126 else
14127 pic_mode=default
14130 test -z "$pic_mode" && pic_mode=default
14132 # Use C for the default configuration in the libtool script
14133 tagname=
14134 lt_save_CC="$CC"
14135 ac_ext=c
14136 ac_cpp='$CPP $CPPFLAGS'
14137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14142 # Source file extension for C test sources.
14143 ac_ext=c
14145 # Object file extension for compiled C test sources.
14146 objext=o
14147 objext=$objext
14149 # Code to be used in simple compile tests
14150 lt_simple_compile_test_code="int some_variable = 0;\n"
14152 # Code to be used in simple link tests
14153 lt_simple_link_test_code='int main(){return(0);}\n'
14156 # If no C compiler was specified, use CC.
14157 LTCC=${LTCC-"$CC"}
14159 # If no C compiler flags were specified, use CFLAGS.
14160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14162 # Allow CC to be a program name with arguments.
14163 compiler=$CC
14166 # save warnings/boilerplate of simple test code
14167 ac_outfile=conftest.$ac_objext
14168 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14169 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14170 _lt_compiler_boilerplate=`cat conftest.err`
14171 $rm conftest*
14173 ac_outfile=conftest.$ac_objext
14174 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14175 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14176 _lt_linker_boilerplate=`cat conftest.err`
14177 $rm conftest*
14181 lt_prog_compiler_no_builtin_flag=
14183 if test "$GCC" = yes; then
14184 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14187 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14188 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14189 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192 lt_cv_prog_compiler_rtti_exceptions=no
14193 ac_outfile=conftest.$ac_objext
14194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14195 lt_compiler_flag="-fno-rtti -fno-exceptions"
14196 # Insert the option either (1) after the last *FLAGS variable, or
14197 # (2) before a word containing "conftest.", or (3) at the end.
14198 # Note that $ac_compile itself does not contain backslashes and begins
14199 # with a dollar sign (not a hyphen), so the echo should work correctly.
14200 # The option is referenced via a variable to avoid confusing sed.
14201 lt_compile=`echo "$ac_compile" | $SED \
14202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14204 -e 's:$: $lt_compiler_flag:'`
14205 (eval echo "\"\$as_me:14205: $lt_compile\"" >&5)
14206 (eval "$lt_compile" 2>conftest.err)
14207 ac_status=$?
14208 cat conftest.err >&5
14209 echo "$as_me:14209: \$? = $ac_status" >&5
14210 if (exit $ac_status) && test -s "$ac_outfile"; then
14211 # The compiler can only warn and ignore the option if not recognized
14212 # So say no if there are warnings other than the usual output.
14213 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14216 lt_cv_prog_compiler_rtti_exceptions=yes
14219 $rm conftest*
14222 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14223 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14225 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14226 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14227 else
14233 lt_prog_compiler_wl=
14234 lt_prog_compiler_pic=
14235 lt_prog_compiler_static=
14237 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14238 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14240 if test "$GCC" = yes; then
14241 lt_prog_compiler_wl='-Wl,'
14242 lt_prog_compiler_static='-static'
14244 case $host_os in
14245 aix*)
14246 # All AIX code is PIC.
14247 if test "$host_cpu" = ia64; then
14248 # AIX 5 now supports IA64 processor
14249 lt_prog_compiler_static='-Bstatic'
14253 amigaos*)
14254 # FIXME: we need at least 68020 code to build shared libraries, but
14255 # adding the `-m68020' flag to GCC prevents building anything better,
14256 # like `-m68040'.
14257 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14260 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14261 # PIC is the default for these OSes.
14264 mingw* | pw32* | os2*)
14265 # This hack is so that the source file can tell whether it is being
14266 # built for inclusion in a dll (and should export symbols for example).
14267 lt_prog_compiler_pic='-DDLL_EXPORT'
14270 darwin* | rhapsody*)
14271 # PIC is the default on this platform
14272 # Common symbols not allowed in MH_DYLIB files
14273 lt_prog_compiler_pic='-fno-common'
14276 interix3*)
14277 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14278 # Instead, we relocate shared libraries at runtime.
14281 msdosdjgpp*)
14282 # Just because we use GCC doesn't mean we suddenly get shared libraries
14283 # on systems that don't support them.
14284 lt_prog_compiler_can_build_shared=no
14285 enable_shared=no
14288 sysv4*MP*)
14289 if test -d /usr/nec; then
14290 lt_prog_compiler_pic=-Kconform_pic
14294 hpux*)
14295 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14296 # not for PA HP-UX.
14297 case $host_cpu in
14298 hppa*64*|ia64*)
14299 # +Z the default
14302 lt_prog_compiler_pic='-fPIC'
14304 esac
14308 lt_prog_compiler_pic='-fPIC'
14310 esac
14311 else
14312 # PORTME Check for flag to pass linker flags through the system compiler.
14313 case $host_os in
14314 aix*)
14315 lt_prog_compiler_wl='-Wl,'
14316 if test "$host_cpu" = ia64; then
14317 # AIX 5 now supports IA64 processor
14318 lt_prog_compiler_static='-Bstatic'
14319 else
14320 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14323 darwin*)
14324 # PIC is the default on this platform
14325 # Common symbols not allowed in MH_DYLIB files
14326 case $cc_basename in
14327 xlc*)
14328 lt_prog_compiler_pic='-qnocommon'
14329 lt_prog_compiler_wl='-Wl,'
14331 esac
14334 mingw* | pw32* | os2*)
14335 # This hack is so that the source file can tell whether it is being
14336 # built for inclusion in a dll (and should export symbols for example).
14337 lt_prog_compiler_pic='-DDLL_EXPORT'
14340 hpux9* | hpux10* | hpux11*)
14341 lt_prog_compiler_wl='-Wl,'
14342 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14343 # not for PA HP-UX.
14344 case $host_cpu in
14345 hppa*64*|ia64*)
14346 # +Z the default
14349 lt_prog_compiler_pic='+Z'
14351 esac
14352 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14353 lt_prog_compiler_static='${wl}-a ${wl}archive'
14356 irix5* | irix6* | nonstopux*)
14357 lt_prog_compiler_wl='-Wl,'
14358 # PIC (with -KPIC) is the default.
14359 lt_prog_compiler_static='-non_shared'
14362 newsos6)
14363 lt_prog_compiler_pic='-KPIC'
14364 lt_prog_compiler_static='-Bstatic'
14367 linux*)
14368 case $cc_basename in
14369 icc* | ecc*)
14370 lt_prog_compiler_wl='-Wl,'
14371 lt_prog_compiler_pic='-KPIC'
14372 lt_prog_compiler_static='-static'
14374 pgcc* | pgf77* | pgf90* | pgf95*)
14375 # Portland Group compilers (*not* the Pentium gcc compiler,
14376 # which looks to be a dead project)
14377 lt_prog_compiler_wl='-Wl,'
14378 lt_prog_compiler_pic='-fpic'
14379 lt_prog_compiler_static='-Bstatic'
14381 ccc*)
14382 lt_prog_compiler_wl='-Wl,'
14383 # All Alpha code is PIC.
14384 lt_prog_compiler_static='-non_shared'
14386 esac
14389 osf3* | osf4* | osf5*)
14390 lt_prog_compiler_wl='-Wl,'
14391 # All OSF/1 code is PIC.
14392 lt_prog_compiler_static='-non_shared'
14395 solaris*)
14396 lt_prog_compiler_pic='-KPIC'
14397 lt_prog_compiler_static='-Bstatic'
14398 case $cc_basename in
14399 f77* | f90* | f95*)
14400 lt_prog_compiler_wl='-Qoption ld ';;
14402 lt_prog_compiler_wl='-Wl,';;
14403 esac
14406 sunos4*)
14407 lt_prog_compiler_wl='-Qoption ld '
14408 lt_prog_compiler_pic='-PIC'
14409 lt_prog_compiler_static='-Bstatic'
14412 sysv4 | sysv4.2uw2* | sysv4.3*)
14413 lt_prog_compiler_wl='-Wl,'
14414 lt_prog_compiler_pic='-KPIC'
14415 lt_prog_compiler_static='-Bstatic'
14418 sysv4*MP*)
14419 if test -d /usr/nec ;then
14420 lt_prog_compiler_pic='-Kconform_pic'
14421 lt_prog_compiler_static='-Bstatic'
14425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14426 lt_prog_compiler_wl='-Wl,'
14427 lt_prog_compiler_pic='-KPIC'
14428 lt_prog_compiler_static='-Bstatic'
14431 unicos*)
14432 lt_prog_compiler_wl='-Wl,'
14433 lt_prog_compiler_can_build_shared=no
14436 uts4*)
14437 lt_prog_compiler_pic='-pic'
14438 lt_prog_compiler_static='-Bstatic'
14442 lt_prog_compiler_can_build_shared=no
14444 esac
14447 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14448 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14451 # Check to make sure the PIC flag actually works.
14453 if test -n "$lt_prog_compiler_pic"; then
14455 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14456 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14457 if test "${lt_prog_compiler_pic_works+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 else
14460 lt_prog_compiler_pic_works=no
14461 ac_outfile=conftest.$ac_objext
14462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14463 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14464 # Insert the option either (1) after the last *FLAGS variable, or
14465 # (2) before a word containing "conftest.", or (3) at the end.
14466 # Note that $ac_compile itself does not contain backslashes and begins
14467 # with a dollar sign (not a hyphen), so the echo should work correctly.
14468 # The option is referenced via a variable to avoid confusing sed.
14469 lt_compile=`echo "$ac_compile" | $SED \
14470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14472 -e 's:$: $lt_compiler_flag:'`
14473 (eval echo "\"\$as_me:14473: $lt_compile\"" >&5)
14474 (eval "$lt_compile" 2>conftest.err)
14475 ac_status=$?
14476 cat conftest.err >&5
14477 echo "$as_me:14477: \$? = $ac_status" >&5
14478 if (exit $ac_status) && test -s "$ac_outfile"; then
14479 # The compiler can only warn and ignore the option if not recognized
14480 # So say no if there are warnings other than the usual output.
14481 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14483 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14484 lt_prog_compiler_pic_works=yes
14487 $rm conftest*
14490 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14491 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14493 if test x"$lt_prog_compiler_pic_works" = xyes; then
14494 case $lt_prog_compiler_pic in
14495 "" | " "*) ;;
14496 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14497 esac
14498 else
14499 lt_prog_compiler_pic=
14500 lt_prog_compiler_can_build_shared=no
14504 case $host_os in
14505 # For platforms which do not support PIC, -DPIC is meaningless:
14506 *djgpp*)
14507 lt_prog_compiler_pic=
14510 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14512 esac
14515 # Check to make sure the static flag actually works.
14517 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14518 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14519 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14520 if test "${lt_prog_compiler_static_works+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523 lt_prog_compiler_static_works=no
14524 save_LDFLAGS="$LDFLAGS"
14525 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14526 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14527 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14528 # The linker can only warn and ignore the option if not recognized
14529 # So say no if there are warnings
14530 if test -s conftest.err; then
14531 # Append any errors to the config.log.
14532 cat conftest.err 1>&5
14533 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14535 if diff conftest.exp conftest.er2 >/dev/null; then
14536 lt_prog_compiler_static_works=yes
14538 else
14539 lt_prog_compiler_static_works=yes
14542 $rm conftest*
14543 LDFLAGS="$save_LDFLAGS"
14546 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14547 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14549 if test x"$lt_prog_compiler_static_works" = xyes; then
14551 else
14552 lt_prog_compiler_static=
14556 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14557 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14558 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561 lt_cv_prog_compiler_c_o=no
14562 $rm -r conftest 2>/dev/null
14563 mkdir conftest
14564 cd conftest
14565 mkdir out
14566 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14568 lt_compiler_flag="-o out/conftest2.$ac_objext"
14569 # Insert the option either (1) after the last *FLAGS variable, or
14570 # (2) before a word containing "conftest.", or (3) at the end.
14571 # Note that $ac_compile itself does not contain backslashes and begins
14572 # with a dollar sign (not a hyphen), so the echo should work correctly.
14573 lt_compile=`echo "$ac_compile" | $SED \
14574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14576 -e 's:$: $lt_compiler_flag:'`
14577 (eval echo "\"\$as_me:14577: $lt_compile\"" >&5)
14578 (eval "$lt_compile" 2>out/conftest.err)
14579 ac_status=$?
14580 cat out/conftest.err >&5
14581 echo "$as_me:14581: \$? = $ac_status" >&5
14582 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14583 then
14584 # The compiler can only warn and ignore the option if not recognized
14585 # So say no if there are warnings
14586 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14589 lt_cv_prog_compiler_c_o=yes
14592 chmod u+w . 2>&5
14593 $rm conftest*
14594 # SGI C++ compiler will create directory out/ii_files/ for
14595 # template instantiation
14596 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14597 $rm out/* && rmdir out
14598 cd ..
14599 rmdir conftest
14600 $rm conftest*
14603 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14604 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14607 hard_links="nottested"
14608 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14609 # do not overwrite the value of need_locks provided by the user
14610 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14611 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14612 hard_links=yes
14613 $rm conftest*
14614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14615 touch conftest.a
14616 ln conftest.a conftest.b 2>&5 || hard_links=no
14617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14618 { echo "$as_me:$LINENO: result: $hard_links" >&5
14619 echo "${ECHO_T}$hard_links" >&6; }
14620 if test "$hard_links" = no; then
14621 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14622 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14623 need_locks=warn
14625 else
14626 need_locks=no
14629 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14630 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14632 runpath_var=
14633 allow_undefined_flag=
14634 enable_shared_with_static_runtimes=no
14635 archive_cmds=
14636 archive_expsym_cmds=
14637 old_archive_From_new_cmds=
14638 old_archive_from_expsyms_cmds=
14639 export_dynamic_flag_spec=
14640 whole_archive_flag_spec=
14641 thread_safe_flag_spec=
14642 hardcode_libdir_flag_spec=
14643 hardcode_libdir_flag_spec_ld=
14644 hardcode_libdir_separator=
14645 hardcode_direct=no
14646 hardcode_minus_L=no
14647 hardcode_shlibpath_var=unsupported
14648 link_all_deplibs=unknown
14649 hardcode_automatic=no
14650 module_cmds=
14651 module_expsym_cmds=
14652 always_export_symbols=no
14653 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14654 # include_expsyms should be a list of space-separated symbols to be *always*
14655 # included in the symbol list
14656 include_expsyms=
14657 # exclude_expsyms can be an extended regexp of symbols to exclude
14658 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14659 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14660 # as well as any symbol that contains `d'.
14661 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14662 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14663 # platforms (ab)use it in PIC code, but their linkers get confused if
14664 # the symbol is explicitly referenced. Since portable code cannot
14665 # rely on this symbol name, it's probably fine to never include it in
14666 # preloaded symbol tables.
14667 extract_expsyms_cmds=
14668 # Just being paranoid about ensuring that cc_basename is set.
14669 for cc_temp in $compiler""; do
14670 case $cc_temp in
14671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14673 \-*) ;;
14674 *) break;;
14675 esac
14676 done
14677 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14679 case $host_os in
14680 cygwin* | mingw* | pw32*)
14681 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14682 # When not using gcc, we currently assume that we are using
14683 # Microsoft Visual C++.
14684 if test "$GCC" != yes; then
14685 with_gnu_ld=no
14688 interix*)
14689 # we just hope/assume this is gcc and not c89 (= MSVC++)
14690 with_gnu_ld=yes
14692 openbsd*)
14693 with_gnu_ld=no
14695 esac
14697 ld_shlibs=yes
14698 if test "$with_gnu_ld" = yes; then
14699 # If archive_cmds runs LD, not CC, wlarc should be empty
14700 wlarc='${wl}'
14702 # Set some defaults for GNU ld with shared library support. These
14703 # are reset later if shared libraries are not supported. Putting them
14704 # here allows them to be overridden if necessary.
14705 runpath_var=LD_RUN_PATH
14706 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14707 export_dynamic_flag_spec='${wl}--export-dynamic'
14708 # ancient GNU ld didn't support --whole-archive et. al.
14709 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14710 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14711 else
14712 whole_archive_flag_spec=
14714 supports_anon_versioning=no
14715 case `$LD -v 2>/dev/null` in
14716 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14717 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14718 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14719 *\ 2.11.*) ;; # other 2.11 versions
14720 *) supports_anon_versioning=yes ;;
14721 esac
14723 # See if GNU ld supports shared libraries.
14724 case $host_os in
14725 aix3* | aix4* | aix5*)
14726 # On AIX/PPC, the GNU linker is very broken
14727 if test "$host_cpu" != ia64; then
14728 ld_shlibs=no
14729 cat <<EOF 1>&2
14731 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14732 *** to be unable to reliably create shared libraries on AIX.
14733 *** Therefore, libtool is disabling shared libraries support. If you
14734 *** really care for shared libraries, you may want to modify your PATH
14735 *** so that a non-GNU linker is found, and then restart.
14741 amigaos*)
14742 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)'
14743 hardcode_libdir_flag_spec='-L$libdir'
14744 hardcode_minus_L=yes
14746 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14747 # that the semantics of dynamic libraries on AmigaOS, at least up
14748 # to version 4, is to share data among multiple programs linked
14749 # with the same dynamic library. Since this doesn't match the
14750 # behavior of shared libraries on other platforms, we can't use
14751 # them.
14752 ld_shlibs=no
14755 beos*)
14756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14757 allow_undefined_flag=unsupported
14758 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14759 # support --undefined. This deserves some investigation. FIXME
14760 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14761 else
14762 ld_shlibs=no
14766 cygwin* | mingw* | pw32*)
14767 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14768 # as there is no search path for DLLs.
14769 hardcode_libdir_flag_spec='-L$libdir'
14770 allow_undefined_flag=unsupported
14771 always_export_symbols=no
14772 enable_shared_with_static_runtimes=yes
14773 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14775 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14777 # If the export-symbols file already is a .def file (1st line
14778 # is EXPORTS), use it as is; otherwise, prepend...
14779 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14780 cp $export_symbols $output_objdir/$soname.def;
14781 else
14782 echo EXPORTS > $output_objdir/$soname.def;
14783 cat $export_symbols >> $output_objdir/$soname.def;
14785 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14786 else
14787 ld_shlibs=no
14791 interix3*)
14792 hardcode_direct=no
14793 hardcode_shlibpath_var=no
14794 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14795 export_dynamic_flag_spec='${wl}-E'
14796 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14797 # Instead, shared libraries are loaded at an image base (0x10000000 by
14798 # default) and relocated if they conflict, which is a slow very memory
14799 # consuming and fragmenting process. To avoid this, we pick a random,
14800 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14801 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14802 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14803 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'
14806 linux*)
14807 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14808 tmp_addflag=
14809 case $cc_basename,$host_cpu in
14810 pgcc*) # Portland Group C compiler
14811 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'
14812 tmp_addflag=' $pic_flag'
14814 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14815 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'
14816 tmp_addflag=' $pic_flag -Mnomain' ;;
14817 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14818 tmp_addflag=' -i_dynamic' ;;
14819 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14820 tmp_addflag=' -i_dynamic -nofor_main' ;;
14821 ifc* | ifort*) # Intel Fortran compiler
14822 tmp_addflag=' -nofor_main' ;;
14823 esac
14824 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14826 if test $supports_anon_versioning = yes; then
14827 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14829 $echo "local: *; };" >> $output_objdir/$libname.ver~
14830 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14832 else
14833 ld_shlibs=no
14837 netbsd*)
14838 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14839 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14840 wlarc=
14841 else
14842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14847 solaris*)
14848 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14849 ld_shlibs=no
14850 cat <<EOF 1>&2
14852 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14853 *** create shared libraries on Solaris systems. Therefore, libtool
14854 *** is disabling shared libraries support. We urge you to upgrade GNU
14855 *** binutils to release 2.9.1 or newer. Another option is to modify
14856 *** your PATH or compiler configuration so that the native linker is
14857 *** used, and then restart.
14860 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14861 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14862 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14863 else
14864 ld_shlibs=no
14868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14869 case `$LD -v 2>&1` in
14870 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14871 ld_shlibs=no
14872 cat <<_LT_EOF 1>&2
14874 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14875 *** reliably create shared libraries on SCO systems. Therefore, libtool
14876 *** is disabling shared libraries support. We urge you to upgrade GNU
14877 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14878 *** your PATH or compiler configuration so that the native linker is
14879 *** used, and then restart.
14881 _LT_EOF
14884 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14885 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14887 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14888 else
14889 ld_shlibs=no
14892 esac
14895 sunos4*)
14896 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14897 wlarc=
14898 hardcode_direct=yes
14899 hardcode_shlibpath_var=no
14903 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14906 else
14907 ld_shlibs=no
14910 esac
14912 if test "$ld_shlibs" = no; then
14913 runpath_var=
14914 hardcode_libdir_flag_spec=
14915 export_dynamic_flag_spec=
14916 whole_archive_flag_spec=
14918 else
14919 # PORTME fill in a description of your system's linker (not GNU ld)
14920 case $host_os in
14921 aix3*)
14922 allow_undefined_flag=unsupported
14923 always_export_symbols=yes
14924 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'
14925 # Note: this linker hardcodes the directories in LIBPATH if there
14926 # are no directories specified by -L.
14927 hardcode_minus_L=yes
14928 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14929 # Neither direct hardcoding nor static linking is supported with a
14930 # broken collect2.
14931 hardcode_direct=unsupported
14935 aix4* | aix5*)
14936 if test "$host_cpu" = ia64; then
14937 # On IA64, the linker does run time linking by default, so we don't
14938 # have to do anything special.
14939 aix_use_runtimelinking=no
14940 exp_sym_flag='-Bexport'
14941 no_entry_flag=""
14942 else
14943 # If we're using GNU nm, then we don't want the "-C" option.
14944 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14945 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14946 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'
14947 else
14948 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'
14950 aix_use_runtimelinking=no
14952 # Test if we are trying to use run time linking or normal
14953 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14954 # need to do runtime linking.
14955 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14956 for ld_flag in $LDFLAGS; do
14957 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14958 aix_use_runtimelinking=yes
14959 break
14961 done
14963 esac
14965 exp_sym_flag='-bexport'
14966 no_entry_flag='-bnoentry'
14969 # When large executables or shared objects are built, AIX ld can
14970 # have problems creating the table of contents. If linking a library
14971 # or program results in "error TOC overflow" add -mminimal-toc to
14972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14975 archive_cmds=''
14976 hardcode_direct=yes
14977 hardcode_libdir_separator=':'
14978 link_all_deplibs=yes
14980 if test "$GCC" = yes; then
14981 case $host_os in aix4.[012]|aix4.[012].*)
14982 # We only want to do this on AIX 4.2 and lower, the check
14983 # below for broken collect2 doesn't work under 4.3+
14984 collect2name=`${CC} -print-prog-name=collect2`
14985 if test -f "$collect2name" && \
14986 strings "$collect2name" | grep resolve_lib_name >/dev/null
14987 then
14988 # We have reworked collect2
14989 hardcode_direct=yes
14990 else
14991 # We have old collect2
14992 hardcode_direct=unsupported
14993 # It fails to find uninstalled libraries when the uninstalled
14994 # path is not listed in the libpath. Setting hardcode_minus_L
14995 # to unsupported forces relinking
14996 hardcode_minus_L=yes
14997 hardcode_libdir_flag_spec='-L$libdir'
14998 hardcode_libdir_separator=
15001 esac
15002 shared_flag='-shared'
15003 if test "$aix_use_runtimelinking" = yes; then
15004 shared_flag="$shared_flag "'${wl}-G'
15006 else
15007 # not using gcc
15008 if test "$host_cpu" = ia64; then
15009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15010 # chokes on -Wl,-G. The following line is correct:
15011 shared_flag='-G'
15012 else
15013 if test "$aix_use_runtimelinking" = yes; then
15014 shared_flag='${wl}-G'
15015 else
15016 shared_flag='${wl}-bM:SRE'
15021 # It seems that -bexpall does not export symbols beginning with
15022 # underscore (_), so it is better to generate a list of symbols to export.
15023 always_export_symbols=yes
15024 if test "$aix_use_runtimelinking" = yes; then
15025 # Warning - without using the other runtime loading flags (-brtl),
15026 # -berok will link without error, but may produce a broken library.
15027 allow_undefined_flag='-berok'
15028 # Determine the default libpath from the value encoded in an empty executable.
15029 cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h. */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15037 main ()
15041 return 0;
15043 _ACEOF
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_link") 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } &&
15058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15059 { (case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15062 esac
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_try") 2>&5
15065 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; } &&
15068 { ac_try='test -s conftest$ac_exeext'
15069 { (case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_try") 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15079 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15081 # Check for a 64-bit object if we didn't find anything.
15082 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; }
15083 }'`; fi
15084 else
15085 echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.$ac_ext >&5
15091 rm -f core conftest.err conftest.$ac_objext \
15092 conftest$ac_exeext conftest.$ac_ext
15093 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15095 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15096 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"
15097 else
15098 if test "$host_cpu" = ia64; then
15099 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15100 allow_undefined_flag="-z nodefs"
15101 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"
15102 else
15103 # Determine the default libpath from the value encoded in an empty executable.
15104 cat >conftest.$ac_ext <<_ACEOF
15105 /* confdefs.h. */
15106 _ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15112 main ()
15116 return 0;
15118 _ACEOF
15119 rm -f conftest.$ac_objext conftest$ac_exeext
15120 if { (ac_try="$ac_link"
15121 case "(($ac_try" in
15122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15124 esac
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_link") 2>conftest.er1
15127 ac_status=$?
15128 grep -v '^ *+' conftest.er1 >conftest.err
15129 rm -f conftest.er1
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
15133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15134 { (case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_try") 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; } &&
15143 { ac_try='test -s conftest$ac_exeext'
15144 { (case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15147 esac
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_try") 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15154 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15156 # Check for a 64-bit object if we didn't find anything.
15157 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; }
15158 }'`; fi
15159 else
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15166 rm -f core conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext conftest.$ac_ext
15168 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15170 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15171 # Warning - without using the other run time loading flags,
15172 # -berok will link without error, but may produce a broken library.
15173 no_undefined_flag=' ${wl}-bernotok'
15174 allow_undefined_flag=' ${wl}-berok'
15175 # Exported symbols can be pulled into shared objects from archives
15176 whole_archive_flag_spec='$convenience'
15177 archive_cmds_need_lc=yes
15178 # This is similar to how AIX traditionally builds its shared libraries.
15179 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'
15184 amigaos*)
15185 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)'
15186 hardcode_libdir_flag_spec='-L$libdir'
15187 hardcode_minus_L=yes
15188 # see comment about different semantics on the GNU ld section
15189 ld_shlibs=no
15192 bsdi[45]*)
15193 export_dynamic_flag_spec=-rdynamic
15196 cygwin* | mingw* | pw32*)
15197 # When not using gcc, we currently assume that we are using
15198 # Microsoft Visual C++.
15199 # hardcode_libdir_flag_spec is actually meaningless, as there is
15200 # no search path for DLLs.
15201 hardcode_libdir_flag_spec=' '
15202 allow_undefined_flag=unsupported
15203 # Tell ltmain to make .lib files, not .a files.
15204 libext=lib
15205 # Tell ltmain to make .dll files, not .so files.
15206 shrext_cmds=".dll"
15207 # FIXME: Setting linknames here is a bad hack.
15208 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15209 # The linker will automatically build a .lib file if we build a DLL.
15210 old_archive_From_new_cmds='true'
15211 # FIXME: Should let the user specify the lib program.
15212 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15213 fix_srcfile_path='`cygpath -w "$srcfile"`'
15214 enable_shared_with_static_runtimes=yes
15217 darwin* | rhapsody*)
15218 case $host_os in
15219 rhapsody* | darwin1.[012])
15220 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15222 *) # Darwin 1.3 on
15223 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15224 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15225 else
15226 case ${MACOSX_DEPLOYMENT_TARGET} in
15227 10.[012])
15228 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15230 10.*)
15231 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15233 esac
15236 esac
15237 archive_cmds_need_lc=no
15238 hardcode_direct=no
15239 hardcode_automatic=yes
15240 hardcode_shlibpath_var=unsupported
15241 whole_archive_flag_spec=''
15242 link_all_deplibs=yes
15243 if test "$GCC" = yes ; then
15244 output_verbose_link_cmd='echo'
15245 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15246 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15247 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15248 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}'
15249 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}'
15250 else
15251 case $cc_basename in
15252 xlc*)
15253 output_verbose_link_cmd='echo'
15254 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15255 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15256 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15257 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}'
15258 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}'
15261 ld_shlibs=no
15263 esac
15267 dgux*)
15268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15269 hardcode_libdir_flag_spec='-L$libdir'
15270 hardcode_shlibpath_var=no
15273 freebsd1*)
15274 ld_shlibs=no
15277 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15278 # support. Future versions do this automatically, but an explicit c++rt0.o
15279 # does not break anything, and helps significantly (at the cost of a little
15280 # extra space).
15281 freebsd2.2*)
15282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15283 hardcode_libdir_flag_spec='-R$libdir'
15284 hardcode_direct=yes
15285 hardcode_shlibpath_var=no
15288 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15289 freebsd2*)
15290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15291 hardcode_direct=yes
15292 hardcode_minus_L=yes
15293 hardcode_shlibpath_var=no
15296 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15297 freebsd* | kfreebsd*-gnu | dragonfly*)
15298 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15299 hardcode_libdir_flag_spec='-R$libdir'
15300 hardcode_direct=yes
15301 hardcode_shlibpath_var=no
15304 hpux9*)
15305 if test "$GCC" = yes; then
15306 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'
15307 else
15308 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'
15310 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15311 hardcode_libdir_separator=:
15312 hardcode_direct=yes
15314 # hardcode_minus_L: Not really in the search PATH,
15315 # but as the default location of the library.
15316 hardcode_minus_L=yes
15317 export_dynamic_flag_spec='${wl}-E'
15320 hpux10*)
15321 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15322 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15323 else
15324 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15326 if test "$with_gnu_ld" = no; then
15327 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15328 hardcode_libdir_separator=:
15330 hardcode_direct=yes
15331 export_dynamic_flag_spec='${wl}-E'
15333 # hardcode_minus_L: Not really in the search PATH,
15334 # but as the default location of the library.
15335 hardcode_minus_L=yes
15339 hpux11*)
15340 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15341 case $host_cpu in
15342 hppa*64*)
15343 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15345 ia64*)
15346 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15349 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15351 esac
15352 else
15353 case $host_cpu in
15354 hppa*64*)
15355 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15357 ia64*)
15358 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15361 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15363 esac
15365 if test "$with_gnu_ld" = no; then
15366 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15367 hardcode_libdir_separator=:
15369 case $host_cpu in
15370 hppa*64*|ia64*)
15371 hardcode_libdir_flag_spec_ld='+b $libdir'
15372 hardcode_direct=no
15373 hardcode_shlibpath_var=no
15376 hardcode_direct=yes
15377 export_dynamic_flag_spec='${wl}-E'
15379 # hardcode_minus_L: Not really in the search PATH,
15380 # but as the default location of the library.
15381 hardcode_minus_L=yes
15383 esac
15387 irix5* | irix6* | nonstopux*)
15388 if test "$GCC" = yes; then
15389 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'
15390 else
15391 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'
15392 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15395 hardcode_libdir_separator=:
15396 link_all_deplibs=yes
15399 netbsd*)
15400 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15402 else
15403 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15405 hardcode_libdir_flag_spec='-R$libdir'
15406 hardcode_direct=yes
15407 hardcode_shlibpath_var=no
15410 newsos6)
15411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412 hardcode_direct=yes
15413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15414 hardcode_libdir_separator=:
15415 hardcode_shlibpath_var=no
15418 openbsd*)
15419 hardcode_direct=yes
15420 hardcode_shlibpath_var=no
15421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15423 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15424 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15425 export_dynamic_flag_spec='${wl}-E'
15426 else
15427 case $host_os in
15428 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15430 hardcode_libdir_flag_spec='-R$libdir'
15433 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15434 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15436 esac
15440 os2*)
15441 hardcode_libdir_flag_spec='-L$libdir'
15442 hardcode_minus_L=yes
15443 allow_undefined_flag=unsupported
15444 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'
15445 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15448 osf3*)
15449 if test "$GCC" = yes; then
15450 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15451 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'
15452 else
15453 allow_undefined_flag=' -expect_unresolved \*'
15454 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'
15456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15457 hardcode_libdir_separator=:
15460 osf4* | osf5*) # as osf3* with the addition of -msym flag
15461 if test "$GCC" = yes; then
15462 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15463 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'
15464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15465 else
15466 allow_undefined_flag=' -expect_unresolved \*'
15467 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'
15468 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15469 $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'
15471 # Both c and cxx compiler support -rpath directly
15472 hardcode_libdir_flag_spec='-rpath $libdir'
15474 hardcode_libdir_separator=:
15477 solaris*)
15478 no_undefined_flag=' -z text'
15479 if test "$GCC" = yes; then
15480 wlarc='${wl}'
15481 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15482 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15483 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15484 else
15485 wlarc=''
15486 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15487 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15488 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15490 hardcode_libdir_flag_spec='-R$libdir'
15491 hardcode_shlibpath_var=no
15492 case $host_os in
15493 solaris2.[0-5] | solaris2.[0-5].*) ;;
15495 # The compiler driver will combine linker options so we
15496 # cannot just pass the convience library names through
15497 # without $wl, iff we do not link with $LD.
15498 # Luckily, gcc supports the same syntax we need for Sun Studio.
15499 # Supported since Solaris 2.6 (maybe 2.5.1?)
15500 case $wlarc in
15502 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15504 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' ;;
15505 esac ;;
15506 esac
15507 link_all_deplibs=yes
15510 sunos4*)
15511 if test "x$host_vendor" = xsequent; then
15512 # Use $CC to link under sequent, because it throws in some extra .o
15513 # files that make .init and .fini sections work.
15514 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15515 else
15516 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15518 hardcode_libdir_flag_spec='-L$libdir'
15519 hardcode_direct=yes
15520 hardcode_minus_L=yes
15521 hardcode_shlibpath_var=no
15524 sysv4)
15525 case $host_vendor in
15526 sni)
15527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15528 hardcode_direct=yes # is this really true???
15530 siemens)
15531 ## LD is ld it makes a PLAMLIB
15532 ## CC just makes a GrossModule.
15533 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15534 reload_cmds='$CC -r -o $output$reload_objs'
15535 hardcode_direct=no
15537 motorola)
15538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15539 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15541 esac
15542 runpath_var='LD_RUN_PATH'
15543 hardcode_shlibpath_var=no
15546 sysv4.3*)
15547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548 hardcode_shlibpath_var=no
15549 export_dynamic_flag_spec='-Bexport'
15552 sysv4*MP*)
15553 if test -d /usr/nec; then
15554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15555 hardcode_shlibpath_var=no
15556 runpath_var=LD_RUN_PATH
15557 hardcode_runpath_var=yes
15558 ld_shlibs=yes
15562 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15563 no_undefined_flag='${wl}-z,text'
15564 archive_cmds_need_lc=no
15565 hardcode_shlibpath_var=no
15566 runpath_var='LD_RUN_PATH'
15568 if test "$GCC" = yes; then
15569 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15570 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15571 else
15572 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15573 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15577 sysv5* | sco3.2v5* | sco5v6*)
15578 # Note: We can NOT use -z defs as we might desire, because we do not
15579 # link with -lc, and that would cause any symbols used from libc to
15580 # always be unresolved, which means just about no library would
15581 # ever link correctly. If we're not using GNU ld we use -z text
15582 # though, which does catch some bad symbols but isn't as heavy-handed
15583 # as -z defs.
15584 no_undefined_flag='${wl}-z,text'
15585 allow_undefined_flag='${wl}-z,nodefs'
15586 archive_cmds_need_lc=no
15587 hardcode_shlibpath_var=no
15588 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15589 hardcode_libdir_separator=':'
15590 link_all_deplibs=yes
15591 export_dynamic_flag_spec='${wl}-Bexport'
15592 runpath_var='LD_RUN_PATH'
15594 if test "$GCC" = yes; then
15595 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15596 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15597 else
15598 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15599 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 uts4*)
15604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15605 hardcode_libdir_flag_spec='-L$libdir'
15606 hardcode_shlibpath_var=no
15610 ld_shlibs=no
15612 esac
15615 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15616 echo "${ECHO_T}$ld_shlibs" >&6; }
15617 test "$ld_shlibs" = no && can_build_shared=no
15620 # Do we need to explicitly link libc?
15622 case "x$archive_cmds_need_lc" in
15623 x|xyes)
15624 # Assume -lc should be added
15625 archive_cmds_need_lc=yes
15627 if test "$enable_shared" = yes && test "$GCC" = yes; then
15628 case $archive_cmds in
15629 *'~'*)
15630 # FIXME: we may have to deal with multi-command sequences.
15632 '$CC '*)
15633 # Test whether the compiler implicitly links with -lc since on some
15634 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15635 # to ld, don't add -lc before -lgcc.
15636 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15637 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15638 $rm conftest*
15639 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642 (eval $ac_compile) 2>&5
15643 ac_status=$?
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } 2>conftest.err; then
15646 soname=conftest
15647 lib=conftest
15648 libobjs=conftest.$ac_objext
15649 deplibs=
15650 wl=$lt_prog_compiler_wl
15651 pic_flag=$lt_prog_compiler_pic
15652 compiler_flags=-v
15653 linker_flags=-v
15654 verstring=
15655 output_objdir=.
15656 libname=conftest
15657 lt_save_allow_undefined_flag=$allow_undefined_flag
15658 allow_undefined_flag=
15659 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15660 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }
15664 then
15665 archive_cmds_need_lc=no
15666 else
15667 archive_cmds_need_lc=yes
15669 allow_undefined_flag=$lt_save_allow_undefined_flag
15670 else
15671 cat conftest.err 1>&5
15673 $rm conftest*
15674 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15675 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15677 esac
15680 esac
15682 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15683 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15684 library_names_spec=
15685 libname_spec='lib$name'
15686 soname_spec=
15687 shrext_cmds=".so"
15688 postinstall_cmds=
15689 postuninstall_cmds=
15690 finish_cmds=
15691 finish_eval=
15692 shlibpath_var=
15693 shlibpath_overrides_runpath=unknown
15694 version_type=none
15695 dynamic_linker="$host_os ld.so"
15696 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15697 if test "$GCC" = yes; then
15698 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15699 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15700 # if the path contains ";" then we assume it to be the separator
15701 # otherwise default to the standard path separator (i.e. ":") - it is
15702 # assumed that no part of a normal pathname contains ";" but that should
15703 # okay in the real world where ";" in dirpaths is itself problematic.
15704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15705 else
15706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15708 else
15709 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15711 need_lib_prefix=unknown
15712 hardcode_into_libs=no
15714 # when you set need_version to no, make sure it does not cause -set_version
15715 # flags to be left without arguments
15716 need_version=unknown
15718 case $host_os in
15719 aix3*)
15720 version_type=linux
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15722 shlibpath_var=LIBPATH
15724 # AIX 3 has no versioning support, so we append a major version to the name.
15725 soname_spec='${libname}${release}${shared_ext}$major'
15728 aix4* | aix5*)
15729 version_type=linux
15730 need_lib_prefix=no
15731 need_version=no
15732 hardcode_into_libs=yes
15733 if test "$host_cpu" = ia64; then
15734 # AIX 5 supports IA64
15735 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 else
15738 # With GCC up to 2.95.x, collect2 would create an import file
15739 # for dependence libraries. The import file would start with
15740 # the line `#! .'. This would cause the generated library to
15741 # depend on `.', always an invalid library. This was fixed in
15742 # development snapshots of GCC prior to 3.0.
15743 case $host_os in
15744 aix4 | aix4.[01] | aix4.[01].*)
15745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15746 echo ' yes '
15747 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15749 else
15750 can_build_shared=no
15753 esac
15754 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15755 # soname into executable. Probably we can add versioning support to
15756 # collect2, so additional links can be useful in future.
15757 if test "$aix_use_runtimelinking" = yes; then
15758 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15759 # instead of lib<name>.a to let people know that these are not
15760 # typical AIX shared libraries.
15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15762 else
15763 # We preserve .a as extension for shared libraries through AIX4.2
15764 # and later when we are not doing run time linking.
15765 library_names_spec='${libname}${release}.a $libname.a'
15766 soname_spec='${libname}${release}${shared_ext}$major'
15768 shlibpath_var=LIBPATH
15772 amigaos*)
15773 library_names_spec='$libname.ixlibrary $libname.a'
15774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15775 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'
15778 beos*)
15779 library_names_spec='${libname}${shared_ext}'
15780 dynamic_linker="$host_os ld.so"
15781 shlibpath_var=LIBRARY_PATH
15784 bsdi[45]*)
15785 version_type=linux
15786 need_version=no
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 soname_spec='${libname}${release}${shared_ext}$major'
15789 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15790 shlibpath_var=LD_LIBRARY_PATH
15791 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15792 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15793 # the default ld.so.conf also contains /usr/contrib/lib and
15794 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15795 # libtool to hard-code these into programs
15798 cygwin* | mingw* | pw32*)
15799 version_type=windows
15800 shrext_cmds=".dll"
15801 need_version=no
15802 need_lib_prefix=no
15804 case $GCC,$host_os in
15805 yes,cygwin* | yes,mingw* | yes,pw32*)
15806 library_names_spec='$libname.dll.a'
15807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15808 postinstall_cmds='base_file=`basename \${file}`~
15809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15810 dldir=$destdir/`dirname \$dlpath`~
15811 test -d \$dldir || mkdir -p \$dldir~
15812 $install_prog $dir/$dlname \$dldir/$dlname~
15813 chmod a+x \$dldir/$dlname'
15814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15815 dlpath=$dir/\$dldll~
15816 $rm \$dlpath'
15817 shlibpath_overrides_runpath=yes
15819 case $host_os in
15820 cygwin*)
15821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15822 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15823 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15825 mingw*)
15826 # MinGW DLLs use traditional 'lib' prefix
15827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15828 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15829 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15830 # It is most probably a Windows format PATH printed by
15831 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15832 # path with ; separators, and with drive letters. We can handle the
15833 # drive letters (cygwin fileutils understands them), so leave them,
15834 # especially as we might pass files found there to a mingw objdump,
15835 # which wouldn't understand a cygwinified path. Ahh.
15836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15837 else
15838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15841 pw32*)
15842 # pw32 DLLs use 'pw' prefix rather than 'lib'
15843 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15845 esac
15849 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15851 esac
15852 dynamic_linker='Win32 ld.exe'
15853 # FIXME: first we should search . and the directory the executable is in
15854 shlibpath_var=PATH
15857 darwin* | rhapsody*)
15858 dynamic_linker="$host_os dyld"
15859 version_type=darwin
15860 need_lib_prefix=no
15861 need_version=no
15862 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15863 soname_spec='${libname}${release}${major}$shared_ext'
15864 shlibpath_overrides_runpath=yes
15865 shlibpath_var=DYLD_LIBRARY_PATH
15866 shrext_cmds='.dylib'
15867 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15868 if test "$GCC" = yes; then
15869 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"`
15870 else
15871 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15873 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15876 dgux*)
15877 version_type=linux
15878 need_lib_prefix=no
15879 need_version=no
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15881 soname_spec='${libname}${release}${shared_ext}$major'
15882 shlibpath_var=LD_LIBRARY_PATH
15885 freebsd1*)
15886 dynamic_linker=no
15889 kfreebsd*-gnu)
15890 version_type=linux
15891 need_lib_prefix=no
15892 need_version=no
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 shlibpath_var=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath=no
15897 hardcode_into_libs=yes
15898 dynamic_linker='GNU ld.so'
15901 freebsd* | dragonfly*)
15902 # DragonFly does not have aout. When/if they implement a new
15903 # versioning mechanism, adjust this.
15904 if test -x /usr/bin/objformat; then
15905 objformat=`/usr/bin/objformat`
15906 else
15907 case $host_os in
15908 freebsd[123]*) objformat=aout ;;
15909 *) objformat=elf ;;
15910 esac
15912 version_type=freebsd-$objformat
15913 case $version_type in
15914 freebsd-elf*)
15915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15916 need_version=no
15917 need_lib_prefix=no
15919 freebsd-*)
15920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15921 need_version=yes
15923 esac
15924 shlibpath_var=LD_LIBRARY_PATH
15925 case $host_os in
15926 freebsd2*)
15927 shlibpath_overrides_runpath=yes
15929 freebsd3.[01]* | freebsdelf3.[01]*)
15930 shlibpath_overrides_runpath=yes
15931 hardcode_into_libs=yes
15933 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15934 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15935 shlibpath_overrides_runpath=no
15936 hardcode_into_libs=yes
15938 freebsd*) # from 4.6 on
15939 shlibpath_overrides_runpath=yes
15940 hardcode_into_libs=yes
15942 esac
15945 gnu*)
15946 version_type=linux
15947 need_lib_prefix=no
15948 need_version=no
15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15950 soname_spec='${libname}${release}${shared_ext}$major'
15951 shlibpath_var=LD_LIBRARY_PATH
15952 hardcode_into_libs=yes
15955 hpux9* | hpux10* | hpux11*)
15956 # Give a soname corresponding to the major version so that dld.sl refuses to
15957 # link against other versions.
15958 version_type=sunos
15959 need_lib_prefix=no
15960 need_version=no
15961 case $host_cpu in
15962 ia64*)
15963 shrext_cmds='.so'
15964 hardcode_into_libs=yes
15965 dynamic_linker="$host_os dld.so"
15966 shlibpath_var=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969 soname_spec='${libname}${release}${shared_ext}$major'
15970 if test "X$HPUX_IA64_MODE" = X32; then
15971 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15972 else
15973 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15977 hppa*64*)
15978 shrext_cmds='.sl'
15979 hardcode_into_libs=yes
15980 dynamic_linker="$host_os dld.sl"
15981 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984 soname_spec='${libname}${release}${shared_ext}$major'
15985 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15989 shrext_cmds='.sl'
15990 dynamic_linker="$host_os dld.sl"
15991 shlibpath_var=SHLIB_PATH
15992 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 soname_spec='${libname}${release}${shared_ext}$major'
15996 esac
15997 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15998 postinstall_cmds='chmod 555 $lib'
16001 interix3*)
16002 version_type=linux
16003 need_lib_prefix=no
16004 need_version=no
16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16006 soname_spec='${libname}${release}${shared_ext}$major'
16007 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16008 shlibpath_var=LD_LIBRARY_PATH
16009 shlibpath_overrides_runpath=no
16010 hardcode_into_libs=yes
16013 irix5* | irix6* | nonstopux*)
16014 case $host_os in
16015 nonstopux*) version_type=nonstopux ;;
16017 if test "$lt_cv_prog_gnu_ld" = yes; then
16018 version_type=linux
16019 else
16020 version_type=irix
16021 fi ;;
16022 esac
16023 need_lib_prefix=no
16024 need_version=no
16025 soname_spec='${libname}${release}${shared_ext}$major'
16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16027 case $host_os in
16028 irix5* | nonstopux*)
16029 libsuff= shlibsuff=
16032 case $LD in # libtool.m4 will add one of these switches to LD
16033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16034 libsuff= shlibsuff= libmagic=32-bit;;
16035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16036 libsuff=32 shlibsuff=N32 libmagic=N32;;
16037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16038 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16039 *) libsuff= shlibsuff= libmagic=never-match;;
16040 esac
16042 esac
16043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16044 shlibpath_overrides_runpath=no
16045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16047 hardcode_into_libs=yes
16050 # No shared lib support for Linux oldld, aout, or coff.
16051 linux*oldld* | linux*aout* | linux*coff*)
16052 dynamic_linker=no
16055 # This must be Linux ELF.
16056 linux*)
16057 version_type=linux
16058 need_lib_prefix=no
16059 need_version=no
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 soname_spec='${libname}${release}${shared_ext}$major'
16062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16063 shlibpath_var=LD_LIBRARY_PATH
16064 shlibpath_overrides_runpath=no
16065 # This implies no fast_install, which is unacceptable.
16066 # Some rework will be needed to allow for fast_install
16067 # before this can be enabled.
16068 hardcode_into_libs=yes
16070 # Append ld.so.conf contents to the search path
16071 if test -f /etc/ld.so.conf; then
16072 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' ' '`
16073 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16076 # We used to test for /lib/ld.so.1 and disable shared libraries on
16077 # powerpc, because MkLinux only supported shared libraries with the
16078 # GNU dynamic linker. Since this was broken with cross compilers,
16079 # most powerpc-linux boxes support dynamic linking these days and
16080 # people can always --disable-shared, the test was removed, and we
16081 # assume the GNU/Linux dynamic linker is in use.
16082 dynamic_linker='GNU/Linux ld.so'
16085 knetbsd*-gnu)
16086 version_type=linux
16087 need_lib_prefix=no
16088 need_version=no
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 shlibpath_var=LD_LIBRARY_PATH
16092 shlibpath_overrides_runpath=no
16093 hardcode_into_libs=yes
16094 dynamic_linker='GNU ld.so'
16097 netbsd*)
16098 version_type=sunos
16099 need_lib_prefix=no
16100 need_version=no
16101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16104 dynamic_linker='NetBSD (a.out) ld.so'
16105 else
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16107 soname_spec='${libname}${release}${shared_ext}$major'
16108 dynamic_linker='NetBSD ld.elf_so'
16110 shlibpath_var=LD_LIBRARY_PATH
16111 shlibpath_overrides_runpath=yes
16112 hardcode_into_libs=yes
16115 newsos6)
16116 version_type=linux
16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16118 shlibpath_var=LD_LIBRARY_PATH
16119 shlibpath_overrides_runpath=yes
16122 nto-qnx*)
16123 version_type=linux
16124 need_lib_prefix=no
16125 need_version=no
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127 soname_spec='${libname}${release}${shared_ext}$major'
16128 shlibpath_var=LD_LIBRARY_PATH
16129 shlibpath_overrides_runpath=yes
16132 openbsd*)
16133 version_type=sunos
16134 sys_lib_dlsearch_path_spec="/usr/lib"
16135 need_lib_prefix=no
16136 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16137 case $host_os in
16138 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16139 *) need_version=no ;;
16140 esac
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16143 shlibpath_var=LD_LIBRARY_PATH
16144 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16145 case $host_os in
16146 openbsd2.[89] | openbsd2.[89].*)
16147 shlibpath_overrides_runpath=no
16150 shlibpath_overrides_runpath=yes
16152 esac
16153 else
16154 shlibpath_overrides_runpath=yes
16158 os2*)
16159 libname_spec='$name'
16160 shrext_cmds=".dll"
16161 need_lib_prefix=no
16162 library_names_spec='$libname${shared_ext} $libname.a'
16163 dynamic_linker='OS/2 ld.exe'
16164 shlibpath_var=LIBPATH
16167 osf3* | osf4* | osf5*)
16168 version_type=osf
16169 need_lib_prefix=no
16170 need_version=no
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16175 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16178 solaris*)
16179 version_type=linux
16180 need_lib_prefix=no
16181 need_version=no
16182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16183 soname_spec='${libname}${release}${shared_ext}$major'
16184 shlibpath_var=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath=yes
16186 hardcode_into_libs=yes
16187 # ldd complains unless libraries are executable
16188 postinstall_cmds='chmod +x $lib'
16191 sunos4*)
16192 version_type=sunos
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 shlibpath_overrides_runpath=yes
16197 if test "$with_gnu_ld" = yes; then
16198 need_lib_prefix=no
16200 need_version=yes
16203 sysv4 | sysv4.3*)
16204 version_type=linux
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206 soname_spec='${libname}${release}${shared_ext}$major'
16207 shlibpath_var=LD_LIBRARY_PATH
16208 case $host_vendor in
16209 sni)
16210 shlibpath_overrides_runpath=no
16211 need_lib_prefix=no
16212 export_dynamic_flag_spec='${wl}-Blargedynsym'
16213 runpath_var=LD_RUN_PATH
16215 siemens)
16216 need_lib_prefix=no
16218 motorola)
16219 need_lib_prefix=no
16220 need_version=no
16221 shlibpath_overrides_runpath=no
16222 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16224 esac
16227 sysv4*MP*)
16228 if test -d /usr/nec ;then
16229 version_type=linux
16230 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16231 soname_spec='$libname${shared_ext}.$major'
16232 shlibpath_var=LD_LIBRARY_PATH
16236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16237 version_type=freebsd-elf
16238 need_lib_prefix=no
16239 need_version=no
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16241 soname_spec='${libname}${release}${shared_ext}$major'
16242 shlibpath_var=LD_LIBRARY_PATH
16243 hardcode_into_libs=yes
16244 if test "$with_gnu_ld" = yes; then
16245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16246 shlibpath_overrides_runpath=no
16247 else
16248 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16249 shlibpath_overrides_runpath=yes
16250 case $host_os in
16251 sco3.2v5*)
16252 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16254 esac
16256 sys_lib_dlsearch_path_spec='/usr/lib'
16259 uts4*)
16260 version_type=linux
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 shlibpath_var=LD_LIBRARY_PATH
16267 dynamic_linker=no
16269 esac
16270 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16271 echo "${ECHO_T}$dynamic_linker" >&6; }
16272 test "$dynamic_linker" = no && can_build_shared=no
16274 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16275 if test "$GCC" = yes; then
16276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16279 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16280 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16281 hardcode_action=
16282 if test -n "$hardcode_libdir_flag_spec" || \
16283 test -n "$runpath_var" || \
16284 test "X$hardcode_automatic" = "Xyes" ; then
16286 # We can hardcode non-existant directories.
16287 if test "$hardcode_direct" != no &&
16288 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16289 # have to relink, otherwise we might link with an installed library
16290 # when we should be linking with a yet-to-be-installed one
16291 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16292 test "$hardcode_minus_L" != no; then
16293 # Linking always hardcodes the temporary library directory.
16294 hardcode_action=relink
16295 else
16296 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16297 hardcode_action=immediate
16299 else
16300 # We cannot hardcode anything, or else we can only hardcode existing
16301 # directories.
16302 hardcode_action=unsupported
16304 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16305 echo "${ECHO_T}$hardcode_action" >&6; }
16307 if test "$hardcode_action" = relink; then
16308 # Fast installation is not supported
16309 enable_fast_install=no
16310 elif test "$shlibpath_overrides_runpath" = yes ||
16311 test "$enable_shared" = no; then
16312 # Fast installation is not necessary
16313 enable_fast_install=needless
16316 striplib=
16317 old_striplib=
16318 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16319 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16320 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16321 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16322 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16323 { echo "$as_me:$LINENO: result: yes" >&5
16324 echo "${ECHO_T}yes" >&6; }
16325 else
16326 # FIXME - insert some real tests, host_os isn't really good enough
16327 case $host_os in
16328 darwin*)
16329 if test -n "$STRIP" ; then
16330 striplib="$STRIP -x"
16331 { echo "$as_me:$LINENO: result: yes" >&5
16332 echo "${ECHO_T}yes" >&6; }
16333 else
16334 { echo "$as_me:$LINENO: result: no" >&5
16335 echo "${ECHO_T}no" >&6; }
16339 { echo "$as_me:$LINENO: result: no" >&5
16340 echo "${ECHO_T}no" >&6; }
16342 esac
16345 if test "x$enable_dlopen" != xyes; then
16346 enable_dlopen=unknown
16347 enable_dlopen_self=unknown
16348 enable_dlopen_self_static=unknown
16349 else
16350 lt_cv_dlopen=no
16351 lt_cv_dlopen_libs=
16353 case $host_os in
16354 beos*)
16355 lt_cv_dlopen="load_add_on"
16356 lt_cv_dlopen_libs=
16357 lt_cv_dlopen_self=yes
16360 mingw* | pw32*)
16361 lt_cv_dlopen="LoadLibrary"
16362 lt_cv_dlopen_libs=
16365 cygwin*)
16366 lt_cv_dlopen="dlopen"
16367 lt_cv_dlopen_libs=
16370 darwin*)
16371 # if libdl is installed we need to link against it
16372 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16373 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16374 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 else
16377 ac_check_lib_save_LIBS=$LIBS
16378 LIBS="-ldl $LIBS"
16379 cat >conftest.$ac_ext <<_ACEOF
16380 /* confdefs.h. */
16381 _ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16386 /* Override any GCC internal prototype to avoid an error.
16387 Use char because int might match the return type of a GCC
16388 builtin and then its argument prototype would still apply. */
16389 #ifdef __cplusplus
16390 extern "C"
16391 #endif
16392 char dlopen ();
16394 main ()
16396 return dlopen ();
16398 return 0;
16400 _ACEOF
16401 rm -f conftest.$ac_objext conftest$ac_exeext
16402 if { (ac_try="$ac_link"
16403 case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16406 esac
16407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_link") 2>conftest.er1
16409 ac_status=$?
16410 grep -v '^ *+' conftest.er1 >conftest.err
16411 rm -f conftest.er1
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419 esac
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; } &&
16425 { ac_try='test -s conftest$ac_exeext'
16426 { (case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16429 esac
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_try") 2>&5
16432 ac_status=$?
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
16435 ac_cv_lib_dl_dlopen=yes
16436 else
16437 echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ac_cv_lib_dl_dlopen=no
16443 rm -f core conftest.err conftest.$ac_objext \
16444 conftest$ac_exeext conftest.$ac_ext
16445 LIBS=$ac_check_lib_save_LIBS
16447 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16448 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16449 if test $ac_cv_lib_dl_dlopen = yes; then
16450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16451 else
16453 lt_cv_dlopen="dyld"
16454 lt_cv_dlopen_libs=
16455 lt_cv_dlopen_self=yes
16462 { echo "$as_me:$LINENO: checking for shl_load" >&5
16463 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16464 if test "${ac_cv_func_shl_load+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467 cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h. */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16473 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16475 #define shl_load innocuous_shl_load
16477 /* System header to define __stub macros and hopefully few prototypes,
16478 which can conflict with char shl_load (); below.
16479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16480 <limits.h> exists even on freestanding compilers. */
16482 #ifdef __STDC__
16483 # include <limits.h>
16484 #else
16485 # include <assert.h>
16486 #endif
16488 #undef shl_load
16490 /* Override any GCC internal prototype to avoid an error.
16491 Use char because int might match the return type of a GCC
16492 builtin and then its argument prototype would still apply. */
16493 #ifdef __cplusplus
16494 extern "C"
16495 #endif
16496 char shl_load ();
16497 /* The GNU C library defines this for functions which it implements
16498 to always fail with ENOSYS. Some functions are actually named
16499 something starting with __ and the normal name is an alias. */
16500 #if defined __stub_shl_load || defined __stub___shl_load
16501 choke me
16502 #endif
16505 main ()
16507 return shl_load ();
16509 return 0;
16511 _ACEOF
16512 rm -f conftest.$ac_objext conftest$ac_exeext
16513 if { (ac_try="$ac_link"
16514 case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16517 esac
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_link") 2>conftest.er1
16520 ac_status=$?
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16527 { (case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_try") 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest$ac_exeext'
16537 { (case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16540 esac
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_try") 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ac_cv_func_shl_load=yes
16547 else
16548 echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16551 ac_cv_func_shl_load=no
16554 rm -f core conftest.err conftest.$ac_objext \
16555 conftest$ac_exeext conftest.$ac_ext
16557 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16558 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16559 if test $ac_cv_func_shl_load = yes; then
16560 lt_cv_dlopen="shl_load"
16561 else
16562 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16563 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16564 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 else
16567 ac_check_lib_save_LIBS=$LIBS
16568 LIBS="-ldld $LIBS"
16569 cat >conftest.$ac_ext <<_ACEOF
16570 /* confdefs.h. */
16571 _ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16576 /* Override any GCC internal prototype to avoid an error.
16577 Use char because int might match the return type of a GCC
16578 builtin and then its argument prototype would still apply. */
16579 #ifdef __cplusplus
16580 extern "C"
16581 #endif
16582 char shl_load ();
16584 main ()
16586 return shl_load ();
16588 return 0;
16590 _ACEOF
16591 rm -f conftest.$ac_objext conftest$ac_exeext
16592 if { (ac_try="$ac_link"
16593 case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16596 esac
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_link") 2>conftest.er1
16599 ac_status=$?
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
16605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16606 { (case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16609 esac
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_try") 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; } &&
16615 { ac_try='test -s conftest$ac_exeext'
16616 { (case "(($ac_try" in
16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618 *) ac_try_echo=$ac_try;;
16619 esac
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_try") 2>&5
16622 ac_status=$?
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_cv_lib_dld_shl_load=yes
16626 else
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16630 ac_cv_lib_dld_shl_load=no
16633 rm -f core conftest.err conftest.$ac_objext \
16634 conftest$ac_exeext conftest.$ac_ext
16635 LIBS=$ac_check_lib_save_LIBS
16637 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16638 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16639 if test $ac_cv_lib_dld_shl_load = yes; then
16640 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16641 else
16642 { echo "$as_me:$LINENO: checking for dlopen" >&5
16643 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16644 if test "${ac_cv_func_dlopen+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16646 else
16647 cat >conftest.$ac_ext <<_ACEOF
16648 /* confdefs.h. */
16649 _ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h. */
16653 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16655 #define dlopen innocuous_dlopen
16657 /* System header to define __stub macros and hopefully few prototypes,
16658 which can conflict with char dlopen (); below.
16659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16660 <limits.h> exists even on freestanding compilers. */
16662 #ifdef __STDC__
16663 # include <limits.h>
16664 #else
16665 # include <assert.h>
16666 #endif
16668 #undef dlopen
16670 /* Override any GCC internal prototype to avoid an error.
16671 Use char because int might match the return type of a GCC
16672 builtin and then its argument prototype would still apply. */
16673 #ifdef __cplusplus
16674 extern "C"
16675 #endif
16676 char dlopen ();
16677 /* The GNU C library defines this for functions which it implements
16678 to always fail with ENOSYS. Some functions are actually named
16679 something starting with __ and the normal name is an alias. */
16680 #if defined __stub_dlopen || defined __stub___dlopen
16681 choke me
16682 #endif
16685 main ()
16687 return dlopen ();
16689 return 0;
16691 _ACEOF
16692 rm -f conftest.$ac_objext conftest$ac_exeext
16693 if { (ac_try="$ac_link"
16694 case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_link") 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } &&
16706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; } &&
16716 { ac_try='test -s conftest$ac_exeext'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720 esac
16721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ac_cv_func_dlopen=yes
16727 else
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16731 ac_cv_func_dlopen=no
16734 rm -f core conftest.err conftest.$ac_objext \
16735 conftest$ac_exeext conftest.$ac_ext
16737 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16738 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16739 if test $ac_cv_func_dlopen = yes; then
16740 lt_cv_dlopen="dlopen"
16741 else
16742 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16743 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16744 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16746 else
16747 ac_check_lib_save_LIBS=$LIBS
16748 LIBS="-ldl $LIBS"
16749 cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h. */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16756 /* Override any GCC internal prototype to avoid an error.
16757 Use char because int might match the return type of a GCC
16758 builtin and then its argument prototype would still apply. */
16759 #ifdef __cplusplus
16760 extern "C"
16761 #endif
16762 char dlopen ();
16764 main ()
16766 return dlopen ();
16768 return 0;
16770 _ACEOF
16771 rm -f conftest.$ac_objext conftest$ac_exeext
16772 if { (ac_try="$ac_link"
16773 case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16776 esac
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_link") 2>conftest.er1
16779 ac_status=$?
16780 grep -v '^ *+' conftest.er1 >conftest.err
16781 rm -f conftest.er1
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } &&
16785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16786 { (case "(($ac_try" in
16787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16788 *) ac_try_echo=$ac_try;;
16789 esac
16790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16791 (eval "$ac_try") 2>&5
16792 ac_status=$?
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); }; } &&
16795 { ac_try='test -s conftest$ac_exeext'
16796 { (case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16799 esac
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_try") 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805 ac_cv_lib_dl_dlopen=yes
16806 else
16807 echo "$as_me: failed program was:" >&5
16808 sed 's/^/| /' conftest.$ac_ext >&5
16810 ac_cv_lib_dl_dlopen=no
16813 rm -f core conftest.err conftest.$ac_objext \
16814 conftest$ac_exeext conftest.$ac_ext
16815 LIBS=$ac_check_lib_save_LIBS
16817 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16818 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16819 if test $ac_cv_lib_dl_dlopen = yes; then
16820 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16821 else
16822 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16823 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16824 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827 ac_check_lib_save_LIBS=$LIBS
16828 LIBS="-lsvld $LIBS"
16829 cat >conftest.$ac_ext <<_ACEOF
16830 /* confdefs.h. */
16831 _ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h. */
16836 /* Override any GCC internal prototype to avoid an error.
16837 Use char because int might match the return type of a GCC
16838 builtin and then its argument prototype would still apply. */
16839 #ifdef __cplusplus
16840 extern "C"
16841 #endif
16842 char dlopen ();
16844 main ()
16846 return dlopen ();
16848 return 0;
16850 _ACEOF
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (ac_try="$ac_link"
16853 case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856 esac
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_link") 2>conftest.er1
16859 ac_status=$?
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest$ac_exeext'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879 esac
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_lib_svld_dlopen=yes
16886 else
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16890 ac_cv_lib_svld_dlopen=no
16893 rm -f core conftest.err conftest.$ac_objext \
16894 conftest$ac_exeext conftest.$ac_ext
16895 LIBS=$ac_check_lib_save_LIBS
16897 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16898 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16899 if test $ac_cv_lib_svld_dlopen = yes; then
16900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16901 else
16902 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16903 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16904 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16907 ac_check_lib_save_LIBS=$LIBS
16908 LIBS="-ldld $LIBS"
16909 cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h. */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16916 /* Override any GCC internal prototype to avoid an error.
16917 Use char because int might match the return type of a GCC
16918 builtin and then its argument prototype would still apply. */
16919 #ifdef __cplusplus
16920 extern "C"
16921 #endif
16922 char dld_link ();
16924 main ()
16926 return dld_link ();
16928 return 0;
16930 _ACEOF
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (ac_try="$ac_link"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_link") 2>conftest.er1
16939 ac_status=$?
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16949 esac
16950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16951 (eval "$ac_try") 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest$ac_exeext'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965 ac_cv_lib_dld_dld_link=yes
16966 else
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16970 ac_cv_lib_dld_dld_link=no
16973 rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975 LIBS=$ac_check_lib_save_LIBS
16977 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16978 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16979 if test $ac_cv_lib_dld_dld_link = yes; then
16980 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16999 esac
17001 if test "x$lt_cv_dlopen" != xno; then
17002 enable_dlopen=yes
17003 else
17004 enable_dlopen=no
17007 case $lt_cv_dlopen in
17008 dlopen)
17009 save_CPPFLAGS="$CPPFLAGS"
17010 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17012 save_LDFLAGS="$LDFLAGS"
17013 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17015 save_LIBS="$LIBS"
17016 LIBS="$lt_cv_dlopen_libs $LIBS"
17018 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17019 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17020 if test "${lt_cv_dlopen_self+set}" = set; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 else
17023 if test "$cross_compiling" = yes; then :
17024 lt_cv_dlopen_self=cross
17025 else
17026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17027 lt_status=$lt_dlunknown
17028 cat > conftest.$ac_ext <<EOF
17029 #line 17029 "configure"
17030 #include "confdefs.h"
17032 #if HAVE_DLFCN_H
17033 #include <dlfcn.h>
17034 #endif
17036 #include <stdio.h>
17038 #ifdef RTLD_GLOBAL
17039 # define LT_DLGLOBAL RTLD_GLOBAL
17040 #else
17041 # ifdef DL_GLOBAL
17042 # define LT_DLGLOBAL DL_GLOBAL
17043 # else
17044 # define LT_DLGLOBAL 0
17045 # endif
17046 #endif
17048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17049 find out it does not work in some platform. */
17050 #ifndef LT_DLLAZY_OR_NOW
17051 # ifdef RTLD_LAZY
17052 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17053 # else
17054 # ifdef DL_LAZY
17055 # define LT_DLLAZY_OR_NOW DL_LAZY
17056 # else
17057 # ifdef RTLD_NOW
17058 # define LT_DLLAZY_OR_NOW RTLD_NOW
17059 # else
17060 # ifdef DL_NOW
17061 # define LT_DLLAZY_OR_NOW DL_NOW
17062 # else
17063 # define LT_DLLAZY_OR_NOW 0
17064 # endif
17065 # endif
17066 # endif
17067 # endif
17068 #endif
17070 #ifdef __cplusplus
17071 extern "C" void exit (int);
17072 #endif
17074 void fnord() { int i=42;}
17075 int main ()
17077 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17078 int status = $lt_dlunknown;
17080 if (self)
17082 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17083 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17084 /* dlclose (self); */
17086 else
17087 puts (dlerror ());
17089 exit (status);
17092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093 (eval $ac_link) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17097 (./conftest; exit; ) >&5 2>/dev/null
17098 lt_status=$?
17099 case x$lt_status in
17100 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17101 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17102 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17103 esac
17104 else :
17105 # compilation failed
17106 lt_cv_dlopen_self=no
17109 rm -fr conftest*
17113 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17114 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17116 if test "x$lt_cv_dlopen_self" = xyes; then
17117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17118 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17119 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17120 if test "${lt_cv_dlopen_self_static+set}" = set; then
17121 echo $ECHO_N "(cached) $ECHO_C" >&6
17122 else
17123 if test "$cross_compiling" = yes; then :
17124 lt_cv_dlopen_self_static=cross
17125 else
17126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17127 lt_status=$lt_dlunknown
17128 cat > conftest.$ac_ext <<EOF
17129 #line 17129 "configure"
17130 #include "confdefs.h"
17132 #if HAVE_DLFCN_H
17133 #include <dlfcn.h>
17134 #endif
17136 #include <stdio.h>
17138 #ifdef RTLD_GLOBAL
17139 # define LT_DLGLOBAL RTLD_GLOBAL
17140 #else
17141 # ifdef DL_GLOBAL
17142 # define LT_DLGLOBAL DL_GLOBAL
17143 # else
17144 # define LT_DLGLOBAL 0
17145 # endif
17146 #endif
17148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17149 find out it does not work in some platform. */
17150 #ifndef LT_DLLAZY_OR_NOW
17151 # ifdef RTLD_LAZY
17152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17153 # else
17154 # ifdef DL_LAZY
17155 # define LT_DLLAZY_OR_NOW DL_LAZY
17156 # else
17157 # ifdef RTLD_NOW
17158 # define LT_DLLAZY_OR_NOW RTLD_NOW
17159 # else
17160 # ifdef DL_NOW
17161 # define LT_DLLAZY_OR_NOW DL_NOW
17162 # else
17163 # define LT_DLLAZY_OR_NOW 0
17164 # endif
17165 # endif
17166 # endif
17167 # endif
17168 #endif
17170 #ifdef __cplusplus
17171 extern "C" void exit (int);
17172 #endif
17174 void fnord() { int i=42;}
17175 int main ()
17177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17178 int status = $lt_dlunknown;
17180 if (self)
17182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17183 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17184 /* dlclose (self); */
17186 else
17187 puts (dlerror ());
17189 exit (status);
17192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193 (eval $ac_link) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17197 (./conftest; exit; ) >&5 2>/dev/null
17198 lt_status=$?
17199 case x$lt_status in
17200 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17201 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17202 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17203 esac
17204 else :
17205 # compilation failed
17206 lt_cv_dlopen_self_static=no
17209 rm -fr conftest*
17213 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17214 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17217 CPPFLAGS="$save_CPPFLAGS"
17218 LDFLAGS="$save_LDFLAGS"
17219 LIBS="$save_LIBS"
17221 esac
17223 case $lt_cv_dlopen_self in
17224 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17225 *) enable_dlopen_self=unknown ;;
17226 esac
17228 case $lt_cv_dlopen_self_static in
17229 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17230 *) enable_dlopen_self_static=unknown ;;
17231 esac
17235 # Report which library types will actually be built
17236 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17237 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17238 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17239 echo "${ECHO_T}$can_build_shared" >&6; }
17241 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17242 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17243 test "$can_build_shared" = "no" && enable_shared=no
17245 # On AIX, shared libraries and static libraries use the same namespace, and
17246 # are all built from PIC.
17247 case $host_os in
17248 aix3*)
17249 test "$enable_shared" = yes && enable_static=no
17250 if test -n "$RANLIB"; then
17251 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17252 postinstall_cmds='$RANLIB $lib'
17256 aix4* | aix5*)
17257 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17258 test "$enable_shared" = yes && enable_static=no
17261 esac
17262 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17263 echo "${ECHO_T}$enable_shared" >&6; }
17265 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17266 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17267 # Make sure either enable_shared or enable_static is yes.
17268 test "$enable_shared" = yes || enable_static=yes
17269 { echo "$as_me:$LINENO: result: $enable_static" >&5
17270 echo "${ECHO_T}$enable_static" >&6; }
17272 # The else clause should only fire when bootstrapping the
17273 # libtool distribution, otherwise you forgot to ship ltmain.sh
17274 # with your package, and you will get complaints that there are
17275 # no rules to generate ltmain.sh.
17276 if test -f "$ltmain"; then
17277 # See if we are running on zsh, and set the options which allow our commands through
17278 # without removal of \ escapes.
17279 if test -n "${ZSH_VERSION+set}" ; then
17280 setopt NO_GLOB_SUBST
17282 # Now quote all the things that may contain metacharacters while being
17283 # careful not to overquote the AC_SUBSTed values. We take copies of the
17284 # variables and quote the copies for generation of the libtool script.
17285 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17286 SED SHELL STRIP \
17287 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17288 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17289 deplibs_check_method reload_flag reload_cmds need_locks \
17290 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17291 lt_cv_sys_global_symbol_to_c_name_address \
17292 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17293 old_postinstall_cmds old_postuninstall_cmds \
17294 compiler \
17295 CC \
17296 LD \
17297 lt_prog_compiler_wl \
17298 lt_prog_compiler_pic \
17299 lt_prog_compiler_static \
17300 lt_prog_compiler_no_builtin_flag \
17301 export_dynamic_flag_spec \
17302 thread_safe_flag_spec \
17303 whole_archive_flag_spec \
17304 enable_shared_with_static_runtimes \
17305 old_archive_cmds \
17306 old_archive_from_new_cmds \
17307 predep_objects \
17308 postdep_objects \
17309 predeps \
17310 postdeps \
17311 compiler_lib_search_path \
17312 archive_cmds \
17313 archive_expsym_cmds \
17314 postinstall_cmds \
17315 postuninstall_cmds \
17316 old_archive_from_expsyms_cmds \
17317 allow_undefined_flag \
17318 no_undefined_flag \
17319 export_symbols_cmds \
17320 hardcode_libdir_flag_spec \
17321 hardcode_libdir_flag_spec_ld \
17322 hardcode_libdir_separator \
17323 hardcode_automatic \
17324 module_cmds \
17325 module_expsym_cmds \
17326 lt_cv_prog_compiler_c_o \
17327 exclude_expsyms \
17328 include_expsyms; do
17330 case $var in
17331 old_archive_cmds | \
17332 old_archive_from_new_cmds | \
17333 archive_cmds | \
17334 archive_expsym_cmds | \
17335 module_cmds | \
17336 module_expsym_cmds | \
17337 old_archive_from_expsyms_cmds | \
17338 export_symbols_cmds | \
17339 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17340 postinstall_cmds | postuninstall_cmds | \
17341 old_postinstall_cmds | old_postuninstall_cmds | \
17342 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17343 # Double-quote double-evaled strings.
17344 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17347 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17349 esac
17350 done
17352 case $lt_echo in
17353 *'\$0 --fallback-echo"')
17354 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17356 esac
17358 cfgfile="${ofile}T"
17359 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17360 $rm -f "$cfgfile"
17361 { echo "$as_me:$LINENO: creating $ofile" >&5
17362 echo "$as_me: creating $ofile" >&6;}
17364 cat <<__EOF__ >> "$cfgfile"
17365 #! $SHELL
17367 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17368 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17369 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17371 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17372 # Free Software Foundation, Inc.
17374 # This file is part of GNU Libtool:
17375 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17377 # This program is free software; you can redistribute it and/or modify
17378 # it under the terms of the GNU General Public License as published by
17379 # the Free Software Foundation; either version 2 of the License, or
17380 # (at your option) any later version.
17382 # This program is distributed in the hope that it will be useful, but
17383 # WITHOUT ANY WARRANTY; without even the implied warranty of
17384 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17385 # General Public License for more details.
17387 # You should have received a copy of the GNU General Public License
17388 # along with this program; if not, write to the Free Software
17389 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17391 # As a special exception to the GNU General Public License, if you
17392 # distribute this file as part of a program that contains a
17393 # configuration script generated by Autoconf, you may include it under
17394 # the same distribution terms that you use for the rest of that program.
17396 # A sed program that does not truncate output.
17397 SED=$lt_SED
17399 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17400 Xsed="$SED -e 1s/^X//"
17402 # The HP-UX ksh and POSIX shell print the target directory to stdout
17403 # if CDPATH is set.
17404 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17406 # The names of the tagged configurations supported by this script.
17407 available_tags=
17409 # ### BEGIN LIBTOOL CONFIG
17411 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17413 # Shell to use when invoking shell scripts.
17414 SHELL=$lt_SHELL
17416 # Whether or not to build shared libraries.
17417 build_libtool_libs=$enable_shared
17419 # Whether or not to build static libraries.
17420 build_old_libs=$enable_static
17422 # Whether or not to add -lc for building shared libraries.
17423 build_libtool_need_lc=$archive_cmds_need_lc
17425 # Whether or not to disallow shared libs when runtime libs are static
17426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17428 # Whether or not to optimize for fast installation.
17429 fast_install=$enable_fast_install
17431 # The host system.
17432 host_alias=$host_alias
17433 host=$host
17434 host_os=$host_os
17436 # The build system.
17437 build_alias=$build_alias
17438 build=$build
17439 build_os=$build_os
17441 # An echo program that does not interpret backslashes.
17442 echo=$lt_echo
17444 # The archiver.
17445 AR=$lt_AR
17446 AR_FLAGS=$lt_AR_FLAGS
17448 # A C compiler.
17449 LTCC=$lt_LTCC
17451 # LTCC compiler flags.
17452 LTCFLAGS=$lt_LTCFLAGS
17454 # A language-specific compiler.
17455 CC=$lt_compiler
17457 # Is the compiler the GNU C compiler?
17458 with_gcc=$GCC
17460 # An ERE matcher.
17461 EGREP=$lt_EGREP
17463 # The linker used to build libraries.
17464 LD=$lt_LD
17466 # Whether we need hard or soft links.
17467 LN_S=$lt_LN_S
17469 # A BSD-compatible nm program.
17470 NM=$lt_NM
17472 # A symbol stripping program
17473 STRIP=$lt_STRIP
17475 # Used to examine libraries when file_magic_cmd begins "file"
17476 MAGIC_CMD=$MAGIC_CMD
17478 # Used on cygwin: DLL creation program.
17479 DLLTOOL="$DLLTOOL"
17481 # Used on cygwin: object dumper.
17482 OBJDUMP="$OBJDUMP"
17484 # Used on cygwin: assembler.
17485 AS="$AS"
17487 # The name of the directory that contains temporary libtool files.
17488 objdir=$objdir
17490 # How to create reloadable object files.
17491 reload_flag=$lt_reload_flag
17492 reload_cmds=$lt_reload_cmds
17494 # How to pass a linker flag through the compiler.
17495 wl=$lt_lt_prog_compiler_wl
17497 # Object file suffix (normally "o").
17498 objext="$ac_objext"
17500 # Old archive suffix (normally "a").
17501 libext="$libext"
17503 # Shared library suffix (normally ".so").
17504 shrext_cmds='$shrext_cmds'
17506 # Executable file suffix (normally "").
17507 exeext="$exeext"
17509 # Additional compiler flags for building library objects.
17510 pic_flag=$lt_lt_prog_compiler_pic
17511 pic_mode=$pic_mode
17513 # What is the maximum length of a command?
17514 max_cmd_len=$lt_cv_sys_max_cmd_len
17516 # Does compiler simultaneously support -c and -o options?
17517 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17519 # Must we lock files when doing compilation?
17520 need_locks=$lt_need_locks
17522 # Do we need the lib prefix for modules?
17523 need_lib_prefix=$need_lib_prefix
17525 # Do we need a version for libraries?
17526 need_version=$need_version
17528 # Whether dlopen is supported.
17529 dlopen_support=$enable_dlopen
17531 # Whether dlopen of programs is supported.
17532 dlopen_self=$enable_dlopen_self
17534 # Whether dlopen of statically linked programs is supported.
17535 dlopen_self_static=$enable_dlopen_self_static
17537 # Compiler flag to prevent dynamic linking.
17538 link_static_flag=$lt_lt_prog_compiler_static
17540 # Compiler flag to turn off builtin functions.
17541 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17543 # Compiler flag to allow reflexive dlopens.
17544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17546 # Compiler flag to generate shared objects directly from archives.
17547 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17549 # Compiler flag to generate thread-safe objects.
17550 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17552 # Library versioning type.
17553 version_type=$version_type
17555 # Format of library name prefix.
17556 libname_spec=$lt_libname_spec
17558 # List of archive names. First name is the real one, the rest are links.
17559 # The last name is the one that the linker finds with -lNAME.
17560 library_names_spec=$lt_library_names_spec
17562 # The coded name of the library, if different from the real name.
17563 soname_spec=$lt_soname_spec
17565 # Commands used to build and install an old-style archive.
17566 RANLIB=$lt_RANLIB
17567 old_archive_cmds=$lt_old_archive_cmds
17568 old_postinstall_cmds=$lt_old_postinstall_cmds
17569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17571 # Create an old-style archive from a shared archive.
17572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17574 # Create a temporary old-style archive to link instead of a shared archive.
17575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17577 # Commands used to build and install a shared archive.
17578 archive_cmds=$lt_archive_cmds
17579 archive_expsym_cmds=$lt_archive_expsym_cmds
17580 postinstall_cmds=$lt_postinstall_cmds
17581 postuninstall_cmds=$lt_postuninstall_cmds
17583 # Commands used to build a loadable module (assumed same as above if empty)
17584 module_cmds=$lt_module_cmds
17585 module_expsym_cmds=$lt_module_expsym_cmds
17587 # Commands to strip libraries.
17588 old_striplib=$lt_old_striplib
17589 striplib=$lt_striplib
17591 # Dependencies to place before the objects being linked to create a
17592 # shared library.
17593 predep_objects=$lt_predep_objects
17595 # Dependencies to place after the objects being linked to create a
17596 # shared library.
17597 postdep_objects=$lt_postdep_objects
17599 # Dependencies to place before the objects being linked to create a
17600 # shared library.
17601 predeps=$lt_predeps
17603 # Dependencies to place after the objects being linked to create a
17604 # shared library.
17605 postdeps=$lt_postdeps
17607 # The library search path used internally by the compiler when linking
17608 # a shared library.
17609 compiler_lib_search_path=$lt_compiler_lib_search_path
17611 # Method to check whether dependent libraries are shared objects.
17612 deplibs_check_method=$lt_deplibs_check_method
17614 # Command to use when deplibs_check_method == file_magic.
17615 file_magic_cmd=$lt_file_magic_cmd
17617 # Flag that allows shared libraries with undefined symbols to be built.
17618 allow_undefined_flag=$lt_allow_undefined_flag
17620 # Flag that forces no undefined symbols.
17621 no_undefined_flag=$lt_no_undefined_flag
17623 # Commands used to finish a libtool library installation in a directory.
17624 finish_cmds=$lt_finish_cmds
17626 # Same as above, but a single script fragment to be evaled but not shown.
17627 finish_eval=$lt_finish_eval
17629 # Take the output of nm and produce a listing of raw symbols and C names.
17630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17632 # Transform the output of nm in a proper C declaration
17633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17635 # Transform the output of nm in a C name address pair
17636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17638 # This is the shared library runtime path variable.
17639 runpath_var=$runpath_var
17641 # This is the shared library path variable.
17642 shlibpath_var=$shlibpath_var
17644 # Is shlibpath searched before the hard-coded library search path?
17645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17647 # How to hardcode a shared library path into an executable.
17648 hardcode_action=$hardcode_action
17650 # Whether we should hardcode library paths into libraries.
17651 hardcode_into_libs=$hardcode_into_libs
17653 # Flag to hardcode \$libdir into a binary during linking.
17654 # This must work even if \$libdir does not exist.
17655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17657 # If ld is used when linking, flag to hardcode \$libdir into
17658 # a binary during linking. This must work even if \$libdir does
17659 # not exist.
17660 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17662 # Whether we need a single -rpath flag with a separated argument.
17663 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17665 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17666 # resulting binary.
17667 hardcode_direct=$hardcode_direct
17669 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17670 # resulting binary.
17671 hardcode_minus_L=$hardcode_minus_L
17673 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17674 # the resulting binary.
17675 hardcode_shlibpath_var=$hardcode_shlibpath_var
17677 # Set to yes if building a shared library automatically hardcodes DIR into the library
17678 # and all subsequent libraries and executables linked against it.
17679 hardcode_automatic=$hardcode_automatic
17681 # Variables whose values should be saved in libtool wrapper scripts and
17682 # restored at relink time.
17683 variables_saved_for_relink="$variables_saved_for_relink"
17685 # Whether libtool must link a program against all its dependency libraries.
17686 link_all_deplibs=$link_all_deplibs
17688 # Compile-time system search path for libraries
17689 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17691 # Run-time system search path for libraries
17692 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17694 # Fix the shell variable \$srcfile for the compiler.
17695 fix_srcfile_path="$fix_srcfile_path"
17697 # Set to yes if exported symbols are required.
17698 always_export_symbols=$always_export_symbols
17700 # The commands to list exported symbols.
17701 export_symbols_cmds=$lt_export_symbols_cmds
17703 # The commands to extract the exported symbol list from a shared archive.
17704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17706 # Symbols that should not be listed in the preloaded symbols.
17707 exclude_expsyms=$lt_exclude_expsyms
17709 # Symbols that must always be exported.
17710 include_expsyms=$lt_include_expsyms
17712 # ### END LIBTOOL CONFIG
17714 __EOF__
17717 case $host_os in
17718 aix3*)
17719 cat <<\EOF >> "$cfgfile"
17721 # AIX sometimes has problems with the GCC collect2 program. For some
17722 # reason, if we set the COLLECT_NAMES environment variable, the problems
17723 # vanish in a puff of smoke.
17724 if test "X${COLLECT_NAMES+set}" != Xset; then
17725 COLLECT_NAMES=
17726 export COLLECT_NAMES
17730 esac
17732 # We use sed instead of cat because bash on DJGPP gets confused if
17733 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17734 # text mode, it properly converts lines to CR/LF. This bash problem
17735 # is reportedly fixed, but why not run on old versions too?
17736 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17738 mv -f "$cfgfile" "$ofile" || \
17739 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17740 chmod +x "$ofile"
17742 else
17743 # If there is no Makefile yet, we rely on a make rule to execute
17744 # `config.status --recheck' to rerun these tests and create the
17745 # libtool script then.
17746 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17747 if test -f "$ltmain_in"; then
17748 test -f Makefile && make "$ltmain"
17753 ac_ext=c
17754 ac_cpp='$CPP $CPPFLAGS'
17755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17759 CC="$lt_save_CC"
17762 # Check whether --with-tags was given.
17763 if test "${with_tags+set}" = set; then
17764 withval=$with_tags; tagnames="$withval"
17768 if test -f "$ltmain" && test -n "$tagnames"; then
17769 if test ! -f "${ofile}"; then
17770 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17771 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17774 if test -z "$LTCC"; then
17775 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17776 if test -z "$LTCC"; then
17777 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17778 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17779 else
17780 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17781 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17784 if test -z "$LTCFLAGS"; then
17785 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17788 # Extract list of available tagged configurations in $ofile.
17789 # Note that this assumes the entire list is on one line.
17790 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17793 for tagname in $tagnames; do
17794 IFS="$lt_save_ifs"
17795 # Check whether tagname contains only valid characters
17796 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17797 "") ;;
17798 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17799 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17800 { (exit 1); exit 1; }; }
17802 esac
17804 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17805 then
17806 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17807 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17808 { (exit 1); exit 1; }; }
17811 # Update the list of available tags.
17812 if test -n "$tagname"; then
17813 echo appending configuration tag \"$tagname\" to $ofile
17815 case $tagname in
17816 CXX)
17817 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17818 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17819 (test "X$CXX" != "Xg++"))) ; then
17820 ac_ext=cpp
17821 ac_cpp='$CXXCPP $CPPFLAGS'
17822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17829 archive_cmds_need_lc_CXX=no
17830 allow_undefined_flag_CXX=
17831 always_export_symbols_CXX=no
17832 archive_expsym_cmds_CXX=
17833 export_dynamic_flag_spec_CXX=
17834 hardcode_direct_CXX=no
17835 hardcode_libdir_flag_spec_CXX=
17836 hardcode_libdir_flag_spec_ld_CXX=
17837 hardcode_libdir_separator_CXX=
17838 hardcode_minus_L_CXX=no
17839 hardcode_shlibpath_var_CXX=unsupported
17840 hardcode_automatic_CXX=no
17841 module_cmds_CXX=
17842 module_expsym_cmds_CXX=
17843 link_all_deplibs_CXX=unknown
17844 old_archive_cmds_CXX=$old_archive_cmds
17845 no_undefined_flag_CXX=
17846 whole_archive_flag_spec_CXX=
17847 enable_shared_with_static_runtimes_CXX=no
17849 # Dependencies to place before and after the object being linked:
17850 predep_objects_CXX=
17851 postdep_objects_CXX=
17852 predeps_CXX=
17853 postdeps_CXX=
17854 compiler_lib_search_path_CXX=
17856 # Source file extension for C++ test sources.
17857 ac_ext=cpp
17859 # Object file extension for compiled C++ test sources.
17860 objext=o
17861 objext_CXX=$objext
17863 # Code to be used in simple compile tests
17864 lt_simple_compile_test_code="int some_variable = 0;\n"
17866 # Code to be used in simple link tests
17867 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17869 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17871 # If no C compiler was specified, use CC.
17872 LTCC=${LTCC-"$CC"}
17874 # If no C compiler flags were specified, use CFLAGS.
17875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17877 # Allow CC to be a program name with arguments.
17878 compiler=$CC
17881 # save warnings/boilerplate of simple test code
17882 ac_outfile=conftest.$ac_objext
17883 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17884 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17885 _lt_compiler_boilerplate=`cat conftest.err`
17886 $rm conftest*
17888 ac_outfile=conftest.$ac_objext
17889 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17890 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17891 _lt_linker_boilerplate=`cat conftest.err`
17892 $rm conftest*
17895 # Allow CC to be a program name with arguments.
17896 lt_save_CC=$CC
17897 lt_save_LD=$LD
17898 lt_save_GCC=$GCC
17899 GCC=$GXX
17900 lt_save_with_gnu_ld=$with_gnu_ld
17901 lt_save_path_LD=$lt_cv_path_LD
17902 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17903 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17904 else
17905 $as_unset lt_cv_prog_gnu_ld
17907 if test -n "${lt_cv_path_LDCXX+set}"; then
17908 lt_cv_path_LD=$lt_cv_path_LDCXX
17909 else
17910 $as_unset lt_cv_path_LD
17912 test -z "${LDCXX+set}" || LD=$LDCXX
17913 CC=${CXX-"c++"}
17914 compiler=$CC
17915 compiler_CXX=$CC
17916 for cc_temp in $compiler""; do
17917 case $cc_temp in
17918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17920 \-*) ;;
17921 *) break;;
17922 esac
17923 done
17924 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17927 # We don't want -fno-exception wen compiling C++ code, so set the
17928 # no_builtin_flag separately
17929 if test "$GXX" = yes; then
17930 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17931 else
17932 lt_prog_compiler_no_builtin_flag_CXX=
17935 if test "$GXX" = yes; then
17936 # Set up default GNU C++ configuration
17939 # Check whether --with-gnu-ld was given.
17940 if test "${with_gnu_ld+set}" = set; then
17941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17942 else
17943 with_gnu_ld=no
17946 ac_prog=ld
17947 if test "$GCC" = yes; then
17948 # Check if gcc -print-prog-name=ld gives a path.
17949 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17950 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17951 case $host in
17952 *-*-mingw*)
17953 # gcc leaves a trailing carriage return which upsets mingw
17954 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17956 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17957 esac
17958 case $ac_prog in
17959 # Accept absolute paths.
17960 [\\/]* | ?:[\\/]*)
17961 re_direlt='/[^/][^/]*/\.\./'
17962 # Canonicalize the pathname of ld
17963 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17964 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17965 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17966 done
17967 test -z "$LD" && LD="$ac_prog"
17970 # If it fails, then pretend we aren't using GCC.
17971 ac_prog=ld
17974 # If it is relative, then search for the first ld in PATH.
17975 with_gnu_ld=unknown
17977 esac
17978 elif test "$with_gnu_ld" = yes; then
17979 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17980 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17981 else
17982 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17983 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17985 if test "${lt_cv_path_LD+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988 if test -z "$LD"; then
17989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17990 for ac_dir in $PATH; do
17991 IFS="$lt_save_ifs"
17992 test -z "$ac_dir" && ac_dir=.
17993 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17994 lt_cv_path_LD="$ac_dir/$ac_prog"
17995 # Check to see if the program is GNU ld. I'd rather use --version,
17996 # but apparently some variants of GNU ld only accept -v.
17997 # Break only if it was the GNU/non-GNU ld that we prefer.
17998 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17999 *GNU* | *'with BFD'*)
18000 test "$with_gnu_ld" != no && break
18003 test "$with_gnu_ld" != yes && break
18005 esac
18007 done
18008 IFS="$lt_save_ifs"
18009 else
18010 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18014 LD="$lt_cv_path_LD"
18015 if test -n "$LD"; then
18016 { echo "$as_me:$LINENO: result: $LD" >&5
18017 echo "${ECHO_T}$LD" >&6; }
18018 else
18019 { echo "$as_me:$LINENO: result: no" >&5
18020 echo "${ECHO_T}no" >&6; }
18022 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18023 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18024 { (exit 1); exit 1; }; }
18025 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18026 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18027 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18028 echo $ECHO_N "(cached) $ECHO_C" >&6
18029 else
18030 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18031 case `$LD -v 2>&1 </dev/null` in
18032 *GNU* | *'with BFD'*)
18033 lt_cv_prog_gnu_ld=yes
18036 lt_cv_prog_gnu_ld=no
18038 esac
18040 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18041 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18042 with_gnu_ld=$lt_cv_prog_gnu_ld
18046 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18047 # archiving commands below assume that GNU ld is being used.
18048 if test "$with_gnu_ld" = yes; then
18049 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18050 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'
18052 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18053 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18055 # If archive_cmds runs LD, not CC, wlarc should be empty
18056 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18057 # investigate it a little bit more. (MM)
18058 wlarc='${wl}'
18060 # ancient GNU ld didn't support --whole-archive et. al.
18061 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18062 grep 'no-whole-archive' > /dev/null; then
18063 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18064 else
18065 whole_archive_flag_spec_CXX=
18067 else
18068 with_gnu_ld=no
18069 wlarc=
18071 # A generic and very simple default shared library creation
18072 # command for GNU C++ for the case where it uses the native
18073 # linker, instead of GNU ld. If possible, this setting should
18074 # overridden to take advantage of the native linker features on
18075 # the platform it is being used on.
18076 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18079 # Commands to make compiler produce verbose output that lists
18080 # what "hidden" libraries, object files and flags are used when
18081 # linking a shared library.
18082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18084 else
18085 GXX=no
18086 with_gnu_ld=no
18087 wlarc=
18090 # PORTME: fill in a description of your system's C++ link characteristics
18091 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18092 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18093 ld_shlibs_CXX=yes
18094 case $host_os in
18095 aix3*)
18096 # FIXME: insert proper C++ library support
18097 ld_shlibs_CXX=no
18099 aix4* | aix5*)
18100 if test "$host_cpu" = ia64; then
18101 # On IA64, the linker does run time linking by default, so we don't
18102 # have to do anything special.
18103 aix_use_runtimelinking=no
18104 exp_sym_flag='-Bexport'
18105 no_entry_flag=""
18106 else
18107 aix_use_runtimelinking=no
18109 # Test if we are trying to use run time linking or normal
18110 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18111 # need to do runtime linking.
18112 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18113 for ld_flag in $LDFLAGS; do
18114 case $ld_flag in
18115 *-brtl*)
18116 aix_use_runtimelinking=yes
18117 break
18119 esac
18120 done
18122 esac
18124 exp_sym_flag='-bexport'
18125 no_entry_flag='-bnoentry'
18128 # When large executables or shared objects are built, AIX ld can
18129 # have problems creating the table of contents. If linking a library
18130 # or program results in "error TOC overflow" add -mminimal-toc to
18131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18134 archive_cmds_CXX=''
18135 hardcode_direct_CXX=yes
18136 hardcode_libdir_separator_CXX=':'
18137 link_all_deplibs_CXX=yes
18139 if test "$GXX" = yes; then
18140 case $host_os in aix4.[012]|aix4.[012].*)
18141 # We only want to do this on AIX 4.2 and lower, the check
18142 # below for broken collect2 doesn't work under 4.3+
18143 collect2name=`${CC} -print-prog-name=collect2`
18144 if test -f "$collect2name" && \
18145 strings "$collect2name" | grep resolve_lib_name >/dev/null
18146 then
18147 # We have reworked collect2
18148 hardcode_direct_CXX=yes
18149 else
18150 # We have old collect2
18151 hardcode_direct_CXX=unsupported
18152 # It fails to find uninstalled libraries when the uninstalled
18153 # path is not listed in the libpath. Setting hardcode_minus_L
18154 # to unsupported forces relinking
18155 hardcode_minus_L_CXX=yes
18156 hardcode_libdir_flag_spec_CXX='-L$libdir'
18157 hardcode_libdir_separator_CXX=
18160 esac
18161 shared_flag='-shared'
18162 if test "$aix_use_runtimelinking" = yes; then
18163 shared_flag="$shared_flag "'${wl}-G'
18165 else
18166 # not using gcc
18167 if test "$host_cpu" = ia64; then
18168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18169 # chokes on -Wl,-G. The following line is correct:
18170 shared_flag='-G'
18171 else
18172 if test "$aix_use_runtimelinking" = yes; then
18173 shared_flag='${wl}-G'
18174 else
18175 shared_flag='${wl}-bM:SRE'
18180 # It seems that -bexpall does not export symbols beginning with
18181 # underscore (_), so it is better to generate a list of symbols to export.
18182 always_export_symbols_CXX=yes
18183 if test "$aix_use_runtimelinking" = yes; then
18184 # Warning - without using the other runtime loading flags (-brtl),
18185 # -berok will link without error, but may produce a broken library.
18186 allow_undefined_flag_CXX='-berok'
18187 # Determine the default libpath from the value encoded in an empty executable.
18188 cat >conftest.$ac_ext <<_ACEOF
18189 /* confdefs.h. */
18190 _ACEOF
18191 cat confdefs.h >>conftest.$ac_ext
18192 cat >>conftest.$ac_ext <<_ACEOF
18193 /* end confdefs.h. */
18196 main ()
18200 return 0;
18202 _ACEOF
18203 rm -f conftest.$ac_objext conftest$ac_exeext
18204 if { (ac_try="$ac_link"
18205 case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208 esac
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_link") 2>conftest.er1
18211 ac_status=$?
18212 grep -v '^ *+' conftest.er1 >conftest.err
18213 rm -f conftest.er1
18214 cat conftest.err >&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
18217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18218 { (case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18221 esac
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_try") 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; } &&
18227 { ac_try='test -s conftest$ac_exeext'
18228 { (case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18231 esac
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_try") 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18238 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18240 # Check for a 64-bit object if we didn't find anything.
18241 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; }
18242 }'`; fi
18243 else
18244 echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.$ac_ext >&5
18250 rm -f core conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
18252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18254 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18256 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"
18257 else
18258 if test "$host_cpu" = ia64; then
18259 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18260 allow_undefined_flag_CXX="-z nodefs"
18261 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"
18262 else
18263 # Determine the default libpath from the value encoded in an empty executable.
18264 cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h. */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18272 main ()
18276 return 0;
18278 _ACEOF
18279 rm -f conftest.$ac_objext conftest$ac_exeext
18280 if { (ac_try="$ac_link"
18281 case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18284 esac
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_link") 2>conftest.er1
18287 ac_status=$?
18288 grep -v '^ *+' conftest.er1 >conftest.err
18289 rm -f conftest.er1
18290 cat conftest.err >&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); } &&
18293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18294 { (case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18297 esac
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_try") 2>&5
18300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; } &&
18303 { ac_try='test -s conftest$ac_exeext'
18304 { (case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18307 esac
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_try") 2>&5
18310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18314 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18316 # Check for a 64-bit object if we didn't find anything.
18317 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; }
18318 }'`; fi
18319 else
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18326 rm -f core conftest.err conftest.$ac_objext \
18327 conftest$ac_exeext conftest.$ac_ext
18328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18330 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18331 # Warning - without using the other run time loading flags,
18332 # -berok will link without error, but may produce a broken library.
18333 no_undefined_flag_CXX=' ${wl}-bernotok'
18334 allow_undefined_flag_CXX=' ${wl}-berok'
18335 # Exported symbols can be pulled into shared objects from archives
18336 whole_archive_flag_spec_CXX='$convenience'
18337 archive_cmds_need_lc_CXX=yes
18338 # This is similar to how AIX traditionally builds its shared libraries.
18339 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'
18344 beos*)
18345 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18346 allow_undefined_flag_CXX=unsupported
18347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18348 # support --undefined. This deserves some investigation. FIXME
18349 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18350 else
18351 ld_shlibs_CXX=no
18355 chorus*)
18356 case $cc_basename in
18358 # FIXME: insert proper C++ library support
18359 ld_shlibs_CXX=no
18361 esac
18364 cygwin* | mingw* | pw32*)
18365 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18366 # as there is no search path for DLLs.
18367 hardcode_libdir_flag_spec_CXX='-L$libdir'
18368 allow_undefined_flag_CXX=unsupported
18369 always_export_symbols_CXX=no
18370 enable_shared_with_static_runtimes_CXX=yes
18372 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18373 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'
18374 # If the export-symbols file already is a .def file (1st line
18375 # is EXPORTS), use it as is; otherwise, prepend...
18376 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18377 cp $export_symbols $output_objdir/$soname.def;
18378 else
18379 echo EXPORTS > $output_objdir/$soname.def;
18380 cat $export_symbols >> $output_objdir/$soname.def;
18382 $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'
18383 else
18384 ld_shlibs_CXX=no
18387 darwin* | rhapsody*)
18388 case $host_os in
18389 rhapsody* | darwin1.[012])
18390 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18392 *) # Darwin 1.3 on
18393 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18394 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18395 else
18396 case ${MACOSX_DEPLOYMENT_TARGET} in
18397 10.[012])
18398 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18400 10.*)
18401 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18403 esac
18406 esac
18407 archive_cmds_need_lc_CXX=no
18408 hardcode_direct_CXX=no
18409 hardcode_automatic_CXX=yes
18410 hardcode_shlibpath_var_CXX=unsupported
18411 whole_archive_flag_spec_CXX=''
18412 link_all_deplibs_CXX=yes
18414 if test "$GXX" = yes ; then
18415 lt_int_apple_cc_single_mod=no
18416 output_verbose_link_cmd='echo'
18417 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18418 lt_int_apple_cc_single_mod=yes
18420 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18421 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18422 else
18423 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'
18425 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18426 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18427 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18428 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}'
18429 else
18430 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}'
18432 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}'
18433 else
18434 case $cc_basename in
18435 xlc*)
18436 output_verbose_link_cmd='echo'
18437 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'
18438 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18439 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18440 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}'
18441 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}'
18444 ld_shlibs_CXX=no
18446 esac
18450 dgux*)
18451 case $cc_basename in
18452 ec++*)
18453 # FIXME: insert proper C++ library support
18454 ld_shlibs_CXX=no
18456 ghcx*)
18457 # Green Hills C++ Compiler
18458 # FIXME: insert proper C++ library support
18459 ld_shlibs_CXX=no
18462 # FIXME: insert proper C++ library support
18463 ld_shlibs_CXX=no
18465 esac
18467 freebsd[12]*)
18468 # C++ shared libraries reported to be fairly broken before switch to ELF
18469 ld_shlibs_CXX=no
18471 freebsd-elf*)
18472 archive_cmds_need_lc_CXX=no
18474 freebsd* | kfreebsd*-gnu | dragonfly*)
18475 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18476 # conventions
18477 ld_shlibs_CXX=yes
18479 gnu*)
18481 hpux9*)
18482 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18483 hardcode_libdir_separator_CXX=:
18484 export_dynamic_flag_spec_CXX='${wl}-E'
18485 hardcode_direct_CXX=yes
18486 hardcode_minus_L_CXX=yes # Not in the search PATH,
18487 # but as the default
18488 # location of the library.
18490 case $cc_basename in
18491 CC*)
18492 # FIXME: insert proper C++ library support
18493 ld_shlibs_CXX=no
18495 aCC*)
18496 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'
18497 # Commands to make compiler produce verbose output that lists
18498 # what "hidden" libraries, object files and flags are used when
18499 # linking a shared library.
18501 # There doesn't appear to be a way to prevent this compiler from
18502 # explicitly linking system object files so we need to strip them
18503 # from the output so that they don't get included in the library
18504 # dependencies.
18505 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'
18508 if test "$GXX" = yes; then
18509 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'
18510 else
18511 # FIXME: insert proper C++ library support
18512 ld_shlibs_CXX=no
18515 esac
18517 hpux10*|hpux11*)
18518 if test $with_gnu_ld = no; then
18519 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18520 hardcode_libdir_separator_CXX=:
18522 case $host_cpu in
18523 hppa*64*|ia64*)
18524 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18527 export_dynamic_flag_spec_CXX='${wl}-E'
18529 esac
18531 case $host_cpu in
18532 hppa*64*|ia64*)
18533 hardcode_direct_CXX=no
18534 hardcode_shlibpath_var_CXX=no
18537 hardcode_direct_CXX=yes
18538 hardcode_minus_L_CXX=yes # Not in the search PATH,
18539 # but as the default
18540 # location of the library.
18542 esac
18544 case $cc_basename in
18545 CC*)
18546 # FIXME: insert proper C++ library support
18547 ld_shlibs_CXX=no
18549 aCC*)
18550 case $host_cpu in
18551 hppa*64*)
18552 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18554 ia64*)
18555 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18558 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18560 esac
18561 # Commands to make compiler produce verbose output that lists
18562 # what "hidden" libraries, object files and flags are used when
18563 # linking a shared library.
18565 # There doesn't appear to be a way to prevent this compiler from
18566 # explicitly linking system object files so we need to strip them
18567 # from the output so that they don't get included in the library
18568 # dependencies.
18569 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'
18572 if test "$GXX" = yes; then
18573 if test $with_gnu_ld = no; then
18574 case $host_cpu in
18575 hppa*64*)
18576 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18578 ia64*)
18579 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18582 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'
18584 esac
18586 else
18587 # FIXME: insert proper C++ library support
18588 ld_shlibs_CXX=no
18591 esac
18593 interix3*)
18594 hardcode_direct_CXX=no
18595 hardcode_shlibpath_var_CXX=no
18596 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18597 export_dynamic_flag_spec_CXX='${wl}-E'
18598 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18599 # Instead, shared libraries are loaded at an image base (0x10000000 by
18600 # default) and relocated if they conflict, which is a slow very memory
18601 # consuming and fragmenting process. To avoid this, we pick a random,
18602 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18603 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18604 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'
18605 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'
18607 irix5* | irix6*)
18608 case $cc_basename in
18609 CC*)
18610 # SGI C++
18611 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'
18613 # Archives containing C++ object files must be created using
18614 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18615 # necessary to make sure instantiated templates are included
18616 # in the archive.
18617 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18620 if test "$GXX" = yes; then
18621 if test "$with_gnu_ld" = no; then
18622 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'
18623 else
18624 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'
18627 link_all_deplibs_CXX=yes
18629 esac
18630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18631 hardcode_libdir_separator_CXX=:
18633 linux*)
18634 case $cc_basename in
18635 KCC*)
18636 # Kuck and Associates, Inc. (KAI) C++ Compiler
18638 # KCC will only create a shared library if the output file
18639 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18640 # to its proper name (with version) after linking.
18641 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'
18642 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'
18643 # Commands to make compiler produce verbose output that lists
18644 # what "hidden" libraries, object files and flags are used when
18645 # linking a shared library.
18647 # There doesn't appear to be a way to prevent this compiler from
18648 # explicitly linking system object files so we need to strip them
18649 # from the output so that they don't get included in the library
18650 # dependencies.
18651 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'
18653 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18656 # Archives containing C++ object files must be created using
18657 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18658 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18660 icpc*)
18661 # Intel C++
18662 with_gnu_ld=yes
18663 # version 8.0 and above of icpc choke on multiply defined symbols
18664 # if we add $predep_objects and $postdep_objects, however 7.1 and
18665 # earlier do not add the objects themselves.
18666 case `$CC -V 2>&1` in
18667 *"Version 7."*)
18668 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18669 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'
18671 *) # Version 8.0 or newer
18672 tmp_idyn=
18673 case $host_cpu in
18674 ia64*) tmp_idyn=' -i_dynamic';;
18675 esac
18676 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18677 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'
18679 esac
18680 archive_cmds_need_lc_CXX=no
18681 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18683 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18685 pgCC*)
18686 # Portland Group C++ compiler
18687 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18688 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'
18690 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18691 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18692 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'
18694 cxx*)
18695 # Compaq C++
18696 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18697 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'
18699 runpath_var=LD_RUN_PATH
18700 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18701 hardcode_libdir_separator_CXX=:
18703 # Commands to make compiler produce verbose output that lists
18704 # what "hidden" libraries, object files and flags are used when
18705 # linking a shared library.
18707 # There doesn't appear to be a way to prevent this compiler from
18708 # explicitly linking system object files so we need to strip them
18709 # from the output so that they don't get included in the library
18710 # dependencies.
18711 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'
18713 esac
18715 lynxos*)
18716 # FIXME: insert proper C++ library support
18717 ld_shlibs_CXX=no
18719 m88k*)
18720 # FIXME: insert proper C++ library support
18721 ld_shlibs_CXX=no
18723 mvs*)
18724 case $cc_basename in
18725 cxx*)
18726 # FIXME: insert proper C++ library support
18727 ld_shlibs_CXX=no
18730 # FIXME: insert proper C++ library support
18731 ld_shlibs_CXX=no
18733 esac
18735 netbsd*)
18736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18737 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18738 wlarc=
18739 hardcode_libdir_flag_spec_CXX='-R$libdir'
18740 hardcode_direct_CXX=yes
18741 hardcode_shlibpath_var_CXX=no
18743 # Workaround some broken pre-1.5 toolchains
18744 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18746 openbsd2*)
18747 # C++ shared libraries are fairly broken
18748 ld_shlibs_CXX=no
18750 openbsd*)
18751 hardcode_direct_CXX=yes
18752 hardcode_shlibpath_var_CXX=no
18753 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18754 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18756 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18757 export_dynamic_flag_spec_CXX='${wl}-E'
18758 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18760 output_verbose_link_cmd='echo'
18762 osf3*)
18763 case $cc_basename in
18764 KCC*)
18765 # Kuck and Associates, Inc. (KAI) C++ Compiler
18767 # KCC will only create a shared library if the output file
18768 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18769 # to its proper name (with version) after linking.
18770 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'
18772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18773 hardcode_libdir_separator_CXX=:
18775 # Archives containing C++ object files must be created using
18776 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18777 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18780 RCC*)
18781 # Rational C++ 2.4.1
18782 # FIXME: insert proper C++ library support
18783 ld_shlibs_CXX=no
18785 cxx*)
18786 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18787 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'
18789 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18790 hardcode_libdir_separator_CXX=:
18792 # Commands to make compiler produce verbose output that lists
18793 # what "hidden" libraries, object files and flags are used when
18794 # linking a shared library.
18796 # There doesn't appear to be a way to prevent this compiler from
18797 # explicitly linking system object files so we need to strip them
18798 # from the output so that they don't get included in the library
18799 # dependencies.
18800 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'
18803 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18804 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18805 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'
18807 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18808 hardcode_libdir_separator_CXX=:
18810 # Commands to make compiler produce verbose output that lists
18811 # what "hidden" libraries, object files and flags are used when
18812 # linking a shared library.
18813 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18815 else
18816 # FIXME: insert proper C++ library support
18817 ld_shlibs_CXX=no
18820 esac
18822 osf4* | osf5*)
18823 case $cc_basename in
18824 KCC*)
18825 # Kuck and Associates, Inc. (KAI) C++ Compiler
18827 # KCC will only create a shared library if the output file
18828 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18829 # to its proper name (with version) after linking.
18830 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'
18832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18833 hardcode_libdir_separator_CXX=:
18835 # Archives containing C++ object files must be created using
18836 # the KAI C++ compiler.
18837 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18839 RCC*)
18840 # Rational C++ 2.4.1
18841 # FIXME: insert proper C++ library support
18842 ld_shlibs_CXX=no
18844 cxx*)
18845 allow_undefined_flag_CXX=' -expect_unresolved \*'
18846 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'
18847 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18848 echo "-hidden">> $lib.exp~
18849 $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~
18850 $rm $lib.exp'
18852 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18853 hardcode_libdir_separator_CXX=:
18855 # Commands to make compiler produce verbose output that lists
18856 # what "hidden" libraries, object files and flags are used when
18857 # linking a shared library.
18859 # There doesn't appear to be a way to prevent this compiler from
18860 # explicitly linking system object files so we need to strip them
18861 # from the output so that they don't get included in the library
18862 # dependencies.
18863 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'
18866 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18867 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18868 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'
18870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18871 hardcode_libdir_separator_CXX=:
18873 # Commands to make compiler produce verbose output that lists
18874 # what "hidden" libraries, object files and flags are used when
18875 # linking a shared library.
18876 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18878 else
18879 # FIXME: insert proper C++ library support
18880 ld_shlibs_CXX=no
18883 esac
18885 psos*)
18886 # FIXME: insert proper C++ library support
18887 ld_shlibs_CXX=no
18889 sunos4*)
18890 case $cc_basename in
18891 CC*)
18892 # Sun C++ 4.x
18893 # FIXME: insert proper C++ library support
18894 ld_shlibs_CXX=no
18896 lcc*)
18897 # Lucid
18898 # FIXME: insert proper C++ library support
18899 ld_shlibs_CXX=no
18902 # FIXME: insert proper C++ library support
18903 ld_shlibs_CXX=no
18905 esac
18907 solaris*)
18908 case $cc_basename in
18909 CC*)
18910 # Sun C++ 4.2, 5.x and Centerline C++
18911 archive_cmds_need_lc_CXX=yes
18912 no_undefined_flag_CXX=' -zdefs'
18913 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18914 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18915 $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'
18917 hardcode_libdir_flag_spec_CXX='-R$libdir'
18918 hardcode_shlibpath_var_CXX=no
18919 case $host_os in
18920 solaris2.[0-5] | solaris2.[0-5].*) ;;
18922 # The C++ compiler is used as linker so we must use $wl
18923 # flag to pass the commands to the underlying system
18924 # linker. We must also pass each convience library through
18925 # to the system linker between allextract/defaultextract.
18926 # The C++ compiler will combine linker options so we
18927 # cannot just pass the convience library names through
18928 # without $wl.
18929 # Supported since Solaris 2.6 (maybe 2.5.1?)
18930 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'
18932 esac
18933 link_all_deplibs_CXX=yes
18935 output_verbose_link_cmd='echo'
18937 # Archives containing C++ object files must be created using
18938 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18939 # necessary to make sure instantiated templates are included
18940 # in the archive.
18941 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18943 gcx*)
18944 # Green Hills C++ Compiler
18945 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18947 # The C++ compiler must be used to create the archive.
18948 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18951 # GNU C++ compiler with Solaris linker
18952 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18953 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18954 if $CC --version | grep -v '^2\.7' > /dev/null; then
18955 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18956 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18957 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18959 # Commands to make compiler produce verbose output that lists
18960 # what "hidden" libraries, object files and flags are used when
18961 # linking a shared library.
18962 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18963 else
18964 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18965 # platform.
18966 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18967 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18968 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18970 # Commands to make compiler produce verbose output that lists
18971 # what "hidden" libraries, object files and flags are used when
18972 # linking a shared library.
18973 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18976 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18979 esac
18981 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18982 no_undefined_flag_CXX='${wl}-z,text'
18983 archive_cmds_need_lc_CXX=no
18984 hardcode_shlibpath_var_CXX=no
18985 runpath_var='LD_RUN_PATH'
18987 case $cc_basename in
18988 CC*)
18989 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18990 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18993 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18994 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18996 esac
18998 sysv5* | sco3.2v5* | sco5v6*)
18999 # Note: We can NOT use -z defs as we might desire, because we do not
19000 # link with -lc, and that would cause any symbols used from libc to
19001 # always be unresolved, which means just about no library would
19002 # ever link correctly. If we're not using GNU ld we use -z text
19003 # though, which does catch some bad symbols but isn't as heavy-handed
19004 # as -z defs.
19005 # For security reasons, it is highly recommended that you always
19006 # use absolute paths for naming shared libraries, and exclude the
19007 # DT_RUNPATH tag from executables and libraries. But doing so
19008 # requires that you compile everything twice, which is a pain.
19009 # So that behaviour is only enabled if SCOABSPATH is set to a
19010 # non-empty value in the environment. Most likely only useful for
19011 # creating official distributions of packages.
19012 # This is a hack until libtool officially supports absolute path
19013 # names for shared libraries.
19014 no_undefined_flag_CXX='${wl}-z,text'
19015 allow_undefined_flag_CXX='${wl}-z,nodefs'
19016 archive_cmds_need_lc_CXX=no
19017 hardcode_shlibpath_var_CXX=no
19018 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19019 hardcode_libdir_separator_CXX=':'
19020 link_all_deplibs_CXX=yes
19021 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19022 runpath_var='LD_RUN_PATH'
19024 case $cc_basename in
19025 CC*)
19026 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19027 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19030 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19031 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19033 esac
19035 tandem*)
19036 case $cc_basename in
19037 NCC*)
19038 # NonStop-UX NCC 3.20
19039 # FIXME: insert proper C++ library support
19040 ld_shlibs_CXX=no
19043 # FIXME: insert proper C++ library support
19044 ld_shlibs_CXX=no
19046 esac
19048 vxworks*)
19049 # FIXME: insert proper C++ library support
19050 ld_shlibs_CXX=no
19053 # FIXME: insert proper C++ library support
19054 ld_shlibs_CXX=no
19056 esac
19057 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19058 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19059 test "$ld_shlibs_CXX" = no && can_build_shared=no
19061 GCC_CXX="$GXX"
19062 LD_CXX="$LD"
19065 cat > conftest.$ac_ext <<EOF
19066 class Foo
19068 public:
19069 Foo (void) { a = 0; }
19070 private:
19071 int a;
19075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19076 (eval $ac_compile) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; then
19080 # Parse the compiler output and extract the necessary
19081 # objects, libraries and library flags.
19083 # Sentinel used to keep track of whether or not we are before
19084 # the conftest object file.
19085 pre_test_object_deps_done=no
19087 # The `*' in the case matches for architectures that use `case' in
19088 # $output_verbose_cmd can trigger glob expansion during the loop
19089 # eval without this substitution.
19090 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19092 for p in `eval $output_verbose_link_cmd`; do
19093 case $p in
19095 -L* | -R* | -l*)
19096 # Some compilers place space between "-{L,R}" and the path.
19097 # Remove the space.
19098 if test $p = "-L" \
19099 || test $p = "-R"; then
19100 prev=$p
19101 continue
19102 else
19103 prev=
19106 if test "$pre_test_object_deps_done" = no; then
19107 case $p in
19108 -L* | -R*)
19109 # Internal compiler library paths should come after those
19110 # provided the user. The postdeps already come after the
19111 # user supplied libs so there is no need to process them.
19112 if test -z "$compiler_lib_search_path_CXX"; then
19113 compiler_lib_search_path_CXX="${prev}${p}"
19114 else
19115 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19118 # The "-l" case would never come before the object being
19119 # linked, so don't bother handling this case.
19120 esac
19121 else
19122 if test -z "$postdeps_CXX"; then
19123 postdeps_CXX="${prev}${p}"
19124 else
19125 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19130 *.$objext)
19131 # This assumes that the test object file only shows up
19132 # once in the compiler output.
19133 if test "$p" = "conftest.$objext"; then
19134 pre_test_object_deps_done=yes
19135 continue
19138 if test "$pre_test_object_deps_done" = no; then
19139 if test -z "$predep_objects_CXX"; then
19140 predep_objects_CXX="$p"
19141 else
19142 predep_objects_CXX="$predep_objects_CXX $p"
19144 else
19145 if test -z "$postdep_objects_CXX"; then
19146 postdep_objects_CXX="$p"
19147 else
19148 postdep_objects_CXX="$postdep_objects_CXX $p"
19153 *) ;; # Ignore the rest.
19155 esac
19156 done
19158 # Clean up.
19159 rm -f a.out a.exe
19160 else
19161 echo "libtool.m4: error: problem compiling CXX test program"
19164 $rm -f confest.$objext
19166 # PORTME: override above test on systems where it is broken
19167 case $host_os in
19168 interix3*)
19169 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19170 # hack all around it, let's just trust "g++" to DTRT.
19171 predep_objects_CXX=
19172 postdep_objects_CXX=
19173 postdeps_CXX=
19176 solaris*)
19177 case $cc_basename in
19178 CC*)
19179 # Adding this requires a known-good setup of shared libraries for
19180 # Sun compiler versions before 5.6, else PIC objects from an old
19181 # archive will be linked into the output, leading to subtle bugs.
19182 postdeps_CXX='-lCstd -lCrun'
19184 esac
19186 esac
19189 case " $postdeps_CXX " in
19190 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19191 esac
19193 lt_prog_compiler_wl_CXX=
19194 lt_prog_compiler_pic_CXX=
19195 lt_prog_compiler_static_CXX=
19197 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19198 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19200 # C++ specific cases for pic, static, wl, etc.
19201 if test "$GXX" = yes; then
19202 lt_prog_compiler_wl_CXX='-Wl,'
19203 lt_prog_compiler_static_CXX='-static'
19205 case $host_os in
19206 aix*)
19207 # All AIX code is PIC.
19208 if test "$host_cpu" = ia64; then
19209 # AIX 5 now supports IA64 processor
19210 lt_prog_compiler_static_CXX='-Bstatic'
19213 amigaos*)
19214 # FIXME: we need at least 68020 code to build shared libraries, but
19215 # adding the `-m68020' flag to GCC prevents building anything better,
19216 # like `-m68040'.
19217 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19220 # PIC is the default for these OSes.
19222 mingw* | os2* | pw32*)
19223 # This hack is so that the source file can tell whether it is being
19224 # built for inclusion in a dll (and should export symbols for example).
19225 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19227 darwin* | rhapsody*)
19228 # PIC is the default on this platform
19229 # Common symbols not allowed in MH_DYLIB files
19230 lt_prog_compiler_pic_CXX='-fno-common'
19232 *djgpp*)
19233 # DJGPP does not support shared libraries at all
19234 lt_prog_compiler_pic_CXX=
19236 interix3*)
19237 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19238 # Instead, we relocate shared libraries at runtime.
19240 sysv4*MP*)
19241 if test -d /usr/nec; then
19242 lt_prog_compiler_pic_CXX=-Kconform_pic
19245 hpux*)
19246 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19247 # not for PA HP-UX.
19248 case $host_cpu in
19249 hppa*64*|ia64*)
19252 lt_prog_compiler_pic_CXX='-fPIC'
19254 esac
19257 lt_prog_compiler_pic_CXX='-fPIC'
19259 esac
19260 else
19261 case $host_os in
19262 aix4* | aix5*)
19263 # All AIX code is PIC.
19264 if test "$host_cpu" = ia64; then
19265 # AIX 5 now supports IA64 processor
19266 lt_prog_compiler_static_CXX='-Bstatic'
19267 else
19268 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19271 chorus*)
19272 case $cc_basename in
19273 cxch68*)
19274 # Green Hills C++ Compiler
19275 # _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"
19277 esac
19279 darwin*)
19280 # PIC is the default on this platform
19281 # Common symbols not allowed in MH_DYLIB files
19282 case $cc_basename in
19283 xlc*)
19284 lt_prog_compiler_pic_CXX='-qnocommon'
19285 lt_prog_compiler_wl_CXX='-Wl,'
19287 esac
19289 dgux*)
19290 case $cc_basename in
19291 ec++*)
19292 lt_prog_compiler_pic_CXX='-KPIC'
19294 ghcx*)
19295 # Green Hills C++ Compiler
19296 lt_prog_compiler_pic_CXX='-pic'
19300 esac
19302 freebsd* | kfreebsd*-gnu | dragonfly*)
19303 # FreeBSD uses GNU C++
19305 hpux9* | hpux10* | hpux11*)
19306 case $cc_basename in
19307 CC*)
19308 lt_prog_compiler_wl_CXX='-Wl,'
19309 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19310 if test "$host_cpu" != ia64; then
19311 lt_prog_compiler_pic_CXX='+Z'
19314 aCC*)
19315 lt_prog_compiler_wl_CXX='-Wl,'
19316 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19317 case $host_cpu in
19318 hppa*64*|ia64*)
19319 # +Z the default
19322 lt_prog_compiler_pic_CXX='+Z'
19324 esac
19328 esac
19330 interix*)
19331 # This is c89, which is MS Visual C++ (no shared libs)
19332 # Anyone wants to do a port?
19334 irix5* | irix6* | nonstopux*)
19335 case $cc_basename in
19336 CC*)
19337 lt_prog_compiler_wl_CXX='-Wl,'
19338 lt_prog_compiler_static_CXX='-non_shared'
19339 # CC pic flag -KPIC is the default.
19343 esac
19345 linux*)
19346 case $cc_basename in
19347 KCC*)
19348 # KAI C++ Compiler
19349 lt_prog_compiler_wl_CXX='--backend -Wl,'
19350 lt_prog_compiler_pic_CXX='-fPIC'
19352 icpc* | ecpc*)
19353 # Intel C++
19354 lt_prog_compiler_wl_CXX='-Wl,'
19355 lt_prog_compiler_pic_CXX='-KPIC'
19356 lt_prog_compiler_static_CXX='-static'
19358 pgCC*)
19359 # Portland Group C++ compiler.
19360 lt_prog_compiler_wl_CXX='-Wl,'
19361 lt_prog_compiler_pic_CXX='-fpic'
19362 lt_prog_compiler_static_CXX='-Bstatic'
19364 cxx*)
19365 # Compaq C++
19366 # Make sure the PIC flag is empty. It appears that all Alpha
19367 # Linux and Compaq Tru64 Unix objects are PIC.
19368 lt_prog_compiler_pic_CXX=
19369 lt_prog_compiler_static_CXX='-non_shared'
19373 esac
19375 lynxos*)
19377 m88k*)
19379 mvs*)
19380 case $cc_basename in
19381 cxx*)
19382 lt_prog_compiler_pic_CXX='-W c,exportall'
19386 esac
19388 netbsd*)
19390 osf3* | osf4* | osf5*)
19391 case $cc_basename in
19392 KCC*)
19393 lt_prog_compiler_wl_CXX='--backend -Wl,'
19395 RCC*)
19396 # Rational C++ 2.4.1
19397 lt_prog_compiler_pic_CXX='-pic'
19399 cxx*)
19400 # Digital/Compaq C++
19401 lt_prog_compiler_wl_CXX='-Wl,'
19402 # Make sure the PIC flag is empty. It appears that all Alpha
19403 # Linux and Compaq Tru64 Unix objects are PIC.
19404 lt_prog_compiler_pic_CXX=
19405 lt_prog_compiler_static_CXX='-non_shared'
19409 esac
19411 psos*)
19413 solaris*)
19414 case $cc_basename in
19415 CC*)
19416 # Sun C++ 4.2, 5.x and Centerline C++
19417 lt_prog_compiler_pic_CXX='-KPIC'
19418 lt_prog_compiler_static_CXX='-Bstatic'
19419 lt_prog_compiler_wl_CXX='-Qoption ld '
19421 gcx*)
19422 # Green Hills C++ Compiler
19423 lt_prog_compiler_pic_CXX='-PIC'
19427 esac
19429 sunos4*)
19430 case $cc_basename in
19431 CC*)
19432 # Sun C++ 4.x
19433 lt_prog_compiler_pic_CXX='-pic'
19434 lt_prog_compiler_static_CXX='-Bstatic'
19436 lcc*)
19437 # Lucid
19438 lt_prog_compiler_pic_CXX='-pic'
19442 esac
19444 tandem*)
19445 case $cc_basename in
19446 NCC*)
19447 # NonStop-UX NCC 3.20
19448 lt_prog_compiler_pic_CXX='-KPIC'
19452 esac
19454 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19455 case $cc_basename in
19456 CC*)
19457 lt_prog_compiler_wl_CXX='-Wl,'
19458 lt_prog_compiler_pic_CXX='-KPIC'
19459 lt_prog_compiler_static_CXX='-Bstatic'
19461 esac
19463 vxworks*)
19466 lt_prog_compiler_can_build_shared_CXX=no
19468 esac
19471 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19472 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19475 # Check to make sure the PIC flag actually works.
19477 if test -n "$lt_prog_compiler_pic_CXX"; then
19479 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19480 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19481 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19483 else
19484 lt_prog_compiler_pic_works_CXX=no
19485 ac_outfile=conftest.$ac_objext
19486 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19487 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19488 # Insert the option either (1) after the last *FLAGS variable, or
19489 # (2) before a word containing "conftest.", or (3) at the end.
19490 # Note that $ac_compile itself does not contain backslashes and begins
19491 # with a dollar sign (not a hyphen), so the echo should work correctly.
19492 # The option is referenced via a variable to avoid confusing sed.
19493 lt_compile=`echo "$ac_compile" | $SED \
19494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19496 -e 's:$: $lt_compiler_flag:'`
19497 (eval echo "\"\$as_me:19497: $lt_compile\"" >&5)
19498 (eval "$lt_compile" 2>conftest.err)
19499 ac_status=$?
19500 cat conftest.err >&5
19501 echo "$as_me:19501: \$? = $ac_status" >&5
19502 if (exit $ac_status) && test -s "$ac_outfile"; then
19503 # The compiler can only warn and ignore the option if not recognized
19504 # So say no if there are warnings other than the usual output.
19505 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19508 lt_prog_compiler_pic_works_CXX=yes
19511 $rm conftest*
19514 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19515 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19517 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19518 case $lt_prog_compiler_pic_CXX in
19519 "" | " "*) ;;
19520 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19521 esac
19522 else
19523 lt_prog_compiler_pic_CXX=
19524 lt_prog_compiler_can_build_shared_CXX=no
19528 case $host_os in
19529 # For platforms which do not support PIC, -DPIC is meaningless:
19530 *djgpp*)
19531 lt_prog_compiler_pic_CXX=
19534 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19536 esac
19539 # Check to make sure the static flag actually works.
19541 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19542 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19543 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19544 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547 lt_prog_compiler_static_works_CXX=no
19548 save_LDFLAGS="$LDFLAGS"
19549 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19550 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19552 # The linker can only warn and ignore the option if not recognized
19553 # So say no if there are warnings
19554 if test -s conftest.err; then
19555 # Append any errors to the config.log.
19556 cat conftest.err 1>&5
19557 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19559 if diff conftest.exp conftest.er2 >/dev/null; then
19560 lt_prog_compiler_static_works_CXX=yes
19562 else
19563 lt_prog_compiler_static_works_CXX=yes
19566 $rm conftest*
19567 LDFLAGS="$save_LDFLAGS"
19570 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19571 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19573 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19575 else
19576 lt_prog_compiler_static_CXX=
19580 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19581 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19582 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19584 else
19585 lt_cv_prog_compiler_c_o_CXX=no
19586 $rm -r conftest 2>/dev/null
19587 mkdir conftest
19588 cd conftest
19589 mkdir out
19590 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19592 lt_compiler_flag="-o out/conftest2.$ac_objext"
19593 # Insert the option either (1) after the last *FLAGS variable, or
19594 # (2) before a word containing "conftest.", or (3) at the end.
19595 # Note that $ac_compile itself does not contain backslashes and begins
19596 # with a dollar sign (not a hyphen), so the echo should work correctly.
19597 lt_compile=`echo "$ac_compile" | $SED \
19598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19600 -e 's:$: $lt_compiler_flag:'`
19601 (eval echo "\"\$as_me:19601: $lt_compile\"" >&5)
19602 (eval "$lt_compile" 2>out/conftest.err)
19603 ac_status=$?
19604 cat out/conftest.err >&5
19605 echo "$as_me:19605: \$? = $ac_status" >&5
19606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19607 then
19608 # The compiler can only warn and ignore the option if not recognized
19609 # So say no if there are warnings
19610 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19613 lt_cv_prog_compiler_c_o_CXX=yes
19616 chmod u+w . 2>&5
19617 $rm conftest*
19618 # SGI C++ compiler will create directory out/ii_files/ for
19619 # template instantiation
19620 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19621 $rm out/* && rmdir out
19622 cd ..
19623 rmdir conftest
19624 $rm conftest*
19627 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19628 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19631 hard_links="nottested"
19632 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19633 # do not overwrite the value of need_locks provided by the user
19634 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19635 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19636 hard_links=yes
19637 $rm conftest*
19638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19639 touch conftest.a
19640 ln conftest.a conftest.b 2>&5 || hard_links=no
19641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19642 { echo "$as_me:$LINENO: result: $hard_links" >&5
19643 echo "${ECHO_T}$hard_links" >&6; }
19644 if test "$hard_links" = no; then
19645 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19646 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19647 need_locks=warn
19649 else
19650 need_locks=no
19653 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19654 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19656 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19657 case $host_os in
19658 aix4* | aix5*)
19659 # If we're using GNU nm, then we don't want the "-C" option.
19660 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19661 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19662 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'
19663 else
19664 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'
19667 pw32*)
19668 export_symbols_cmds_CXX="$ltdll_cmds"
19670 cygwin* | mingw*)
19671 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'
19674 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19676 esac
19678 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19679 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19680 test "$ld_shlibs_CXX" = no && can_build_shared=no
19683 # Do we need to explicitly link libc?
19685 case "x$archive_cmds_need_lc_CXX" in
19686 x|xyes)
19687 # Assume -lc should be added
19688 archive_cmds_need_lc_CXX=yes
19690 if test "$enable_shared" = yes && test "$GCC" = yes; then
19691 case $archive_cmds_CXX in
19692 *'~'*)
19693 # FIXME: we may have to deal with multi-command sequences.
19695 '$CC '*)
19696 # Test whether the compiler implicitly links with -lc since on some
19697 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19698 # to ld, don't add -lc before -lgcc.
19699 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19700 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19701 $rm conftest*
19702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19705 (eval $ac_compile) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } 2>conftest.err; then
19709 soname=conftest
19710 lib=conftest
19711 libobjs=conftest.$ac_objext
19712 deplibs=
19713 wl=$lt_prog_compiler_wl_CXX
19714 pic_flag=$lt_prog_compiler_pic_CXX
19715 compiler_flags=-v
19716 linker_flags=-v
19717 verstring=
19718 output_objdir=.
19719 libname=conftest
19720 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19721 allow_undefined_flag_CXX=
19722 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19723 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }
19727 then
19728 archive_cmds_need_lc_CXX=no
19729 else
19730 archive_cmds_need_lc_CXX=yes
19732 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19733 else
19734 cat conftest.err 1>&5
19736 $rm conftest*
19737 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19738 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19740 esac
19743 esac
19745 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19746 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19747 library_names_spec=
19748 libname_spec='lib$name'
19749 soname_spec=
19750 shrext_cmds=".so"
19751 postinstall_cmds=
19752 postuninstall_cmds=
19753 finish_cmds=
19754 finish_eval=
19755 shlibpath_var=
19756 shlibpath_overrides_runpath=unknown
19757 version_type=none
19758 dynamic_linker="$host_os ld.so"
19759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19760 if test "$GCC" = yes; then
19761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19762 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19763 # if the path contains ";" then we assume it to be the separator
19764 # otherwise default to the standard path separator (i.e. ":") - it is
19765 # assumed that no part of a normal pathname contains ";" but that should
19766 # okay in the real world where ";" in dirpaths is itself problematic.
19767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19768 else
19769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19771 else
19772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19774 need_lib_prefix=unknown
19775 hardcode_into_libs=no
19777 # when you set need_version to no, make sure it does not cause -set_version
19778 # flags to be left without arguments
19779 need_version=unknown
19781 case $host_os in
19782 aix3*)
19783 version_type=linux
19784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19785 shlibpath_var=LIBPATH
19787 # AIX 3 has no versioning support, so we append a major version to the name.
19788 soname_spec='${libname}${release}${shared_ext}$major'
19791 aix4* | aix5*)
19792 version_type=linux
19793 need_lib_prefix=no
19794 need_version=no
19795 hardcode_into_libs=yes
19796 if test "$host_cpu" = ia64; then
19797 # AIX 5 supports IA64
19798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19799 shlibpath_var=LD_LIBRARY_PATH
19800 else
19801 # With GCC up to 2.95.x, collect2 would create an import file
19802 # for dependence libraries. The import file would start with
19803 # the line `#! .'. This would cause the generated library to
19804 # depend on `.', always an invalid library. This was fixed in
19805 # development snapshots of GCC prior to 3.0.
19806 case $host_os in
19807 aix4 | aix4.[01] | aix4.[01].*)
19808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19809 echo ' yes '
19810 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19812 else
19813 can_build_shared=no
19816 esac
19817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19818 # soname into executable. Probably we can add versioning support to
19819 # collect2, so additional links can be useful in future.
19820 if test "$aix_use_runtimelinking" = yes; then
19821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19822 # instead of lib<name>.a to let people know that these are not
19823 # typical AIX shared libraries.
19824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825 else
19826 # We preserve .a as extension for shared libraries through AIX4.2
19827 # and later when we are not doing run time linking.
19828 library_names_spec='${libname}${release}.a $libname.a'
19829 soname_spec='${libname}${release}${shared_ext}$major'
19831 shlibpath_var=LIBPATH
19835 amigaos*)
19836 library_names_spec='$libname.ixlibrary $libname.a'
19837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19838 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'
19841 beos*)
19842 library_names_spec='${libname}${shared_ext}'
19843 dynamic_linker="$host_os ld.so"
19844 shlibpath_var=LIBRARY_PATH
19847 bsdi[45]*)
19848 version_type=linux
19849 need_version=no
19850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19851 soname_spec='${libname}${release}${shared_ext}$major'
19852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19853 shlibpath_var=LD_LIBRARY_PATH
19854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19856 # the default ld.so.conf also contains /usr/contrib/lib and
19857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19858 # libtool to hard-code these into programs
19861 cygwin* | mingw* | pw32*)
19862 version_type=windows
19863 shrext_cmds=".dll"
19864 need_version=no
19865 need_lib_prefix=no
19867 case $GCC,$host_os in
19868 yes,cygwin* | yes,mingw* | yes,pw32*)
19869 library_names_spec='$libname.dll.a'
19870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19871 postinstall_cmds='base_file=`basename \${file}`~
19872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19873 dldir=$destdir/`dirname \$dlpath`~
19874 test -d \$dldir || mkdir -p \$dldir~
19875 $install_prog $dir/$dlname \$dldir/$dlname~
19876 chmod a+x \$dldir/$dlname'
19877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19878 dlpath=$dir/\$dldll~
19879 $rm \$dlpath'
19880 shlibpath_overrides_runpath=yes
19882 case $host_os in
19883 cygwin*)
19884 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19885 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19886 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19888 mingw*)
19889 # MinGW DLLs use traditional 'lib' prefix
19890 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19892 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19893 # It is most probably a Windows format PATH printed by
19894 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19895 # path with ; separators, and with drive letters. We can handle the
19896 # drive letters (cygwin fileutils understands them), so leave them,
19897 # especially as we might pass files found there to a mingw objdump,
19898 # which wouldn't understand a cygwinified path. Ahh.
19899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19900 else
19901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19904 pw32*)
19905 # pw32 DLLs use 'pw' prefix rather than 'lib'
19906 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19908 esac
19912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19914 esac
19915 dynamic_linker='Win32 ld.exe'
19916 # FIXME: first we should search . and the directory the executable is in
19917 shlibpath_var=PATH
19920 darwin* | rhapsody*)
19921 dynamic_linker="$host_os dyld"
19922 version_type=darwin
19923 need_lib_prefix=no
19924 need_version=no
19925 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19926 soname_spec='${libname}${release}${major}$shared_ext'
19927 shlibpath_overrides_runpath=yes
19928 shlibpath_var=DYLD_LIBRARY_PATH
19929 shrext_cmds='.dylib'
19930 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19931 if test "$GCC" = yes; then
19932 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"`
19933 else
19934 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19939 dgux*)
19940 version_type=linux
19941 need_lib_prefix=no
19942 need_version=no
19943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19944 soname_spec='${libname}${release}${shared_ext}$major'
19945 shlibpath_var=LD_LIBRARY_PATH
19948 freebsd1*)
19949 dynamic_linker=no
19952 kfreebsd*-gnu)
19953 version_type=linux
19954 need_lib_prefix=no
19955 need_version=no
19956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19957 soname_spec='${libname}${release}${shared_ext}$major'
19958 shlibpath_var=LD_LIBRARY_PATH
19959 shlibpath_overrides_runpath=no
19960 hardcode_into_libs=yes
19961 dynamic_linker='GNU ld.so'
19964 freebsd* | dragonfly*)
19965 # DragonFly does not have aout. When/if they implement a new
19966 # versioning mechanism, adjust this.
19967 if test -x /usr/bin/objformat; then
19968 objformat=`/usr/bin/objformat`
19969 else
19970 case $host_os in
19971 freebsd[123]*) objformat=aout ;;
19972 *) objformat=elf ;;
19973 esac
19975 version_type=freebsd-$objformat
19976 case $version_type in
19977 freebsd-elf*)
19978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19979 need_version=no
19980 need_lib_prefix=no
19982 freebsd-*)
19983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19984 need_version=yes
19986 esac
19987 shlibpath_var=LD_LIBRARY_PATH
19988 case $host_os in
19989 freebsd2*)
19990 shlibpath_overrides_runpath=yes
19992 freebsd3.[01]* | freebsdelf3.[01]*)
19993 shlibpath_overrides_runpath=yes
19994 hardcode_into_libs=yes
19996 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19997 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19998 shlibpath_overrides_runpath=no
19999 hardcode_into_libs=yes
20001 freebsd*) # from 4.6 on
20002 shlibpath_overrides_runpath=yes
20003 hardcode_into_libs=yes
20005 esac
20008 gnu*)
20009 version_type=linux
20010 need_lib_prefix=no
20011 need_version=no
20012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20013 soname_spec='${libname}${release}${shared_ext}$major'
20014 shlibpath_var=LD_LIBRARY_PATH
20015 hardcode_into_libs=yes
20018 hpux9* | hpux10* | hpux11*)
20019 # Give a soname corresponding to the major version so that dld.sl refuses to
20020 # link against other versions.
20021 version_type=sunos
20022 need_lib_prefix=no
20023 need_version=no
20024 case $host_cpu in
20025 ia64*)
20026 shrext_cmds='.so'
20027 hardcode_into_libs=yes
20028 dynamic_linker="$host_os dld.so"
20029 shlibpath_var=LD_LIBRARY_PATH
20030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20032 soname_spec='${libname}${release}${shared_ext}$major'
20033 if test "X$HPUX_IA64_MODE" = X32; then
20034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20035 else
20036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20040 hppa*64*)
20041 shrext_cmds='.sl'
20042 hardcode_into_libs=yes
20043 dynamic_linker="$host_os dld.sl"
20044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20047 soname_spec='${libname}${release}${shared_ext}$major'
20048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20052 shrext_cmds='.sl'
20053 dynamic_linker="$host_os dld.sl"
20054 shlibpath_var=SHLIB_PATH
20055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20057 soname_spec='${libname}${release}${shared_ext}$major'
20059 esac
20060 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20061 postinstall_cmds='chmod 555 $lib'
20064 interix3*)
20065 version_type=linux
20066 need_lib_prefix=no
20067 need_version=no
20068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20069 soname_spec='${libname}${release}${shared_ext}$major'
20070 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20071 shlibpath_var=LD_LIBRARY_PATH
20072 shlibpath_overrides_runpath=no
20073 hardcode_into_libs=yes
20076 irix5* | irix6* | nonstopux*)
20077 case $host_os in
20078 nonstopux*) version_type=nonstopux ;;
20080 if test "$lt_cv_prog_gnu_ld" = yes; then
20081 version_type=linux
20082 else
20083 version_type=irix
20084 fi ;;
20085 esac
20086 need_lib_prefix=no
20087 need_version=no
20088 soname_spec='${libname}${release}${shared_ext}$major'
20089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20090 case $host_os in
20091 irix5* | nonstopux*)
20092 libsuff= shlibsuff=
20095 case $LD in # libtool.m4 will add one of these switches to LD
20096 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20097 libsuff= shlibsuff= libmagic=32-bit;;
20098 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20099 libsuff=32 shlibsuff=N32 libmagic=N32;;
20100 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20101 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20102 *) libsuff= shlibsuff= libmagic=never-match;;
20103 esac
20105 esac
20106 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20107 shlibpath_overrides_runpath=no
20108 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20109 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20110 hardcode_into_libs=yes
20113 # No shared lib support for Linux oldld, aout, or coff.
20114 linux*oldld* | linux*aout* | linux*coff*)
20115 dynamic_linker=no
20118 # This must be Linux ELF.
20119 linux*)
20120 version_type=linux
20121 need_lib_prefix=no
20122 need_version=no
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20124 soname_spec='${libname}${release}${shared_ext}$major'
20125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20126 shlibpath_var=LD_LIBRARY_PATH
20127 shlibpath_overrides_runpath=no
20128 # This implies no fast_install, which is unacceptable.
20129 # Some rework will be needed to allow for fast_install
20130 # before this can be enabled.
20131 hardcode_into_libs=yes
20133 # Append ld.so.conf contents to the search path
20134 if test -f /etc/ld.so.conf; then
20135 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' ' '`
20136 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20139 # We used to test for /lib/ld.so.1 and disable shared libraries on
20140 # powerpc, because MkLinux only supported shared libraries with the
20141 # GNU dynamic linker. Since this was broken with cross compilers,
20142 # most powerpc-linux boxes support dynamic linking these days and
20143 # people can always --disable-shared, the test was removed, and we
20144 # assume the GNU/Linux dynamic linker is in use.
20145 dynamic_linker='GNU/Linux ld.so'
20148 knetbsd*-gnu)
20149 version_type=linux
20150 need_lib_prefix=no
20151 need_version=no
20152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20153 soname_spec='${libname}${release}${shared_ext}$major'
20154 shlibpath_var=LD_LIBRARY_PATH
20155 shlibpath_overrides_runpath=no
20156 hardcode_into_libs=yes
20157 dynamic_linker='GNU ld.so'
20160 netbsd*)
20161 version_type=sunos
20162 need_lib_prefix=no
20163 need_version=no
20164 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20167 dynamic_linker='NetBSD (a.out) ld.so'
20168 else
20169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20170 soname_spec='${libname}${release}${shared_ext}$major'
20171 dynamic_linker='NetBSD ld.elf_so'
20173 shlibpath_var=LD_LIBRARY_PATH
20174 shlibpath_overrides_runpath=yes
20175 hardcode_into_libs=yes
20178 newsos6)
20179 version_type=linux
20180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20181 shlibpath_var=LD_LIBRARY_PATH
20182 shlibpath_overrides_runpath=yes
20185 nto-qnx*)
20186 version_type=linux
20187 need_lib_prefix=no
20188 need_version=no
20189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190 soname_spec='${libname}${release}${shared_ext}$major'
20191 shlibpath_var=LD_LIBRARY_PATH
20192 shlibpath_overrides_runpath=yes
20195 openbsd*)
20196 version_type=sunos
20197 sys_lib_dlsearch_path_spec="/usr/lib"
20198 need_lib_prefix=no
20199 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20200 case $host_os in
20201 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20202 *) need_version=no ;;
20203 esac
20204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20206 shlibpath_var=LD_LIBRARY_PATH
20207 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20208 case $host_os in
20209 openbsd2.[89] | openbsd2.[89].*)
20210 shlibpath_overrides_runpath=no
20213 shlibpath_overrides_runpath=yes
20215 esac
20216 else
20217 shlibpath_overrides_runpath=yes
20221 os2*)
20222 libname_spec='$name'
20223 shrext_cmds=".dll"
20224 need_lib_prefix=no
20225 library_names_spec='$libname${shared_ext} $libname.a'
20226 dynamic_linker='OS/2 ld.exe'
20227 shlibpath_var=LIBPATH
20230 osf3* | osf4* | osf5*)
20231 version_type=osf
20232 need_lib_prefix=no
20233 need_version=no
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20236 shlibpath_var=LD_LIBRARY_PATH
20237 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20238 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20241 solaris*)
20242 version_type=linux
20243 need_lib_prefix=no
20244 need_version=no
20245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20246 soname_spec='${libname}${release}${shared_ext}$major'
20247 shlibpath_var=LD_LIBRARY_PATH
20248 shlibpath_overrides_runpath=yes
20249 hardcode_into_libs=yes
20250 # ldd complains unless libraries are executable
20251 postinstall_cmds='chmod +x $lib'
20254 sunos4*)
20255 version_type=sunos
20256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20258 shlibpath_var=LD_LIBRARY_PATH
20259 shlibpath_overrides_runpath=yes
20260 if test "$with_gnu_ld" = yes; then
20261 need_lib_prefix=no
20263 need_version=yes
20266 sysv4 | sysv4.3*)
20267 version_type=linux
20268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20269 soname_spec='${libname}${release}${shared_ext}$major'
20270 shlibpath_var=LD_LIBRARY_PATH
20271 case $host_vendor in
20272 sni)
20273 shlibpath_overrides_runpath=no
20274 need_lib_prefix=no
20275 export_dynamic_flag_spec='${wl}-Blargedynsym'
20276 runpath_var=LD_RUN_PATH
20278 siemens)
20279 need_lib_prefix=no
20281 motorola)
20282 need_lib_prefix=no
20283 need_version=no
20284 shlibpath_overrides_runpath=no
20285 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20287 esac
20290 sysv4*MP*)
20291 if test -d /usr/nec ;then
20292 version_type=linux
20293 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20294 soname_spec='$libname${shared_ext}.$major'
20295 shlibpath_var=LD_LIBRARY_PATH
20299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20300 version_type=freebsd-elf
20301 need_lib_prefix=no
20302 need_version=no
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20304 soname_spec='${libname}${release}${shared_ext}$major'
20305 shlibpath_var=LD_LIBRARY_PATH
20306 hardcode_into_libs=yes
20307 if test "$with_gnu_ld" = yes; then
20308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20309 shlibpath_overrides_runpath=no
20310 else
20311 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20312 shlibpath_overrides_runpath=yes
20313 case $host_os in
20314 sco3.2v5*)
20315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20317 esac
20319 sys_lib_dlsearch_path_spec='/usr/lib'
20322 uts4*)
20323 version_type=linux
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325 soname_spec='${libname}${release}${shared_ext}$major'
20326 shlibpath_var=LD_LIBRARY_PATH
20330 dynamic_linker=no
20332 esac
20333 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20334 echo "${ECHO_T}$dynamic_linker" >&6; }
20335 test "$dynamic_linker" = no && can_build_shared=no
20337 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20338 if test "$GCC" = yes; then
20339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20342 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20343 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20344 hardcode_action_CXX=
20345 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20346 test -n "$runpath_var_CXX" || \
20347 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20349 # We can hardcode non-existant directories.
20350 if test "$hardcode_direct_CXX" != no &&
20351 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20352 # have to relink, otherwise we might link with an installed library
20353 # when we should be linking with a yet-to-be-installed one
20354 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20355 test "$hardcode_minus_L_CXX" != no; then
20356 # Linking always hardcodes the temporary library directory.
20357 hardcode_action_CXX=relink
20358 else
20359 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20360 hardcode_action_CXX=immediate
20362 else
20363 # We cannot hardcode anything, or else we can only hardcode existing
20364 # directories.
20365 hardcode_action_CXX=unsupported
20367 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20368 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20370 if test "$hardcode_action_CXX" = relink; then
20371 # Fast installation is not supported
20372 enable_fast_install=no
20373 elif test "$shlibpath_overrides_runpath" = yes ||
20374 test "$enable_shared" = no; then
20375 # Fast installation is not necessary
20376 enable_fast_install=needless
20380 # The else clause should only fire when bootstrapping the
20381 # libtool distribution, otherwise you forgot to ship ltmain.sh
20382 # with your package, and you will get complaints that there are
20383 # no rules to generate ltmain.sh.
20384 if test -f "$ltmain"; then
20385 # See if we are running on zsh, and set the options which allow our commands through
20386 # without removal of \ escapes.
20387 if test -n "${ZSH_VERSION+set}" ; then
20388 setopt NO_GLOB_SUBST
20390 # Now quote all the things that may contain metacharacters while being
20391 # careful not to overquote the AC_SUBSTed values. We take copies of the
20392 # variables and quote the copies for generation of the libtool script.
20393 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20394 SED SHELL STRIP \
20395 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20396 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20397 deplibs_check_method reload_flag reload_cmds need_locks \
20398 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20399 lt_cv_sys_global_symbol_to_c_name_address \
20400 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20401 old_postinstall_cmds old_postuninstall_cmds \
20402 compiler_CXX \
20403 CC_CXX \
20404 LD_CXX \
20405 lt_prog_compiler_wl_CXX \
20406 lt_prog_compiler_pic_CXX \
20407 lt_prog_compiler_static_CXX \
20408 lt_prog_compiler_no_builtin_flag_CXX \
20409 export_dynamic_flag_spec_CXX \
20410 thread_safe_flag_spec_CXX \
20411 whole_archive_flag_spec_CXX \
20412 enable_shared_with_static_runtimes_CXX \
20413 old_archive_cmds_CXX \
20414 old_archive_from_new_cmds_CXX \
20415 predep_objects_CXX \
20416 postdep_objects_CXX \
20417 predeps_CXX \
20418 postdeps_CXX \
20419 compiler_lib_search_path_CXX \
20420 archive_cmds_CXX \
20421 archive_expsym_cmds_CXX \
20422 postinstall_cmds_CXX \
20423 postuninstall_cmds_CXX \
20424 old_archive_from_expsyms_cmds_CXX \
20425 allow_undefined_flag_CXX \
20426 no_undefined_flag_CXX \
20427 export_symbols_cmds_CXX \
20428 hardcode_libdir_flag_spec_CXX \
20429 hardcode_libdir_flag_spec_ld_CXX \
20430 hardcode_libdir_separator_CXX \
20431 hardcode_automatic_CXX \
20432 module_cmds_CXX \
20433 module_expsym_cmds_CXX \
20434 lt_cv_prog_compiler_c_o_CXX \
20435 exclude_expsyms_CXX \
20436 include_expsyms_CXX; do
20438 case $var in
20439 old_archive_cmds_CXX | \
20440 old_archive_from_new_cmds_CXX | \
20441 archive_cmds_CXX | \
20442 archive_expsym_cmds_CXX | \
20443 module_cmds_CXX | \
20444 module_expsym_cmds_CXX | \
20445 old_archive_from_expsyms_cmds_CXX | \
20446 export_symbols_cmds_CXX | \
20447 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20448 postinstall_cmds | postuninstall_cmds | \
20449 old_postinstall_cmds | old_postuninstall_cmds | \
20450 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20451 # Double-quote double-evaled strings.
20452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20455 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20457 esac
20458 done
20460 case $lt_echo in
20461 *'\$0 --fallback-echo"')
20462 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20464 esac
20466 cfgfile="$ofile"
20468 cat <<__EOF__ >> "$cfgfile"
20469 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20471 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20473 # Shell to use when invoking shell scripts.
20474 SHELL=$lt_SHELL
20476 # Whether or not to build shared libraries.
20477 build_libtool_libs=$enable_shared
20479 # Whether or not to build static libraries.
20480 build_old_libs=$enable_static
20482 # Whether or not to add -lc for building shared libraries.
20483 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20485 # Whether or not to disallow shared libs when runtime libs are static
20486 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20488 # Whether or not to optimize for fast installation.
20489 fast_install=$enable_fast_install
20491 # The host system.
20492 host_alias=$host_alias
20493 host=$host
20494 host_os=$host_os
20496 # The build system.
20497 build_alias=$build_alias
20498 build=$build
20499 build_os=$build_os
20501 # An echo program that does not interpret backslashes.
20502 echo=$lt_echo
20504 # The archiver.
20505 AR=$lt_AR
20506 AR_FLAGS=$lt_AR_FLAGS
20508 # A C compiler.
20509 LTCC=$lt_LTCC
20511 # LTCC compiler flags.
20512 LTCFLAGS=$lt_LTCFLAGS
20514 # A language-specific compiler.
20515 CC=$lt_compiler_CXX
20517 # Is the compiler the GNU C compiler?
20518 with_gcc=$GCC_CXX
20520 # An ERE matcher.
20521 EGREP=$lt_EGREP
20523 # The linker used to build libraries.
20524 LD=$lt_LD_CXX
20526 # Whether we need hard or soft links.
20527 LN_S=$lt_LN_S
20529 # A BSD-compatible nm program.
20530 NM=$lt_NM
20532 # A symbol stripping program
20533 STRIP=$lt_STRIP
20535 # Used to examine libraries when file_magic_cmd begins "file"
20536 MAGIC_CMD=$MAGIC_CMD
20538 # Used on cygwin: DLL creation program.
20539 DLLTOOL="$DLLTOOL"
20541 # Used on cygwin: object dumper.
20542 OBJDUMP="$OBJDUMP"
20544 # Used on cygwin: assembler.
20545 AS="$AS"
20547 # The name of the directory that contains temporary libtool files.
20548 objdir=$objdir
20550 # How to create reloadable object files.
20551 reload_flag=$lt_reload_flag
20552 reload_cmds=$lt_reload_cmds
20554 # How to pass a linker flag through the compiler.
20555 wl=$lt_lt_prog_compiler_wl_CXX
20557 # Object file suffix (normally "o").
20558 objext="$ac_objext"
20560 # Old archive suffix (normally "a").
20561 libext="$libext"
20563 # Shared library suffix (normally ".so").
20564 shrext_cmds='$shrext_cmds'
20566 # Executable file suffix (normally "").
20567 exeext="$exeext"
20569 # Additional compiler flags for building library objects.
20570 pic_flag=$lt_lt_prog_compiler_pic_CXX
20571 pic_mode=$pic_mode
20573 # What is the maximum length of a command?
20574 max_cmd_len=$lt_cv_sys_max_cmd_len
20576 # Does compiler simultaneously support -c and -o options?
20577 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20579 # Must we lock files when doing compilation?
20580 need_locks=$lt_need_locks
20582 # Do we need the lib prefix for modules?
20583 need_lib_prefix=$need_lib_prefix
20585 # Do we need a version for libraries?
20586 need_version=$need_version
20588 # Whether dlopen is supported.
20589 dlopen_support=$enable_dlopen
20591 # Whether dlopen of programs is supported.
20592 dlopen_self=$enable_dlopen_self
20594 # Whether dlopen of statically linked programs is supported.
20595 dlopen_self_static=$enable_dlopen_self_static
20597 # Compiler flag to prevent dynamic linking.
20598 link_static_flag=$lt_lt_prog_compiler_static_CXX
20600 # Compiler flag to turn off builtin functions.
20601 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20603 # Compiler flag to allow reflexive dlopens.
20604 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20606 # Compiler flag to generate shared objects directly from archives.
20607 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20609 # Compiler flag to generate thread-safe objects.
20610 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20612 # Library versioning type.
20613 version_type=$version_type
20615 # Format of library name prefix.
20616 libname_spec=$lt_libname_spec
20618 # List of archive names. First name is the real one, the rest are links.
20619 # The last name is the one that the linker finds with -lNAME.
20620 library_names_spec=$lt_library_names_spec
20622 # The coded name of the library, if different from the real name.
20623 soname_spec=$lt_soname_spec
20625 # Commands used to build and install an old-style archive.
20626 RANLIB=$lt_RANLIB
20627 old_archive_cmds=$lt_old_archive_cmds_CXX
20628 old_postinstall_cmds=$lt_old_postinstall_cmds
20629 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20631 # Create an old-style archive from a shared archive.
20632 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20634 # Create a temporary old-style archive to link instead of a shared archive.
20635 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20637 # Commands used to build and install a shared archive.
20638 archive_cmds=$lt_archive_cmds_CXX
20639 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20640 postinstall_cmds=$lt_postinstall_cmds
20641 postuninstall_cmds=$lt_postuninstall_cmds
20643 # Commands used to build a loadable module (assumed same as above if empty)
20644 module_cmds=$lt_module_cmds_CXX
20645 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20647 # Commands to strip libraries.
20648 old_striplib=$lt_old_striplib
20649 striplib=$lt_striplib
20651 # Dependencies to place before the objects being linked to create a
20652 # shared library.
20653 predep_objects=$lt_predep_objects_CXX
20655 # Dependencies to place after the objects being linked to create a
20656 # shared library.
20657 postdep_objects=$lt_postdep_objects_CXX
20659 # Dependencies to place before the objects being linked to create a
20660 # shared library.
20661 predeps=$lt_predeps_CXX
20663 # Dependencies to place after the objects being linked to create a
20664 # shared library.
20665 postdeps=$lt_postdeps_CXX
20667 # The library search path used internally by the compiler when linking
20668 # a shared library.
20669 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20671 # Method to check whether dependent libraries are shared objects.
20672 deplibs_check_method=$lt_deplibs_check_method
20674 # Command to use when deplibs_check_method == file_magic.
20675 file_magic_cmd=$lt_file_magic_cmd
20677 # Flag that allows shared libraries with undefined symbols to be built.
20678 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20680 # Flag that forces no undefined symbols.
20681 no_undefined_flag=$lt_no_undefined_flag_CXX
20683 # Commands used to finish a libtool library installation in a directory.
20684 finish_cmds=$lt_finish_cmds
20686 # Same as above, but a single script fragment to be evaled but not shown.
20687 finish_eval=$lt_finish_eval
20689 # Take the output of nm and produce a listing of raw symbols and C names.
20690 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20692 # Transform the output of nm in a proper C declaration
20693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20695 # Transform the output of nm in a C name address pair
20696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20698 # This is the shared library runtime path variable.
20699 runpath_var=$runpath_var
20701 # This is the shared library path variable.
20702 shlibpath_var=$shlibpath_var
20704 # Is shlibpath searched before the hard-coded library search path?
20705 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20707 # How to hardcode a shared library path into an executable.
20708 hardcode_action=$hardcode_action_CXX
20710 # Whether we should hardcode library paths into libraries.
20711 hardcode_into_libs=$hardcode_into_libs
20713 # Flag to hardcode \$libdir into a binary during linking.
20714 # This must work even if \$libdir does not exist.
20715 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20717 # If ld is used when linking, flag to hardcode \$libdir into
20718 # a binary during linking. This must work even if \$libdir does
20719 # not exist.
20720 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20722 # Whether we need a single -rpath flag with a separated argument.
20723 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20725 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20726 # resulting binary.
20727 hardcode_direct=$hardcode_direct_CXX
20729 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20730 # resulting binary.
20731 hardcode_minus_L=$hardcode_minus_L_CXX
20733 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20734 # the resulting binary.
20735 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20737 # Set to yes if building a shared library automatically hardcodes DIR into the library
20738 # and all subsequent libraries and executables linked against it.
20739 hardcode_automatic=$hardcode_automatic_CXX
20741 # Variables whose values should be saved in libtool wrapper scripts and
20742 # restored at relink time.
20743 variables_saved_for_relink="$variables_saved_for_relink"
20745 # Whether libtool must link a program against all its dependency libraries.
20746 link_all_deplibs=$link_all_deplibs_CXX
20748 # Compile-time system search path for libraries
20749 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20751 # Run-time system search path for libraries
20752 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20754 # Fix the shell variable \$srcfile for the compiler.
20755 fix_srcfile_path="$fix_srcfile_path_CXX"
20757 # Set to yes if exported symbols are required.
20758 always_export_symbols=$always_export_symbols_CXX
20760 # The commands to list exported symbols.
20761 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20763 # The commands to extract the exported symbol list from a shared archive.
20764 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20766 # Symbols that should not be listed in the preloaded symbols.
20767 exclude_expsyms=$lt_exclude_expsyms_CXX
20769 # Symbols that must always be exported.
20770 include_expsyms=$lt_include_expsyms_CXX
20772 # ### END LIBTOOL TAG CONFIG: $tagname
20774 __EOF__
20777 else
20778 # If there is no Makefile yet, we rely on a make rule to execute
20779 # `config.status --recheck' to rerun these tests and create the
20780 # libtool script then.
20781 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20782 if test -f "$ltmain_in"; then
20783 test -f Makefile && make "$ltmain"
20788 ac_ext=c
20789 ac_cpp='$CPP $CPPFLAGS'
20790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20794 CC=$lt_save_CC
20795 LDCXX=$LD
20796 LD=$lt_save_LD
20797 GCC=$lt_save_GCC
20798 with_gnu_ldcxx=$with_gnu_ld
20799 with_gnu_ld=$lt_save_with_gnu_ld
20800 lt_cv_path_LDCXX=$lt_cv_path_LD
20801 lt_cv_path_LD=$lt_save_path_LD
20802 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20803 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20805 else
20806 tagname=""
20810 F77)
20811 if test -n "$F77" && test "X$F77" != "Xno"; then
20813 ac_ext=f
20814 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20815 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20819 archive_cmds_need_lc_F77=no
20820 allow_undefined_flag_F77=
20821 always_export_symbols_F77=no
20822 archive_expsym_cmds_F77=
20823 export_dynamic_flag_spec_F77=
20824 hardcode_direct_F77=no
20825 hardcode_libdir_flag_spec_F77=
20826 hardcode_libdir_flag_spec_ld_F77=
20827 hardcode_libdir_separator_F77=
20828 hardcode_minus_L_F77=no
20829 hardcode_automatic_F77=no
20830 module_cmds_F77=
20831 module_expsym_cmds_F77=
20832 link_all_deplibs_F77=unknown
20833 old_archive_cmds_F77=$old_archive_cmds
20834 no_undefined_flag_F77=
20835 whole_archive_flag_spec_F77=
20836 enable_shared_with_static_runtimes_F77=no
20838 # Source file extension for f77 test sources.
20839 ac_ext=f
20841 # Object file extension for compiled f77 test sources.
20842 objext=o
20843 objext_F77=$objext
20845 # Code to be used in simple compile tests
20846 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20848 # Code to be used in simple link tests
20849 lt_simple_link_test_code=" program t\n end\n"
20851 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20853 # If no C compiler was specified, use CC.
20854 LTCC=${LTCC-"$CC"}
20856 # If no C compiler flags were specified, use CFLAGS.
20857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20859 # Allow CC to be a program name with arguments.
20860 compiler=$CC
20863 # save warnings/boilerplate of simple test code
20864 ac_outfile=conftest.$ac_objext
20865 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20867 _lt_compiler_boilerplate=`cat conftest.err`
20868 $rm conftest*
20870 ac_outfile=conftest.$ac_objext
20871 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20873 _lt_linker_boilerplate=`cat conftest.err`
20874 $rm conftest*
20877 # Allow CC to be a program name with arguments.
20878 lt_save_CC="$CC"
20879 CC=${F77-"f77"}
20880 compiler=$CC
20881 compiler_F77=$CC
20882 for cc_temp in $compiler""; do
20883 case $cc_temp in
20884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20886 \-*) ;;
20887 *) break;;
20888 esac
20889 done
20890 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20893 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20894 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20895 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20896 echo "${ECHO_T}$can_build_shared" >&6; }
20898 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20899 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20900 test "$can_build_shared" = "no" && enable_shared=no
20902 # On AIX, shared libraries and static libraries use the same namespace, and
20903 # are all built from PIC.
20904 case $host_os in
20905 aix3*)
20906 test "$enable_shared" = yes && enable_static=no
20907 if test -n "$RANLIB"; then
20908 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20909 postinstall_cmds='$RANLIB $lib'
20912 aix4* | aix5*)
20913 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20914 test "$enable_shared" = yes && enable_static=no
20917 esac
20918 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20919 echo "${ECHO_T}$enable_shared" >&6; }
20921 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20922 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20923 # Make sure either enable_shared or enable_static is yes.
20924 test "$enable_shared" = yes || enable_static=yes
20925 { echo "$as_me:$LINENO: result: $enable_static" >&5
20926 echo "${ECHO_T}$enable_static" >&6; }
20928 GCC_F77="$G77"
20929 LD_F77="$LD"
20931 lt_prog_compiler_wl_F77=
20932 lt_prog_compiler_pic_F77=
20933 lt_prog_compiler_static_F77=
20935 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20936 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20938 if test "$GCC" = yes; then
20939 lt_prog_compiler_wl_F77='-Wl,'
20940 lt_prog_compiler_static_F77='-static'
20942 case $host_os in
20943 aix*)
20944 # All AIX code is PIC.
20945 if test "$host_cpu" = ia64; then
20946 # AIX 5 now supports IA64 processor
20947 lt_prog_compiler_static_F77='-Bstatic'
20951 amigaos*)
20952 # FIXME: we need at least 68020 code to build shared libraries, but
20953 # adding the `-m68020' flag to GCC prevents building anything better,
20954 # like `-m68040'.
20955 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20958 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20959 # PIC is the default for these OSes.
20962 mingw* | pw32* | os2*)
20963 # This hack is so that the source file can tell whether it is being
20964 # built for inclusion in a dll (and should export symbols for example).
20965 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20968 darwin* | rhapsody*)
20969 # PIC is the default on this platform
20970 # Common symbols not allowed in MH_DYLIB files
20971 lt_prog_compiler_pic_F77='-fno-common'
20974 interix3*)
20975 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20976 # Instead, we relocate shared libraries at runtime.
20979 msdosdjgpp*)
20980 # Just because we use GCC doesn't mean we suddenly get shared libraries
20981 # on systems that don't support them.
20982 lt_prog_compiler_can_build_shared_F77=no
20983 enable_shared=no
20986 sysv4*MP*)
20987 if test -d /usr/nec; then
20988 lt_prog_compiler_pic_F77=-Kconform_pic
20992 hpux*)
20993 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20994 # not for PA HP-UX.
20995 case $host_cpu in
20996 hppa*64*|ia64*)
20997 # +Z the default
21000 lt_prog_compiler_pic_F77='-fPIC'
21002 esac
21006 lt_prog_compiler_pic_F77='-fPIC'
21008 esac
21009 else
21010 # PORTME Check for flag to pass linker flags through the system compiler.
21011 case $host_os in
21012 aix*)
21013 lt_prog_compiler_wl_F77='-Wl,'
21014 if test "$host_cpu" = ia64; then
21015 # AIX 5 now supports IA64 processor
21016 lt_prog_compiler_static_F77='-Bstatic'
21017 else
21018 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21021 darwin*)
21022 # PIC is the default on this platform
21023 # Common symbols not allowed in MH_DYLIB files
21024 case $cc_basename in
21025 xlc*)
21026 lt_prog_compiler_pic_F77='-qnocommon'
21027 lt_prog_compiler_wl_F77='-Wl,'
21029 esac
21032 mingw* | pw32* | os2*)
21033 # This hack is so that the source file can tell whether it is being
21034 # built for inclusion in a dll (and should export symbols for example).
21035 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21038 hpux9* | hpux10* | hpux11*)
21039 lt_prog_compiler_wl_F77='-Wl,'
21040 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21041 # not for PA HP-UX.
21042 case $host_cpu in
21043 hppa*64*|ia64*)
21044 # +Z the default
21047 lt_prog_compiler_pic_F77='+Z'
21049 esac
21050 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21051 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21054 irix5* | irix6* | nonstopux*)
21055 lt_prog_compiler_wl_F77='-Wl,'
21056 # PIC (with -KPIC) is the default.
21057 lt_prog_compiler_static_F77='-non_shared'
21060 newsos6)
21061 lt_prog_compiler_pic_F77='-KPIC'
21062 lt_prog_compiler_static_F77='-Bstatic'
21065 linux*)
21066 case $cc_basename in
21067 icc* | ecc*)
21068 lt_prog_compiler_wl_F77='-Wl,'
21069 lt_prog_compiler_pic_F77='-KPIC'
21070 lt_prog_compiler_static_F77='-static'
21072 pgcc* | pgf77* | pgf90* | pgf95*)
21073 # Portland Group compilers (*not* the Pentium gcc compiler,
21074 # which looks to be a dead project)
21075 lt_prog_compiler_wl_F77='-Wl,'
21076 lt_prog_compiler_pic_F77='-fpic'
21077 lt_prog_compiler_static_F77='-Bstatic'
21079 ccc*)
21080 lt_prog_compiler_wl_F77='-Wl,'
21081 # All Alpha code is PIC.
21082 lt_prog_compiler_static_F77='-non_shared'
21084 esac
21087 osf3* | osf4* | osf5*)
21088 lt_prog_compiler_wl_F77='-Wl,'
21089 # All OSF/1 code is PIC.
21090 lt_prog_compiler_static_F77='-non_shared'
21093 solaris*)
21094 lt_prog_compiler_pic_F77='-KPIC'
21095 lt_prog_compiler_static_F77='-Bstatic'
21096 case $cc_basename in
21097 f77* | f90* | f95*)
21098 lt_prog_compiler_wl_F77='-Qoption ld ';;
21100 lt_prog_compiler_wl_F77='-Wl,';;
21101 esac
21104 sunos4*)
21105 lt_prog_compiler_wl_F77='-Qoption ld '
21106 lt_prog_compiler_pic_F77='-PIC'
21107 lt_prog_compiler_static_F77='-Bstatic'
21110 sysv4 | sysv4.2uw2* | sysv4.3*)
21111 lt_prog_compiler_wl_F77='-Wl,'
21112 lt_prog_compiler_pic_F77='-KPIC'
21113 lt_prog_compiler_static_F77='-Bstatic'
21116 sysv4*MP*)
21117 if test -d /usr/nec ;then
21118 lt_prog_compiler_pic_F77='-Kconform_pic'
21119 lt_prog_compiler_static_F77='-Bstatic'
21123 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21124 lt_prog_compiler_wl_F77='-Wl,'
21125 lt_prog_compiler_pic_F77='-KPIC'
21126 lt_prog_compiler_static_F77='-Bstatic'
21129 unicos*)
21130 lt_prog_compiler_wl_F77='-Wl,'
21131 lt_prog_compiler_can_build_shared_F77=no
21134 uts4*)
21135 lt_prog_compiler_pic_F77='-pic'
21136 lt_prog_compiler_static_F77='-Bstatic'
21140 lt_prog_compiler_can_build_shared_F77=no
21142 esac
21145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21146 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21149 # Check to make sure the PIC flag actually works.
21151 if test -n "$lt_prog_compiler_pic_F77"; then
21153 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21154 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21155 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 else
21158 lt_prog_compiler_pic_works_F77=no
21159 ac_outfile=conftest.$ac_objext
21160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21161 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21162 # Insert the option either (1) after the last *FLAGS variable, or
21163 # (2) before a word containing "conftest.", or (3) at the end.
21164 # Note that $ac_compile itself does not contain backslashes and begins
21165 # with a dollar sign (not a hyphen), so the echo should work correctly.
21166 # The option is referenced via a variable to avoid confusing sed.
21167 lt_compile=`echo "$ac_compile" | $SED \
21168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21170 -e 's:$: $lt_compiler_flag:'`
21171 (eval echo "\"\$as_me:21171: $lt_compile\"" >&5)
21172 (eval "$lt_compile" 2>conftest.err)
21173 ac_status=$?
21174 cat conftest.err >&5
21175 echo "$as_me:21175: \$? = $ac_status" >&5
21176 if (exit $ac_status) && test -s "$ac_outfile"; then
21177 # The compiler can only warn and ignore the option if not recognized
21178 # So say no if there are warnings other than the usual output.
21179 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21181 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21182 lt_prog_compiler_pic_works_F77=yes
21185 $rm conftest*
21188 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21189 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21191 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21192 case $lt_prog_compiler_pic_F77 in
21193 "" | " "*) ;;
21194 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21195 esac
21196 else
21197 lt_prog_compiler_pic_F77=
21198 lt_prog_compiler_can_build_shared_F77=no
21202 case $host_os in
21203 # For platforms which do not support PIC, -DPIC is meaningless:
21204 *djgpp*)
21205 lt_prog_compiler_pic_F77=
21208 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21210 esac
21213 # Check to make sure the static flag actually works.
21215 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21216 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21217 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21218 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21220 else
21221 lt_prog_compiler_static_works_F77=no
21222 save_LDFLAGS="$LDFLAGS"
21223 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21224 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21225 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21226 # The linker can only warn and ignore the option if not recognized
21227 # So say no if there are warnings
21228 if test -s conftest.err; then
21229 # Append any errors to the config.log.
21230 cat conftest.err 1>&5
21231 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21233 if diff conftest.exp conftest.er2 >/dev/null; then
21234 lt_prog_compiler_static_works_F77=yes
21236 else
21237 lt_prog_compiler_static_works_F77=yes
21240 $rm conftest*
21241 LDFLAGS="$save_LDFLAGS"
21244 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21245 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21247 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21249 else
21250 lt_prog_compiler_static_F77=
21254 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21255 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21256 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21258 else
21259 lt_cv_prog_compiler_c_o_F77=no
21260 $rm -r conftest 2>/dev/null
21261 mkdir conftest
21262 cd conftest
21263 mkdir out
21264 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21266 lt_compiler_flag="-o out/conftest2.$ac_objext"
21267 # Insert the option either (1) after the last *FLAGS variable, or
21268 # (2) before a word containing "conftest.", or (3) at the end.
21269 # Note that $ac_compile itself does not contain backslashes and begins
21270 # with a dollar sign (not a hyphen), so the echo should work correctly.
21271 lt_compile=`echo "$ac_compile" | $SED \
21272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21274 -e 's:$: $lt_compiler_flag:'`
21275 (eval echo "\"\$as_me:21275: $lt_compile\"" >&5)
21276 (eval "$lt_compile" 2>out/conftest.err)
21277 ac_status=$?
21278 cat out/conftest.err >&5
21279 echo "$as_me:21279: \$? = $ac_status" >&5
21280 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21281 then
21282 # The compiler can only warn and ignore the option if not recognized
21283 # So say no if there are warnings
21284 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21285 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21286 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21287 lt_cv_prog_compiler_c_o_F77=yes
21290 chmod u+w . 2>&5
21291 $rm conftest*
21292 # SGI C++ compiler will create directory out/ii_files/ for
21293 # template instantiation
21294 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21295 $rm out/* && rmdir out
21296 cd ..
21297 rmdir conftest
21298 $rm conftest*
21301 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21302 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21305 hard_links="nottested"
21306 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21307 # do not overwrite the value of need_locks provided by the user
21308 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21309 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21310 hard_links=yes
21311 $rm conftest*
21312 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21313 touch conftest.a
21314 ln conftest.a conftest.b 2>&5 || hard_links=no
21315 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21316 { echo "$as_me:$LINENO: result: $hard_links" >&5
21317 echo "${ECHO_T}$hard_links" >&6; }
21318 if test "$hard_links" = no; then
21319 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21320 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21321 need_locks=warn
21323 else
21324 need_locks=no
21327 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21328 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21330 runpath_var=
21331 allow_undefined_flag_F77=
21332 enable_shared_with_static_runtimes_F77=no
21333 archive_cmds_F77=
21334 archive_expsym_cmds_F77=
21335 old_archive_From_new_cmds_F77=
21336 old_archive_from_expsyms_cmds_F77=
21337 export_dynamic_flag_spec_F77=
21338 whole_archive_flag_spec_F77=
21339 thread_safe_flag_spec_F77=
21340 hardcode_libdir_flag_spec_F77=
21341 hardcode_libdir_flag_spec_ld_F77=
21342 hardcode_libdir_separator_F77=
21343 hardcode_direct_F77=no
21344 hardcode_minus_L_F77=no
21345 hardcode_shlibpath_var_F77=unsupported
21346 link_all_deplibs_F77=unknown
21347 hardcode_automatic_F77=no
21348 module_cmds_F77=
21349 module_expsym_cmds_F77=
21350 always_export_symbols_F77=no
21351 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21352 # include_expsyms should be a list of space-separated symbols to be *always*
21353 # included in the symbol list
21354 include_expsyms_F77=
21355 # exclude_expsyms can be an extended regexp of symbols to exclude
21356 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21357 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21358 # as well as any symbol that contains `d'.
21359 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21360 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21361 # platforms (ab)use it in PIC code, but their linkers get confused if
21362 # the symbol is explicitly referenced. Since portable code cannot
21363 # rely on this symbol name, it's probably fine to never include it in
21364 # preloaded symbol tables.
21365 extract_expsyms_cmds=
21366 # Just being paranoid about ensuring that cc_basename is set.
21367 for cc_temp in $compiler""; do
21368 case $cc_temp in
21369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21371 \-*) ;;
21372 *) break;;
21373 esac
21374 done
21375 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21377 case $host_os in
21378 cygwin* | mingw* | pw32*)
21379 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21380 # When not using gcc, we currently assume that we are using
21381 # Microsoft Visual C++.
21382 if test "$GCC" != yes; then
21383 with_gnu_ld=no
21386 interix*)
21387 # we just hope/assume this is gcc and not c89 (= MSVC++)
21388 with_gnu_ld=yes
21390 openbsd*)
21391 with_gnu_ld=no
21393 esac
21395 ld_shlibs_F77=yes
21396 if test "$with_gnu_ld" = yes; then
21397 # If archive_cmds runs LD, not CC, wlarc should be empty
21398 wlarc='${wl}'
21400 # Set some defaults for GNU ld with shared library support. These
21401 # are reset later if shared libraries are not supported. Putting them
21402 # here allows them to be overridden if necessary.
21403 runpath_var=LD_RUN_PATH
21404 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21405 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21406 # ancient GNU ld didn't support --whole-archive et. al.
21407 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21408 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21409 else
21410 whole_archive_flag_spec_F77=
21412 supports_anon_versioning=no
21413 case `$LD -v 2>/dev/null` in
21414 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21415 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21416 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21417 *\ 2.11.*) ;; # other 2.11 versions
21418 *) supports_anon_versioning=yes ;;
21419 esac
21421 # See if GNU ld supports shared libraries.
21422 case $host_os in
21423 aix3* | aix4* | aix5*)
21424 # On AIX/PPC, the GNU linker is very broken
21425 if test "$host_cpu" != ia64; then
21426 ld_shlibs_F77=no
21427 cat <<EOF 1>&2
21429 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21430 *** to be unable to reliably create shared libraries on AIX.
21431 *** Therefore, libtool is disabling shared libraries support. If you
21432 *** really care for shared libraries, you may want to modify your PATH
21433 *** so that a non-GNU linker is found, and then restart.
21439 amigaos*)
21440 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)'
21441 hardcode_libdir_flag_spec_F77='-L$libdir'
21442 hardcode_minus_L_F77=yes
21444 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21445 # that the semantics of dynamic libraries on AmigaOS, at least up
21446 # to version 4, is to share data among multiple programs linked
21447 # with the same dynamic library. Since this doesn't match the
21448 # behavior of shared libraries on other platforms, we can't use
21449 # them.
21450 ld_shlibs_F77=no
21453 beos*)
21454 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21455 allow_undefined_flag_F77=unsupported
21456 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21457 # support --undefined. This deserves some investigation. FIXME
21458 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21459 else
21460 ld_shlibs_F77=no
21464 cygwin* | mingw* | pw32*)
21465 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21466 # as there is no search path for DLLs.
21467 hardcode_libdir_flag_spec_F77='-L$libdir'
21468 allow_undefined_flag_F77=unsupported
21469 always_export_symbols_F77=no
21470 enable_shared_with_static_runtimes_F77=yes
21471 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21473 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21474 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21475 # If the export-symbols file already is a .def file (1st line
21476 # is EXPORTS), use it as is; otherwise, prepend...
21477 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21478 cp $export_symbols $output_objdir/$soname.def;
21479 else
21480 echo EXPORTS > $output_objdir/$soname.def;
21481 cat $export_symbols >> $output_objdir/$soname.def;
21483 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21484 else
21485 ld_shlibs_F77=no
21489 interix3*)
21490 hardcode_direct_F77=no
21491 hardcode_shlibpath_var_F77=no
21492 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21493 export_dynamic_flag_spec_F77='${wl}-E'
21494 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21495 # Instead, shared libraries are loaded at an image base (0x10000000 by
21496 # default) and relocated if they conflict, which is a slow very memory
21497 # consuming and fragmenting process. To avoid this, we pick a random,
21498 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21499 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21500 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'
21501 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'
21504 linux*)
21505 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21506 tmp_addflag=
21507 case $cc_basename,$host_cpu in
21508 pgcc*) # Portland Group C compiler
21509 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'
21510 tmp_addflag=' $pic_flag'
21512 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21513 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'
21514 tmp_addflag=' $pic_flag -Mnomain' ;;
21515 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21516 tmp_addflag=' -i_dynamic' ;;
21517 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21518 tmp_addflag=' -i_dynamic -nofor_main' ;;
21519 ifc* | ifort*) # Intel Fortran compiler
21520 tmp_addflag=' -nofor_main' ;;
21521 esac
21522 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21524 if test $supports_anon_versioning = yes; then
21525 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21526 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21527 $echo "local: *; };" >> $output_objdir/$libname.ver~
21528 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21530 else
21531 ld_shlibs_F77=no
21535 netbsd*)
21536 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21537 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21538 wlarc=
21539 else
21540 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21541 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21545 solaris*)
21546 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21547 ld_shlibs_F77=no
21548 cat <<EOF 1>&2
21550 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21551 *** create shared libraries on Solaris systems. Therefore, libtool
21552 *** is disabling shared libraries support. We urge you to upgrade GNU
21553 *** binutils to release 2.9.1 or newer. Another option is to modify
21554 *** your PATH or compiler configuration so that the native linker is
21555 *** used, and then restart.
21558 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21559 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21560 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21561 else
21562 ld_shlibs_F77=no
21566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21567 case `$LD -v 2>&1` in
21568 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21569 ld_shlibs_F77=no
21570 cat <<_LT_EOF 1>&2
21572 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21573 *** reliably create shared libraries on SCO systems. Therefore, libtool
21574 *** is disabling shared libraries support. We urge you to upgrade GNU
21575 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21576 *** your PATH or compiler configuration so that the native linker is
21577 *** used, and then restart.
21579 _LT_EOF
21582 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21583 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21584 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21585 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21586 else
21587 ld_shlibs_F77=no
21590 esac
21593 sunos4*)
21594 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21595 wlarc=
21596 hardcode_direct_F77=yes
21597 hardcode_shlibpath_var_F77=no
21601 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21602 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21603 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21604 else
21605 ld_shlibs_F77=no
21608 esac
21610 if test "$ld_shlibs_F77" = no; then
21611 runpath_var=
21612 hardcode_libdir_flag_spec_F77=
21613 export_dynamic_flag_spec_F77=
21614 whole_archive_flag_spec_F77=
21616 else
21617 # PORTME fill in a description of your system's linker (not GNU ld)
21618 case $host_os in
21619 aix3*)
21620 allow_undefined_flag_F77=unsupported
21621 always_export_symbols_F77=yes
21622 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'
21623 # Note: this linker hardcodes the directories in LIBPATH if there
21624 # are no directories specified by -L.
21625 hardcode_minus_L_F77=yes
21626 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21627 # Neither direct hardcoding nor static linking is supported with a
21628 # broken collect2.
21629 hardcode_direct_F77=unsupported
21633 aix4* | aix5*)
21634 if test "$host_cpu" = ia64; then
21635 # On IA64, the linker does run time linking by default, so we don't
21636 # have to do anything special.
21637 aix_use_runtimelinking=no
21638 exp_sym_flag='-Bexport'
21639 no_entry_flag=""
21640 else
21641 # If we're using GNU nm, then we don't want the "-C" option.
21642 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21643 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21644 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'
21645 else
21646 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'
21648 aix_use_runtimelinking=no
21650 # Test if we are trying to use run time linking or normal
21651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21652 # need to do runtime linking.
21653 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21654 for ld_flag in $LDFLAGS; do
21655 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21656 aix_use_runtimelinking=yes
21657 break
21659 done
21661 esac
21663 exp_sym_flag='-bexport'
21664 no_entry_flag='-bnoentry'
21667 # When large executables or shared objects are built, AIX ld can
21668 # have problems creating the table of contents. If linking a library
21669 # or program results in "error TOC overflow" add -mminimal-toc to
21670 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21671 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21673 archive_cmds_F77=''
21674 hardcode_direct_F77=yes
21675 hardcode_libdir_separator_F77=':'
21676 link_all_deplibs_F77=yes
21678 if test "$GCC" = yes; then
21679 case $host_os in aix4.[012]|aix4.[012].*)
21680 # We only want to do this on AIX 4.2 and lower, the check
21681 # below for broken collect2 doesn't work under 4.3+
21682 collect2name=`${CC} -print-prog-name=collect2`
21683 if test -f "$collect2name" && \
21684 strings "$collect2name" | grep resolve_lib_name >/dev/null
21685 then
21686 # We have reworked collect2
21687 hardcode_direct_F77=yes
21688 else
21689 # We have old collect2
21690 hardcode_direct_F77=unsupported
21691 # It fails to find uninstalled libraries when the uninstalled
21692 # path is not listed in the libpath. Setting hardcode_minus_L
21693 # to unsupported forces relinking
21694 hardcode_minus_L_F77=yes
21695 hardcode_libdir_flag_spec_F77='-L$libdir'
21696 hardcode_libdir_separator_F77=
21699 esac
21700 shared_flag='-shared'
21701 if test "$aix_use_runtimelinking" = yes; then
21702 shared_flag="$shared_flag "'${wl}-G'
21704 else
21705 # not using gcc
21706 if test "$host_cpu" = ia64; then
21707 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21708 # chokes on -Wl,-G. The following line is correct:
21709 shared_flag='-G'
21710 else
21711 if test "$aix_use_runtimelinking" = yes; then
21712 shared_flag='${wl}-G'
21713 else
21714 shared_flag='${wl}-bM:SRE'
21719 # It seems that -bexpall does not export symbols beginning with
21720 # underscore (_), so it is better to generate a list of symbols to export.
21721 always_export_symbols_F77=yes
21722 if test "$aix_use_runtimelinking" = yes; then
21723 # Warning - without using the other runtime loading flags (-brtl),
21724 # -berok will link without error, but may produce a broken library.
21725 allow_undefined_flag_F77='-berok'
21726 # Determine the default libpath from the value encoded in an empty executable.
21727 cat >conftest.$ac_ext <<_ACEOF
21728 program main
21731 _ACEOF
21732 rm -f conftest.$ac_objext conftest$ac_exeext
21733 if { (ac_try="$ac_link"
21734 case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21737 esac
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_link") 2>conftest.er1
21740 ac_status=$?
21741 grep -v '^ *+' conftest.er1 >conftest.err
21742 rm -f conftest.er1
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } &&
21746 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21747 { (case "(($ac_try" in
21748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21749 *) ac_try_echo=$ac_try;;
21750 esac
21751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21752 (eval "$ac_try") 2>&5
21753 ac_status=$?
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); }; } &&
21756 { ac_try='test -s conftest$ac_exeext'
21757 { (case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21760 esac
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762 (eval "$ac_try") 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21769 # Check for a 64-bit object if we didn't find anything.
21770 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; }
21771 }'`; fi
21772 else
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21779 rm -f core conftest.err conftest.$ac_objext \
21780 conftest$ac_exeext conftest.$ac_ext
21781 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21783 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21784 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"
21785 else
21786 if test "$host_cpu" = ia64; then
21787 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21788 allow_undefined_flag_F77="-z nodefs"
21789 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"
21790 else
21791 # Determine the default libpath from the value encoded in an empty executable.
21792 cat >conftest.$ac_ext <<_ACEOF
21793 program main
21796 _ACEOF
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802 esac
21803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_link") 2>conftest.er1
21805 ac_status=$?
21806 grep -v '^ *+' conftest.er1 >conftest.err
21807 rm -f conftest.er1
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); } &&
21811 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21812 { (case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21815 esac
21816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817 (eval "$ac_try") 2>&5
21818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; } &&
21821 { ac_try='test -s conftest$ac_exeext'
21822 { (case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21825 esac
21826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_try") 2>&5
21828 ac_status=$?
21829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21830 (exit $ac_status); }; }; then
21832 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21834 # Check for a 64-bit object if we didn't find anything.
21835 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; }
21836 }'`; fi
21837 else
21838 echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21844 rm -f core conftest.err conftest.$ac_objext \
21845 conftest$ac_exeext conftest.$ac_ext
21846 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21848 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21849 # Warning - without using the other run time loading flags,
21850 # -berok will link without error, but may produce a broken library.
21851 no_undefined_flag_F77=' ${wl}-bernotok'
21852 allow_undefined_flag_F77=' ${wl}-berok'
21853 # Exported symbols can be pulled into shared objects from archives
21854 whole_archive_flag_spec_F77='$convenience'
21855 archive_cmds_need_lc_F77=yes
21856 # This is similar to how AIX traditionally builds its shared libraries.
21857 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'
21862 amigaos*)
21863 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)'
21864 hardcode_libdir_flag_spec_F77='-L$libdir'
21865 hardcode_minus_L_F77=yes
21866 # see comment about different semantics on the GNU ld section
21867 ld_shlibs_F77=no
21870 bsdi[45]*)
21871 export_dynamic_flag_spec_F77=-rdynamic
21874 cygwin* | mingw* | pw32*)
21875 # When not using gcc, we currently assume that we are using
21876 # Microsoft Visual C++.
21877 # hardcode_libdir_flag_spec is actually meaningless, as there is
21878 # no search path for DLLs.
21879 hardcode_libdir_flag_spec_F77=' '
21880 allow_undefined_flag_F77=unsupported
21881 # Tell ltmain to make .lib files, not .a files.
21882 libext=lib
21883 # Tell ltmain to make .dll files, not .so files.
21884 shrext_cmds=".dll"
21885 # FIXME: Setting linknames here is a bad hack.
21886 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21887 # The linker will automatically build a .lib file if we build a DLL.
21888 old_archive_From_new_cmds_F77='true'
21889 # FIXME: Should let the user specify the lib program.
21890 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21891 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21892 enable_shared_with_static_runtimes_F77=yes
21895 darwin* | rhapsody*)
21896 case $host_os in
21897 rhapsody* | darwin1.[012])
21898 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21900 *) # Darwin 1.3 on
21901 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21902 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21903 else
21904 case ${MACOSX_DEPLOYMENT_TARGET} in
21905 10.[012])
21906 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21908 10.*)
21909 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21911 esac
21914 esac
21915 archive_cmds_need_lc_F77=no
21916 hardcode_direct_F77=no
21917 hardcode_automatic_F77=yes
21918 hardcode_shlibpath_var_F77=unsupported
21919 whole_archive_flag_spec_F77=''
21920 link_all_deplibs_F77=yes
21921 if test "$GCC" = yes ; then
21922 output_verbose_link_cmd='echo'
21923 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21924 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21925 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21926 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}'
21927 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}'
21928 else
21929 case $cc_basename in
21930 xlc*)
21931 output_verbose_link_cmd='echo'
21932 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21933 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21934 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21935 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}'
21936 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}'
21939 ld_shlibs_F77=no
21941 esac
21945 dgux*)
21946 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21947 hardcode_libdir_flag_spec_F77='-L$libdir'
21948 hardcode_shlibpath_var_F77=no
21951 freebsd1*)
21952 ld_shlibs_F77=no
21955 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21956 # support. Future versions do this automatically, but an explicit c++rt0.o
21957 # does not break anything, and helps significantly (at the cost of a little
21958 # extra space).
21959 freebsd2.2*)
21960 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21961 hardcode_libdir_flag_spec_F77='-R$libdir'
21962 hardcode_direct_F77=yes
21963 hardcode_shlibpath_var_F77=no
21966 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21967 freebsd2*)
21968 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21969 hardcode_direct_F77=yes
21970 hardcode_minus_L_F77=yes
21971 hardcode_shlibpath_var_F77=no
21974 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21975 freebsd* | kfreebsd*-gnu | dragonfly*)
21976 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21977 hardcode_libdir_flag_spec_F77='-R$libdir'
21978 hardcode_direct_F77=yes
21979 hardcode_shlibpath_var_F77=no
21982 hpux9*)
21983 if test "$GCC" = yes; then
21984 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'
21985 else
21986 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'
21988 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21989 hardcode_libdir_separator_F77=:
21990 hardcode_direct_F77=yes
21992 # hardcode_minus_L: Not really in the search PATH,
21993 # but as the default location of the library.
21994 hardcode_minus_L_F77=yes
21995 export_dynamic_flag_spec_F77='${wl}-E'
21998 hpux10*)
21999 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22000 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22001 else
22002 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22004 if test "$with_gnu_ld" = no; then
22005 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22006 hardcode_libdir_separator_F77=:
22008 hardcode_direct_F77=yes
22009 export_dynamic_flag_spec_F77='${wl}-E'
22011 # hardcode_minus_L: Not really in the search PATH,
22012 # but as the default location of the library.
22013 hardcode_minus_L_F77=yes
22017 hpux11*)
22018 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22019 case $host_cpu in
22020 hppa*64*)
22021 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22023 ia64*)
22024 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22027 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22029 esac
22030 else
22031 case $host_cpu in
22032 hppa*64*)
22033 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22035 ia64*)
22036 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22039 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22041 esac
22043 if test "$with_gnu_ld" = no; then
22044 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22045 hardcode_libdir_separator_F77=:
22047 case $host_cpu in
22048 hppa*64*|ia64*)
22049 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22050 hardcode_direct_F77=no
22051 hardcode_shlibpath_var_F77=no
22054 hardcode_direct_F77=yes
22055 export_dynamic_flag_spec_F77='${wl}-E'
22057 # hardcode_minus_L: Not really in the search PATH,
22058 # but as the default location of the library.
22059 hardcode_minus_L_F77=yes
22061 esac
22065 irix5* | irix6* | nonstopux*)
22066 if test "$GCC" = yes; then
22067 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'
22068 else
22069 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'
22070 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22072 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22073 hardcode_libdir_separator_F77=:
22074 link_all_deplibs_F77=yes
22077 netbsd*)
22078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22079 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22080 else
22081 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22083 hardcode_libdir_flag_spec_F77='-R$libdir'
22084 hardcode_direct_F77=yes
22085 hardcode_shlibpath_var_F77=no
22088 newsos6)
22089 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22090 hardcode_direct_F77=yes
22091 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22092 hardcode_libdir_separator_F77=:
22093 hardcode_shlibpath_var_F77=no
22096 openbsd*)
22097 hardcode_direct_F77=yes
22098 hardcode_shlibpath_var_F77=no
22099 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22100 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22101 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22102 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22103 export_dynamic_flag_spec_F77='${wl}-E'
22104 else
22105 case $host_os in
22106 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22107 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22108 hardcode_libdir_flag_spec_F77='-R$libdir'
22111 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22112 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22114 esac
22118 os2*)
22119 hardcode_libdir_flag_spec_F77='-L$libdir'
22120 hardcode_minus_L_F77=yes
22121 allow_undefined_flag_F77=unsupported
22122 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'
22123 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22126 osf3*)
22127 if test "$GCC" = yes; then
22128 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22129 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'
22130 else
22131 allow_undefined_flag_F77=' -expect_unresolved \*'
22132 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'
22134 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22135 hardcode_libdir_separator_F77=:
22138 osf4* | osf5*) # as osf3* with the addition of -msym flag
22139 if test "$GCC" = yes; then
22140 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22141 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'
22142 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22143 else
22144 allow_undefined_flag_F77=' -expect_unresolved \*'
22145 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'
22146 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~
22147 $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'
22149 # Both c and cxx compiler support -rpath directly
22150 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22152 hardcode_libdir_separator_F77=:
22155 solaris*)
22156 no_undefined_flag_F77=' -z text'
22157 if test "$GCC" = yes; then
22158 wlarc='${wl}'
22159 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22160 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22161 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22162 else
22163 wlarc=''
22164 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22165 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22166 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22168 hardcode_libdir_flag_spec_F77='-R$libdir'
22169 hardcode_shlibpath_var_F77=no
22170 case $host_os in
22171 solaris2.[0-5] | solaris2.[0-5].*) ;;
22173 # The compiler driver will combine linker options so we
22174 # cannot just pass the convience library names through
22175 # without $wl, iff we do not link with $LD.
22176 # Luckily, gcc supports the same syntax we need for Sun Studio.
22177 # Supported since Solaris 2.6 (maybe 2.5.1?)
22178 case $wlarc in
22180 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22182 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' ;;
22183 esac ;;
22184 esac
22185 link_all_deplibs_F77=yes
22188 sunos4*)
22189 if test "x$host_vendor" = xsequent; then
22190 # Use $CC to link under sequent, because it throws in some extra .o
22191 # files that make .init and .fini sections work.
22192 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22193 else
22194 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22196 hardcode_libdir_flag_spec_F77='-L$libdir'
22197 hardcode_direct_F77=yes
22198 hardcode_minus_L_F77=yes
22199 hardcode_shlibpath_var_F77=no
22202 sysv4)
22203 case $host_vendor in
22204 sni)
22205 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22206 hardcode_direct_F77=yes # is this really true???
22208 siemens)
22209 ## LD is ld it makes a PLAMLIB
22210 ## CC just makes a GrossModule.
22211 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22212 reload_cmds_F77='$CC -r -o $output$reload_objs'
22213 hardcode_direct_F77=no
22215 motorola)
22216 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22217 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22219 esac
22220 runpath_var='LD_RUN_PATH'
22221 hardcode_shlibpath_var_F77=no
22224 sysv4.3*)
22225 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22226 hardcode_shlibpath_var_F77=no
22227 export_dynamic_flag_spec_F77='-Bexport'
22230 sysv4*MP*)
22231 if test -d /usr/nec; then
22232 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22233 hardcode_shlibpath_var_F77=no
22234 runpath_var=LD_RUN_PATH
22235 hardcode_runpath_var=yes
22236 ld_shlibs_F77=yes
22240 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22241 no_undefined_flag_F77='${wl}-z,text'
22242 archive_cmds_need_lc_F77=no
22243 hardcode_shlibpath_var_F77=no
22244 runpath_var='LD_RUN_PATH'
22246 if test "$GCC" = yes; then
22247 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22248 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22249 else
22250 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22251 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22255 sysv5* | sco3.2v5* | sco5v6*)
22256 # Note: We can NOT use -z defs as we might desire, because we do not
22257 # link with -lc, and that would cause any symbols used from libc to
22258 # always be unresolved, which means just about no library would
22259 # ever link correctly. If we're not using GNU ld we use -z text
22260 # though, which does catch some bad symbols but isn't as heavy-handed
22261 # as -z defs.
22262 no_undefined_flag_F77='${wl}-z,text'
22263 allow_undefined_flag_F77='${wl}-z,nodefs'
22264 archive_cmds_need_lc_F77=no
22265 hardcode_shlibpath_var_F77=no
22266 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22267 hardcode_libdir_separator_F77=':'
22268 link_all_deplibs_F77=yes
22269 export_dynamic_flag_spec_F77='${wl}-Bexport'
22270 runpath_var='LD_RUN_PATH'
22272 if test "$GCC" = yes; then
22273 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22274 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22275 else
22276 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22277 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22281 uts4*)
22282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22283 hardcode_libdir_flag_spec_F77='-L$libdir'
22284 hardcode_shlibpath_var_F77=no
22288 ld_shlibs_F77=no
22290 esac
22293 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22294 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22295 test "$ld_shlibs_F77" = no && can_build_shared=no
22298 # Do we need to explicitly link libc?
22300 case "x$archive_cmds_need_lc_F77" in
22301 x|xyes)
22302 # Assume -lc should be added
22303 archive_cmds_need_lc_F77=yes
22305 if test "$enable_shared" = yes && test "$GCC" = yes; then
22306 case $archive_cmds_F77 in
22307 *'~'*)
22308 # FIXME: we may have to deal with multi-command sequences.
22310 '$CC '*)
22311 # Test whether the compiler implicitly links with -lc since on some
22312 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22313 # to ld, don't add -lc before -lgcc.
22314 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22315 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22316 $rm conftest*
22317 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22320 (eval $ac_compile) 2>&5
22321 ac_status=$?
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); } 2>conftest.err; then
22324 soname=conftest
22325 lib=conftest
22326 libobjs=conftest.$ac_objext
22327 deplibs=
22328 wl=$lt_prog_compiler_wl_F77
22329 pic_flag=$lt_prog_compiler_pic_F77
22330 compiler_flags=-v
22331 linker_flags=-v
22332 verstring=
22333 output_objdir=.
22334 libname=conftest
22335 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22336 allow_undefined_flag_F77=
22337 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22338 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22339 ac_status=$?
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }
22342 then
22343 archive_cmds_need_lc_F77=no
22344 else
22345 archive_cmds_need_lc_F77=yes
22347 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22348 else
22349 cat conftest.err 1>&5
22351 $rm conftest*
22352 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22353 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22355 esac
22358 esac
22360 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22361 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22362 library_names_spec=
22363 libname_spec='lib$name'
22364 soname_spec=
22365 shrext_cmds=".so"
22366 postinstall_cmds=
22367 postuninstall_cmds=
22368 finish_cmds=
22369 finish_eval=
22370 shlibpath_var=
22371 shlibpath_overrides_runpath=unknown
22372 version_type=none
22373 dynamic_linker="$host_os ld.so"
22374 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22375 if test "$GCC" = yes; then
22376 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22377 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22378 # if the path contains ";" then we assume it to be the separator
22379 # otherwise default to the standard path separator (i.e. ":") - it is
22380 # assumed that no part of a normal pathname contains ";" but that should
22381 # okay in the real world where ";" in dirpaths is itself problematic.
22382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22383 else
22384 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22386 else
22387 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22389 need_lib_prefix=unknown
22390 hardcode_into_libs=no
22392 # when you set need_version to no, make sure it does not cause -set_version
22393 # flags to be left without arguments
22394 need_version=unknown
22396 case $host_os in
22397 aix3*)
22398 version_type=linux
22399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22400 shlibpath_var=LIBPATH
22402 # AIX 3 has no versioning support, so we append a major version to the name.
22403 soname_spec='${libname}${release}${shared_ext}$major'
22406 aix4* | aix5*)
22407 version_type=linux
22408 need_lib_prefix=no
22409 need_version=no
22410 hardcode_into_libs=yes
22411 if test "$host_cpu" = ia64; then
22412 # AIX 5 supports IA64
22413 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22414 shlibpath_var=LD_LIBRARY_PATH
22415 else
22416 # With GCC up to 2.95.x, collect2 would create an import file
22417 # for dependence libraries. The import file would start with
22418 # the line `#! .'. This would cause the generated library to
22419 # depend on `.', always an invalid library. This was fixed in
22420 # development snapshots of GCC prior to 3.0.
22421 case $host_os in
22422 aix4 | aix4.[01] | aix4.[01].*)
22423 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22424 echo ' yes '
22425 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22427 else
22428 can_build_shared=no
22431 esac
22432 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22433 # soname into executable. Probably we can add versioning support to
22434 # collect2, so additional links can be useful in future.
22435 if test "$aix_use_runtimelinking" = yes; then
22436 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22437 # instead of lib<name>.a to let people know that these are not
22438 # typical AIX shared libraries.
22439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22440 else
22441 # We preserve .a as extension for shared libraries through AIX4.2
22442 # and later when we are not doing run time linking.
22443 library_names_spec='${libname}${release}.a $libname.a'
22444 soname_spec='${libname}${release}${shared_ext}$major'
22446 shlibpath_var=LIBPATH
22450 amigaos*)
22451 library_names_spec='$libname.ixlibrary $libname.a'
22452 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22453 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'
22456 beos*)
22457 library_names_spec='${libname}${shared_ext}'
22458 dynamic_linker="$host_os ld.so"
22459 shlibpath_var=LIBRARY_PATH
22462 bsdi[45]*)
22463 version_type=linux
22464 need_version=no
22465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22466 soname_spec='${libname}${release}${shared_ext}$major'
22467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22468 shlibpath_var=LD_LIBRARY_PATH
22469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22471 # the default ld.so.conf also contains /usr/contrib/lib and
22472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22473 # libtool to hard-code these into programs
22476 cygwin* | mingw* | pw32*)
22477 version_type=windows
22478 shrext_cmds=".dll"
22479 need_version=no
22480 need_lib_prefix=no
22482 case $GCC,$host_os in
22483 yes,cygwin* | yes,mingw* | yes,pw32*)
22484 library_names_spec='$libname.dll.a'
22485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22486 postinstall_cmds='base_file=`basename \${file}`~
22487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22488 dldir=$destdir/`dirname \$dlpath`~
22489 test -d \$dldir || mkdir -p \$dldir~
22490 $install_prog $dir/$dlname \$dldir/$dlname~
22491 chmod a+x \$dldir/$dlname'
22492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22493 dlpath=$dir/\$dldll~
22494 $rm \$dlpath'
22495 shlibpath_overrides_runpath=yes
22497 case $host_os in
22498 cygwin*)
22499 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22500 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22501 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22503 mingw*)
22504 # MinGW DLLs use traditional 'lib' prefix
22505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22506 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22507 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22508 # It is most probably a Windows format PATH printed by
22509 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22510 # path with ; separators, and with drive letters. We can handle the
22511 # drive letters (cygwin fileutils understands them), so leave them,
22512 # especially as we might pass files found there to a mingw objdump,
22513 # which wouldn't understand a cygwinified path. Ahh.
22514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22515 else
22516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22519 pw32*)
22520 # pw32 DLLs use 'pw' prefix rather than 'lib'
22521 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22523 esac
22527 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22529 esac
22530 dynamic_linker='Win32 ld.exe'
22531 # FIXME: first we should search . and the directory the executable is in
22532 shlibpath_var=PATH
22535 darwin* | rhapsody*)
22536 dynamic_linker="$host_os dyld"
22537 version_type=darwin
22538 need_lib_prefix=no
22539 need_version=no
22540 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22541 soname_spec='${libname}${release}${major}$shared_ext'
22542 shlibpath_overrides_runpath=yes
22543 shlibpath_var=DYLD_LIBRARY_PATH
22544 shrext_cmds='.dylib'
22545 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22546 if test "$GCC" = yes; then
22547 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"`
22548 else
22549 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22551 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22554 dgux*)
22555 version_type=linux
22556 need_lib_prefix=no
22557 need_version=no
22558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22559 soname_spec='${libname}${release}${shared_ext}$major'
22560 shlibpath_var=LD_LIBRARY_PATH
22563 freebsd1*)
22564 dynamic_linker=no
22567 kfreebsd*-gnu)
22568 version_type=linux
22569 need_lib_prefix=no
22570 need_version=no
22571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22572 soname_spec='${libname}${release}${shared_ext}$major'
22573 shlibpath_var=LD_LIBRARY_PATH
22574 shlibpath_overrides_runpath=no
22575 hardcode_into_libs=yes
22576 dynamic_linker='GNU ld.so'
22579 freebsd* | dragonfly*)
22580 # DragonFly does not have aout. When/if they implement a new
22581 # versioning mechanism, adjust this.
22582 if test -x /usr/bin/objformat; then
22583 objformat=`/usr/bin/objformat`
22584 else
22585 case $host_os in
22586 freebsd[123]*) objformat=aout ;;
22587 *) objformat=elf ;;
22588 esac
22590 version_type=freebsd-$objformat
22591 case $version_type in
22592 freebsd-elf*)
22593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22594 need_version=no
22595 need_lib_prefix=no
22597 freebsd-*)
22598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22599 need_version=yes
22601 esac
22602 shlibpath_var=LD_LIBRARY_PATH
22603 case $host_os in
22604 freebsd2*)
22605 shlibpath_overrides_runpath=yes
22607 freebsd3.[01]* | freebsdelf3.[01]*)
22608 shlibpath_overrides_runpath=yes
22609 hardcode_into_libs=yes
22611 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22612 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22613 shlibpath_overrides_runpath=no
22614 hardcode_into_libs=yes
22616 freebsd*) # from 4.6 on
22617 shlibpath_overrides_runpath=yes
22618 hardcode_into_libs=yes
22620 esac
22623 gnu*)
22624 version_type=linux
22625 need_lib_prefix=no
22626 need_version=no
22627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22628 soname_spec='${libname}${release}${shared_ext}$major'
22629 shlibpath_var=LD_LIBRARY_PATH
22630 hardcode_into_libs=yes
22633 hpux9* | hpux10* | hpux11*)
22634 # Give a soname corresponding to the major version so that dld.sl refuses to
22635 # link against other versions.
22636 version_type=sunos
22637 need_lib_prefix=no
22638 need_version=no
22639 case $host_cpu in
22640 ia64*)
22641 shrext_cmds='.so'
22642 hardcode_into_libs=yes
22643 dynamic_linker="$host_os dld.so"
22644 shlibpath_var=LD_LIBRARY_PATH
22645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22647 soname_spec='${libname}${release}${shared_ext}$major'
22648 if test "X$HPUX_IA64_MODE" = X32; then
22649 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22650 else
22651 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22655 hppa*64*)
22656 shrext_cmds='.sl'
22657 hardcode_into_libs=yes
22658 dynamic_linker="$host_os dld.sl"
22659 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22662 soname_spec='${libname}${release}${shared_ext}$major'
22663 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22664 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22667 shrext_cmds='.sl'
22668 dynamic_linker="$host_os dld.sl"
22669 shlibpath_var=SHLIB_PATH
22670 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22672 soname_spec='${libname}${release}${shared_ext}$major'
22674 esac
22675 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22676 postinstall_cmds='chmod 555 $lib'
22679 interix3*)
22680 version_type=linux
22681 need_lib_prefix=no
22682 need_version=no
22683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22684 soname_spec='${libname}${release}${shared_ext}$major'
22685 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22686 shlibpath_var=LD_LIBRARY_PATH
22687 shlibpath_overrides_runpath=no
22688 hardcode_into_libs=yes
22691 irix5* | irix6* | nonstopux*)
22692 case $host_os in
22693 nonstopux*) version_type=nonstopux ;;
22695 if test "$lt_cv_prog_gnu_ld" = yes; then
22696 version_type=linux
22697 else
22698 version_type=irix
22699 fi ;;
22700 esac
22701 need_lib_prefix=no
22702 need_version=no
22703 soname_spec='${libname}${release}${shared_ext}$major'
22704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22705 case $host_os in
22706 irix5* | nonstopux*)
22707 libsuff= shlibsuff=
22710 case $LD in # libtool.m4 will add one of these switches to LD
22711 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22712 libsuff= shlibsuff= libmagic=32-bit;;
22713 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22714 libsuff=32 shlibsuff=N32 libmagic=N32;;
22715 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22716 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22717 *) libsuff= shlibsuff= libmagic=never-match;;
22718 esac
22720 esac
22721 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22722 shlibpath_overrides_runpath=no
22723 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22724 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22725 hardcode_into_libs=yes
22728 # No shared lib support for Linux oldld, aout, or coff.
22729 linux*oldld* | linux*aout* | linux*coff*)
22730 dynamic_linker=no
22733 # This must be Linux ELF.
22734 linux*)
22735 version_type=linux
22736 need_lib_prefix=no
22737 need_version=no
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22739 soname_spec='${libname}${release}${shared_ext}$major'
22740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22741 shlibpath_var=LD_LIBRARY_PATH
22742 shlibpath_overrides_runpath=no
22743 # This implies no fast_install, which is unacceptable.
22744 # Some rework will be needed to allow for fast_install
22745 # before this can be enabled.
22746 hardcode_into_libs=yes
22748 # Append ld.so.conf contents to the search path
22749 if test -f /etc/ld.so.conf; then
22750 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' ' '`
22751 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22754 # We used to test for /lib/ld.so.1 and disable shared libraries on
22755 # powerpc, because MkLinux only supported shared libraries with the
22756 # GNU dynamic linker. Since this was broken with cross compilers,
22757 # most powerpc-linux boxes support dynamic linking these days and
22758 # people can always --disable-shared, the test was removed, and we
22759 # assume the GNU/Linux dynamic linker is in use.
22760 dynamic_linker='GNU/Linux ld.so'
22763 knetbsd*-gnu)
22764 version_type=linux
22765 need_lib_prefix=no
22766 need_version=no
22767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22768 soname_spec='${libname}${release}${shared_ext}$major'
22769 shlibpath_var=LD_LIBRARY_PATH
22770 shlibpath_overrides_runpath=no
22771 hardcode_into_libs=yes
22772 dynamic_linker='GNU ld.so'
22775 netbsd*)
22776 version_type=sunos
22777 need_lib_prefix=no
22778 need_version=no
22779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22782 dynamic_linker='NetBSD (a.out) ld.so'
22783 else
22784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22785 soname_spec='${libname}${release}${shared_ext}$major'
22786 dynamic_linker='NetBSD ld.elf_so'
22788 shlibpath_var=LD_LIBRARY_PATH
22789 shlibpath_overrides_runpath=yes
22790 hardcode_into_libs=yes
22793 newsos6)
22794 version_type=linux
22795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22796 shlibpath_var=LD_LIBRARY_PATH
22797 shlibpath_overrides_runpath=yes
22800 nto-qnx*)
22801 version_type=linux
22802 need_lib_prefix=no
22803 need_version=no
22804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22805 soname_spec='${libname}${release}${shared_ext}$major'
22806 shlibpath_var=LD_LIBRARY_PATH
22807 shlibpath_overrides_runpath=yes
22810 openbsd*)
22811 version_type=sunos
22812 sys_lib_dlsearch_path_spec="/usr/lib"
22813 need_lib_prefix=no
22814 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22815 case $host_os in
22816 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22817 *) need_version=no ;;
22818 esac
22819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22821 shlibpath_var=LD_LIBRARY_PATH
22822 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22823 case $host_os in
22824 openbsd2.[89] | openbsd2.[89].*)
22825 shlibpath_overrides_runpath=no
22828 shlibpath_overrides_runpath=yes
22830 esac
22831 else
22832 shlibpath_overrides_runpath=yes
22836 os2*)
22837 libname_spec='$name'
22838 shrext_cmds=".dll"
22839 need_lib_prefix=no
22840 library_names_spec='$libname${shared_ext} $libname.a'
22841 dynamic_linker='OS/2 ld.exe'
22842 shlibpath_var=LIBPATH
22845 osf3* | osf4* | osf5*)
22846 version_type=osf
22847 need_lib_prefix=no
22848 need_version=no
22849 soname_spec='${libname}${release}${shared_ext}$major'
22850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22851 shlibpath_var=LD_LIBRARY_PATH
22852 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22853 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22856 solaris*)
22857 version_type=linux
22858 need_lib_prefix=no
22859 need_version=no
22860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22861 soname_spec='${libname}${release}${shared_ext}$major'
22862 shlibpath_var=LD_LIBRARY_PATH
22863 shlibpath_overrides_runpath=yes
22864 hardcode_into_libs=yes
22865 # ldd complains unless libraries are executable
22866 postinstall_cmds='chmod +x $lib'
22869 sunos4*)
22870 version_type=sunos
22871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22872 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22873 shlibpath_var=LD_LIBRARY_PATH
22874 shlibpath_overrides_runpath=yes
22875 if test "$with_gnu_ld" = yes; then
22876 need_lib_prefix=no
22878 need_version=yes
22881 sysv4 | sysv4.3*)
22882 version_type=linux
22883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22884 soname_spec='${libname}${release}${shared_ext}$major'
22885 shlibpath_var=LD_LIBRARY_PATH
22886 case $host_vendor in
22887 sni)
22888 shlibpath_overrides_runpath=no
22889 need_lib_prefix=no
22890 export_dynamic_flag_spec='${wl}-Blargedynsym'
22891 runpath_var=LD_RUN_PATH
22893 siemens)
22894 need_lib_prefix=no
22896 motorola)
22897 need_lib_prefix=no
22898 need_version=no
22899 shlibpath_overrides_runpath=no
22900 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22902 esac
22905 sysv4*MP*)
22906 if test -d /usr/nec ;then
22907 version_type=linux
22908 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22909 soname_spec='$libname${shared_ext}.$major'
22910 shlibpath_var=LD_LIBRARY_PATH
22914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22915 version_type=freebsd-elf
22916 need_lib_prefix=no
22917 need_version=no
22918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22919 soname_spec='${libname}${release}${shared_ext}$major'
22920 shlibpath_var=LD_LIBRARY_PATH
22921 hardcode_into_libs=yes
22922 if test "$with_gnu_ld" = yes; then
22923 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22924 shlibpath_overrides_runpath=no
22925 else
22926 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22927 shlibpath_overrides_runpath=yes
22928 case $host_os in
22929 sco3.2v5*)
22930 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22932 esac
22934 sys_lib_dlsearch_path_spec='/usr/lib'
22937 uts4*)
22938 version_type=linux
22939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22940 soname_spec='${libname}${release}${shared_ext}$major'
22941 shlibpath_var=LD_LIBRARY_PATH
22945 dynamic_linker=no
22947 esac
22948 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22949 echo "${ECHO_T}$dynamic_linker" >&6; }
22950 test "$dynamic_linker" = no && can_build_shared=no
22952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22953 if test "$GCC" = yes; then
22954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22957 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22958 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22959 hardcode_action_F77=
22960 if test -n "$hardcode_libdir_flag_spec_F77" || \
22961 test -n "$runpath_var_F77" || \
22962 test "X$hardcode_automatic_F77" = "Xyes" ; then
22964 # We can hardcode non-existant directories.
22965 if test "$hardcode_direct_F77" != no &&
22966 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22967 # have to relink, otherwise we might link with an installed library
22968 # when we should be linking with a yet-to-be-installed one
22969 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22970 test "$hardcode_minus_L_F77" != no; then
22971 # Linking always hardcodes the temporary library directory.
22972 hardcode_action_F77=relink
22973 else
22974 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22975 hardcode_action_F77=immediate
22977 else
22978 # We cannot hardcode anything, or else we can only hardcode existing
22979 # directories.
22980 hardcode_action_F77=unsupported
22982 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22983 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22985 if test "$hardcode_action_F77" = relink; then
22986 # Fast installation is not supported
22987 enable_fast_install=no
22988 elif test "$shlibpath_overrides_runpath" = yes ||
22989 test "$enable_shared" = no; then
22990 # Fast installation is not necessary
22991 enable_fast_install=needless
22995 # The else clause should only fire when bootstrapping the
22996 # libtool distribution, otherwise you forgot to ship ltmain.sh
22997 # with your package, and you will get complaints that there are
22998 # no rules to generate ltmain.sh.
22999 if test -f "$ltmain"; then
23000 # See if we are running on zsh, and set the options which allow our commands through
23001 # without removal of \ escapes.
23002 if test -n "${ZSH_VERSION+set}" ; then
23003 setopt NO_GLOB_SUBST
23005 # Now quote all the things that may contain metacharacters while being
23006 # careful not to overquote the AC_SUBSTed values. We take copies of the
23007 # variables and quote the copies for generation of the libtool script.
23008 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23009 SED SHELL STRIP \
23010 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23011 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23012 deplibs_check_method reload_flag reload_cmds need_locks \
23013 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23014 lt_cv_sys_global_symbol_to_c_name_address \
23015 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23016 old_postinstall_cmds old_postuninstall_cmds \
23017 compiler_F77 \
23018 CC_F77 \
23019 LD_F77 \
23020 lt_prog_compiler_wl_F77 \
23021 lt_prog_compiler_pic_F77 \
23022 lt_prog_compiler_static_F77 \
23023 lt_prog_compiler_no_builtin_flag_F77 \
23024 export_dynamic_flag_spec_F77 \
23025 thread_safe_flag_spec_F77 \
23026 whole_archive_flag_spec_F77 \
23027 enable_shared_with_static_runtimes_F77 \
23028 old_archive_cmds_F77 \
23029 old_archive_from_new_cmds_F77 \
23030 predep_objects_F77 \
23031 postdep_objects_F77 \
23032 predeps_F77 \
23033 postdeps_F77 \
23034 compiler_lib_search_path_F77 \
23035 archive_cmds_F77 \
23036 archive_expsym_cmds_F77 \
23037 postinstall_cmds_F77 \
23038 postuninstall_cmds_F77 \
23039 old_archive_from_expsyms_cmds_F77 \
23040 allow_undefined_flag_F77 \
23041 no_undefined_flag_F77 \
23042 export_symbols_cmds_F77 \
23043 hardcode_libdir_flag_spec_F77 \
23044 hardcode_libdir_flag_spec_ld_F77 \
23045 hardcode_libdir_separator_F77 \
23046 hardcode_automatic_F77 \
23047 module_cmds_F77 \
23048 module_expsym_cmds_F77 \
23049 lt_cv_prog_compiler_c_o_F77 \
23050 exclude_expsyms_F77 \
23051 include_expsyms_F77; do
23053 case $var in
23054 old_archive_cmds_F77 | \
23055 old_archive_from_new_cmds_F77 | \
23056 archive_cmds_F77 | \
23057 archive_expsym_cmds_F77 | \
23058 module_cmds_F77 | \
23059 module_expsym_cmds_F77 | \
23060 old_archive_from_expsyms_cmds_F77 | \
23061 export_symbols_cmds_F77 | \
23062 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23063 postinstall_cmds | postuninstall_cmds | \
23064 old_postinstall_cmds | old_postuninstall_cmds | \
23065 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23066 # Double-quote double-evaled strings.
23067 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23070 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23072 esac
23073 done
23075 case $lt_echo in
23076 *'\$0 --fallback-echo"')
23077 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23079 esac
23081 cfgfile="$ofile"
23083 cat <<__EOF__ >> "$cfgfile"
23084 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23086 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23088 # Shell to use when invoking shell scripts.
23089 SHELL=$lt_SHELL
23091 # Whether or not to build shared libraries.
23092 build_libtool_libs=$enable_shared
23094 # Whether or not to build static libraries.
23095 build_old_libs=$enable_static
23097 # Whether or not to add -lc for building shared libraries.
23098 build_libtool_need_lc=$archive_cmds_need_lc_F77
23100 # Whether or not to disallow shared libs when runtime libs are static
23101 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23103 # Whether or not to optimize for fast installation.
23104 fast_install=$enable_fast_install
23106 # The host system.
23107 host_alias=$host_alias
23108 host=$host
23109 host_os=$host_os
23111 # The build system.
23112 build_alias=$build_alias
23113 build=$build
23114 build_os=$build_os
23116 # An echo program that does not interpret backslashes.
23117 echo=$lt_echo
23119 # The archiver.
23120 AR=$lt_AR
23121 AR_FLAGS=$lt_AR_FLAGS
23123 # A C compiler.
23124 LTCC=$lt_LTCC
23126 # LTCC compiler flags.
23127 LTCFLAGS=$lt_LTCFLAGS
23129 # A language-specific compiler.
23130 CC=$lt_compiler_F77
23132 # Is the compiler the GNU C compiler?
23133 with_gcc=$GCC_F77
23135 # An ERE matcher.
23136 EGREP=$lt_EGREP
23138 # The linker used to build libraries.
23139 LD=$lt_LD_F77
23141 # Whether we need hard or soft links.
23142 LN_S=$lt_LN_S
23144 # A BSD-compatible nm program.
23145 NM=$lt_NM
23147 # A symbol stripping program
23148 STRIP=$lt_STRIP
23150 # Used to examine libraries when file_magic_cmd begins "file"
23151 MAGIC_CMD=$MAGIC_CMD
23153 # Used on cygwin: DLL creation program.
23154 DLLTOOL="$DLLTOOL"
23156 # Used on cygwin: object dumper.
23157 OBJDUMP="$OBJDUMP"
23159 # Used on cygwin: assembler.
23160 AS="$AS"
23162 # The name of the directory that contains temporary libtool files.
23163 objdir=$objdir
23165 # How to create reloadable object files.
23166 reload_flag=$lt_reload_flag
23167 reload_cmds=$lt_reload_cmds
23169 # How to pass a linker flag through the compiler.
23170 wl=$lt_lt_prog_compiler_wl_F77
23172 # Object file suffix (normally "o").
23173 objext="$ac_objext"
23175 # Old archive suffix (normally "a").
23176 libext="$libext"
23178 # Shared library suffix (normally ".so").
23179 shrext_cmds='$shrext_cmds'
23181 # Executable file suffix (normally "").
23182 exeext="$exeext"
23184 # Additional compiler flags for building library objects.
23185 pic_flag=$lt_lt_prog_compiler_pic_F77
23186 pic_mode=$pic_mode
23188 # What is the maximum length of a command?
23189 max_cmd_len=$lt_cv_sys_max_cmd_len
23191 # Does compiler simultaneously support -c and -o options?
23192 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23194 # Must we lock files when doing compilation?
23195 need_locks=$lt_need_locks
23197 # Do we need the lib prefix for modules?
23198 need_lib_prefix=$need_lib_prefix
23200 # Do we need a version for libraries?
23201 need_version=$need_version
23203 # Whether dlopen is supported.
23204 dlopen_support=$enable_dlopen
23206 # Whether dlopen of programs is supported.
23207 dlopen_self=$enable_dlopen_self
23209 # Whether dlopen of statically linked programs is supported.
23210 dlopen_self_static=$enable_dlopen_self_static
23212 # Compiler flag to prevent dynamic linking.
23213 link_static_flag=$lt_lt_prog_compiler_static_F77
23215 # Compiler flag to turn off builtin functions.
23216 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23218 # Compiler flag to allow reflexive dlopens.
23219 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23221 # Compiler flag to generate shared objects directly from archives.
23222 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23224 # Compiler flag to generate thread-safe objects.
23225 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23227 # Library versioning type.
23228 version_type=$version_type
23230 # Format of library name prefix.
23231 libname_spec=$lt_libname_spec
23233 # List of archive names. First name is the real one, the rest are links.
23234 # The last name is the one that the linker finds with -lNAME.
23235 library_names_spec=$lt_library_names_spec
23237 # The coded name of the library, if different from the real name.
23238 soname_spec=$lt_soname_spec
23240 # Commands used to build and install an old-style archive.
23241 RANLIB=$lt_RANLIB
23242 old_archive_cmds=$lt_old_archive_cmds_F77
23243 old_postinstall_cmds=$lt_old_postinstall_cmds
23244 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23246 # Create an old-style archive from a shared archive.
23247 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23249 # Create a temporary old-style archive to link instead of a shared archive.
23250 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23252 # Commands used to build and install a shared archive.
23253 archive_cmds=$lt_archive_cmds_F77
23254 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23255 postinstall_cmds=$lt_postinstall_cmds
23256 postuninstall_cmds=$lt_postuninstall_cmds
23258 # Commands used to build a loadable module (assumed same as above if empty)
23259 module_cmds=$lt_module_cmds_F77
23260 module_expsym_cmds=$lt_module_expsym_cmds_F77
23262 # Commands to strip libraries.
23263 old_striplib=$lt_old_striplib
23264 striplib=$lt_striplib
23266 # Dependencies to place before the objects being linked to create a
23267 # shared library.
23268 predep_objects=$lt_predep_objects_F77
23270 # Dependencies to place after the objects being linked to create a
23271 # shared library.
23272 postdep_objects=$lt_postdep_objects_F77
23274 # Dependencies to place before the objects being linked to create a
23275 # shared library.
23276 predeps=$lt_predeps_F77
23278 # Dependencies to place after the objects being linked to create a
23279 # shared library.
23280 postdeps=$lt_postdeps_F77
23282 # The library search path used internally by the compiler when linking
23283 # a shared library.
23284 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23286 # Method to check whether dependent libraries are shared objects.
23287 deplibs_check_method=$lt_deplibs_check_method
23289 # Command to use when deplibs_check_method == file_magic.
23290 file_magic_cmd=$lt_file_magic_cmd
23292 # Flag that allows shared libraries with undefined symbols to be built.
23293 allow_undefined_flag=$lt_allow_undefined_flag_F77
23295 # Flag that forces no undefined symbols.
23296 no_undefined_flag=$lt_no_undefined_flag_F77
23298 # Commands used to finish a libtool library installation in a directory.
23299 finish_cmds=$lt_finish_cmds
23301 # Same as above, but a single script fragment to be evaled but not shown.
23302 finish_eval=$lt_finish_eval
23304 # Take the output of nm and produce a listing of raw symbols and C names.
23305 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23307 # Transform the output of nm in a proper C declaration
23308 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23310 # Transform the output of nm in a C name address pair
23311 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23313 # This is the shared library runtime path variable.
23314 runpath_var=$runpath_var
23316 # This is the shared library path variable.
23317 shlibpath_var=$shlibpath_var
23319 # Is shlibpath searched before the hard-coded library search path?
23320 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23322 # How to hardcode a shared library path into an executable.
23323 hardcode_action=$hardcode_action_F77
23325 # Whether we should hardcode library paths into libraries.
23326 hardcode_into_libs=$hardcode_into_libs
23328 # Flag to hardcode \$libdir into a binary during linking.
23329 # This must work even if \$libdir does not exist.
23330 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23332 # If ld is used when linking, flag to hardcode \$libdir into
23333 # a binary during linking. This must work even if \$libdir does
23334 # not exist.
23335 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23337 # Whether we need a single -rpath flag with a separated argument.
23338 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23340 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23341 # resulting binary.
23342 hardcode_direct=$hardcode_direct_F77
23344 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23345 # resulting binary.
23346 hardcode_minus_L=$hardcode_minus_L_F77
23348 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23349 # the resulting binary.
23350 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23352 # Set to yes if building a shared library automatically hardcodes DIR into the library
23353 # and all subsequent libraries and executables linked against it.
23354 hardcode_automatic=$hardcode_automatic_F77
23356 # Variables whose values should be saved in libtool wrapper scripts and
23357 # restored at relink time.
23358 variables_saved_for_relink="$variables_saved_for_relink"
23360 # Whether libtool must link a program against all its dependency libraries.
23361 link_all_deplibs=$link_all_deplibs_F77
23363 # Compile-time system search path for libraries
23364 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23366 # Run-time system search path for libraries
23367 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23369 # Fix the shell variable \$srcfile for the compiler.
23370 fix_srcfile_path="$fix_srcfile_path_F77"
23372 # Set to yes if exported symbols are required.
23373 always_export_symbols=$always_export_symbols_F77
23375 # The commands to list exported symbols.
23376 export_symbols_cmds=$lt_export_symbols_cmds_F77
23378 # The commands to extract the exported symbol list from a shared archive.
23379 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23381 # Symbols that should not be listed in the preloaded symbols.
23382 exclude_expsyms=$lt_exclude_expsyms_F77
23384 # Symbols that must always be exported.
23385 include_expsyms=$lt_include_expsyms_F77
23387 # ### END LIBTOOL TAG CONFIG: $tagname
23389 __EOF__
23392 else
23393 # If there is no Makefile yet, we rely on a make rule to execute
23394 # `config.status --recheck' to rerun these tests and create the
23395 # libtool script then.
23396 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23397 if test -f "$ltmain_in"; then
23398 test -f Makefile && make "$ltmain"
23403 ac_ext=c
23404 ac_cpp='$CPP $CPPFLAGS'
23405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23409 CC="$lt_save_CC"
23411 else
23412 tagname=""
23416 GCJ)
23417 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23418 ac_ext=c
23419 ac_cpp='$CPP $CPPFLAGS'
23420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23425 # Source file extension for Java test sources.
23426 ac_ext=java
23428 # Object file extension for compiled Java test sources.
23429 objext=o
23430 objext_GCJ=$objext
23432 # Code to be used in simple compile tests
23433 lt_simple_compile_test_code="class foo {}\n"
23435 # Code to be used in simple link tests
23436 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23438 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23440 # If no C compiler was specified, use CC.
23441 LTCC=${LTCC-"$CC"}
23443 # If no C compiler flags were specified, use CFLAGS.
23444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23446 # Allow CC to be a program name with arguments.
23447 compiler=$CC
23450 # save warnings/boilerplate of simple test code
23451 ac_outfile=conftest.$ac_objext
23452 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23453 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23454 _lt_compiler_boilerplate=`cat conftest.err`
23455 $rm conftest*
23457 ac_outfile=conftest.$ac_objext
23458 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23459 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23460 _lt_linker_boilerplate=`cat conftest.err`
23461 $rm conftest*
23464 # Allow CC to be a program name with arguments.
23465 lt_save_CC="$CC"
23466 CC=${GCJ-"gcj"}
23467 compiler=$CC
23468 compiler_GCJ=$CC
23469 for cc_temp in $compiler""; do
23470 case $cc_temp in
23471 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23472 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23473 \-*) ;;
23474 *) break;;
23475 esac
23476 done
23477 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23480 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23481 archive_cmds_need_lc_GCJ=no
23483 old_archive_cmds_GCJ=$old_archive_cmds
23486 lt_prog_compiler_no_builtin_flag_GCJ=
23488 if test "$GCC" = yes; then
23489 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23492 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23493 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23494 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23495 echo $ECHO_N "(cached) $ECHO_C" >&6
23496 else
23497 lt_cv_prog_compiler_rtti_exceptions=no
23498 ac_outfile=conftest.$ac_objext
23499 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23500 lt_compiler_flag="-fno-rtti -fno-exceptions"
23501 # Insert the option either (1) after the last *FLAGS variable, or
23502 # (2) before a word containing "conftest.", or (3) at the end.
23503 # Note that $ac_compile itself does not contain backslashes and begins
23504 # with a dollar sign (not a hyphen), so the echo should work correctly.
23505 # The option is referenced via a variable to avoid confusing sed.
23506 lt_compile=`echo "$ac_compile" | $SED \
23507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23509 -e 's:$: $lt_compiler_flag:'`
23510 (eval echo "\"\$as_me:23510: $lt_compile\"" >&5)
23511 (eval "$lt_compile" 2>conftest.err)
23512 ac_status=$?
23513 cat conftest.err >&5
23514 echo "$as_me:23514: \$? = $ac_status" >&5
23515 if (exit $ac_status) && test -s "$ac_outfile"; then
23516 # The compiler can only warn and ignore the option if not recognized
23517 # So say no if there are warnings other than the usual output.
23518 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23520 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23521 lt_cv_prog_compiler_rtti_exceptions=yes
23524 $rm conftest*
23527 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23528 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23530 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23531 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23532 else
23538 lt_prog_compiler_wl_GCJ=
23539 lt_prog_compiler_pic_GCJ=
23540 lt_prog_compiler_static_GCJ=
23542 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23543 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23545 if test "$GCC" = yes; then
23546 lt_prog_compiler_wl_GCJ='-Wl,'
23547 lt_prog_compiler_static_GCJ='-static'
23549 case $host_os in
23550 aix*)
23551 # All AIX code is PIC.
23552 if test "$host_cpu" = ia64; then
23553 # AIX 5 now supports IA64 processor
23554 lt_prog_compiler_static_GCJ='-Bstatic'
23558 amigaos*)
23559 # FIXME: we need at least 68020 code to build shared libraries, but
23560 # adding the `-m68020' flag to GCC prevents building anything better,
23561 # like `-m68040'.
23562 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23565 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23566 # PIC is the default for these OSes.
23569 mingw* | pw32* | os2*)
23570 # This hack is so that the source file can tell whether it is being
23571 # built for inclusion in a dll (and should export symbols for example).
23572 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23575 darwin* | rhapsody*)
23576 # PIC is the default on this platform
23577 # Common symbols not allowed in MH_DYLIB files
23578 lt_prog_compiler_pic_GCJ='-fno-common'
23581 interix3*)
23582 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23583 # Instead, we relocate shared libraries at runtime.
23586 msdosdjgpp*)
23587 # Just because we use GCC doesn't mean we suddenly get shared libraries
23588 # on systems that don't support them.
23589 lt_prog_compiler_can_build_shared_GCJ=no
23590 enable_shared=no
23593 sysv4*MP*)
23594 if test -d /usr/nec; then
23595 lt_prog_compiler_pic_GCJ=-Kconform_pic
23599 hpux*)
23600 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23601 # not for PA HP-UX.
23602 case $host_cpu in
23603 hppa*64*|ia64*)
23604 # +Z the default
23607 lt_prog_compiler_pic_GCJ='-fPIC'
23609 esac
23613 lt_prog_compiler_pic_GCJ='-fPIC'
23615 esac
23616 else
23617 # PORTME Check for flag to pass linker flags through the system compiler.
23618 case $host_os in
23619 aix*)
23620 lt_prog_compiler_wl_GCJ='-Wl,'
23621 if test "$host_cpu" = ia64; then
23622 # AIX 5 now supports IA64 processor
23623 lt_prog_compiler_static_GCJ='-Bstatic'
23624 else
23625 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23628 darwin*)
23629 # PIC is the default on this platform
23630 # Common symbols not allowed in MH_DYLIB files
23631 case $cc_basename in
23632 xlc*)
23633 lt_prog_compiler_pic_GCJ='-qnocommon'
23634 lt_prog_compiler_wl_GCJ='-Wl,'
23636 esac
23639 mingw* | pw32* | os2*)
23640 # This hack is so that the source file can tell whether it is being
23641 # built for inclusion in a dll (and should export symbols for example).
23642 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23645 hpux9* | hpux10* | hpux11*)
23646 lt_prog_compiler_wl_GCJ='-Wl,'
23647 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23648 # not for PA HP-UX.
23649 case $host_cpu in
23650 hppa*64*|ia64*)
23651 # +Z the default
23654 lt_prog_compiler_pic_GCJ='+Z'
23656 esac
23657 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23658 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23661 irix5* | irix6* | nonstopux*)
23662 lt_prog_compiler_wl_GCJ='-Wl,'
23663 # PIC (with -KPIC) is the default.
23664 lt_prog_compiler_static_GCJ='-non_shared'
23667 newsos6)
23668 lt_prog_compiler_pic_GCJ='-KPIC'
23669 lt_prog_compiler_static_GCJ='-Bstatic'
23672 linux*)
23673 case $cc_basename in
23674 icc* | ecc*)
23675 lt_prog_compiler_wl_GCJ='-Wl,'
23676 lt_prog_compiler_pic_GCJ='-KPIC'
23677 lt_prog_compiler_static_GCJ='-static'
23679 pgcc* | pgf77* | pgf90* | pgf95*)
23680 # Portland Group compilers (*not* the Pentium gcc compiler,
23681 # which looks to be a dead project)
23682 lt_prog_compiler_wl_GCJ='-Wl,'
23683 lt_prog_compiler_pic_GCJ='-fpic'
23684 lt_prog_compiler_static_GCJ='-Bstatic'
23686 ccc*)
23687 lt_prog_compiler_wl_GCJ='-Wl,'
23688 # All Alpha code is PIC.
23689 lt_prog_compiler_static_GCJ='-non_shared'
23691 esac
23694 osf3* | osf4* | osf5*)
23695 lt_prog_compiler_wl_GCJ='-Wl,'
23696 # All OSF/1 code is PIC.
23697 lt_prog_compiler_static_GCJ='-non_shared'
23700 solaris*)
23701 lt_prog_compiler_pic_GCJ='-KPIC'
23702 lt_prog_compiler_static_GCJ='-Bstatic'
23703 case $cc_basename in
23704 f77* | f90* | f95*)
23705 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23707 lt_prog_compiler_wl_GCJ='-Wl,';;
23708 esac
23711 sunos4*)
23712 lt_prog_compiler_wl_GCJ='-Qoption ld '
23713 lt_prog_compiler_pic_GCJ='-PIC'
23714 lt_prog_compiler_static_GCJ='-Bstatic'
23717 sysv4 | sysv4.2uw2* | sysv4.3*)
23718 lt_prog_compiler_wl_GCJ='-Wl,'
23719 lt_prog_compiler_pic_GCJ='-KPIC'
23720 lt_prog_compiler_static_GCJ='-Bstatic'
23723 sysv4*MP*)
23724 if test -d /usr/nec ;then
23725 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23726 lt_prog_compiler_static_GCJ='-Bstatic'
23730 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23731 lt_prog_compiler_wl_GCJ='-Wl,'
23732 lt_prog_compiler_pic_GCJ='-KPIC'
23733 lt_prog_compiler_static_GCJ='-Bstatic'
23736 unicos*)
23737 lt_prog_compiler_wl_GCJ='-Wl,'
23738 lt_prog_compiler_can_build_shared_GCJ=no
23741 uts4*)
23742 lt_prog_compiler_pic_GCJ='-pic'
23743 lt_prog_compiler_static_GCJ='-Bstatic'
23747 lt_prog_compiler_can_build_shared_GCJ=no
23749 esac
23752 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23753 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23756 # Check to make sure the PIC flag actually works.
23758 if test -n "$lt_prog_compiler_pic_GCJ"; then
23760 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23761 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23762 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23764 else
23765 lt_prog_compiler_pic_works_GCJ=no
23766 ac_outfile=conftest.$ac_objext
23767 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23768 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23769 # Insert the option either (1) after the last *FLAGS variable, or
23770 # (2) before a word containing "conftest.", or (3) at the end.
23771 # Note that $ac_compile itself does not contain backslashes and begins
23772 # with a dollar sign (not a hyphen), so the echo should work correctly.
23773 # The option is referenced via a variable to avoid confusing sed.
23774 lt_compile=`echo "$ac_compile" | $SED \
23775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23777 -e 's:$: $lt_compiler_flag:'`
23778 (eval echo "\"\$as_me:23778: $lt_compile\"" >&5)
23779 (eval "$lt_compile" 2>conftest.err)
23780 ac_status=$?
23781 cat conftest.err >&5
23782 echo "$as_me:23782: \$? = $ac_status" >&5
23783 if (exit $ac_status) && test -s "$ac_outfile"; then
23784 # The compiler can only warn and ignore the option if not recognized
23785 # So say no if there are warnings other than the usual output.
23786 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23789 lt_prog_compiler_pic_works_GCJ=yes
23792 $rm conftest*
23795 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23796 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23798 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23799 case $lt_prog_compiler_pic_GCJ in
23800 "" | " "*) ;;
23801 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23802 esac
23803 else
23804 lt_prog_compiler_pic_GCJ=
23805 lt_prog_compiler_can_build_shared_GCJ=no
23809 case $host_os in
23810 # For platforms which do not support PIC, -DPIC is meaningless:
23811 *djgpp*)
23812 lt_prog_compiler_pic_GCJ=
23815 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23817 esac
23820 # Check to make sure the static flag actually works.
23822 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23823 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23824 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23825 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23826 echo $ECHO_N "(cached) $ECHO_C" >&6
23827 else
23828 lt_prog_compiler_static_works_GCJ=no
23829 save_LDFLAGS="$LDFLAGS"
23830 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23831 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23832 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23833 # The linker can only warn and ignore the option if not recognized
23834 # So say no if there are warnings
23835 if test -s conftest.err; then
23836 # Append any errors to the config.log.
23837 cat conftest.err 1>&5
23838 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23840 if diff conftest.exp conftest.er2 >/dev/null; then
23841 lt_prog_compiler_static_works_GCJ=yes
23843 else
23844 lt_prog_compiler_static_works_GCJ=yes
23847 $rm conftest*
23848 LDFLAGS="$save_LDFLAGS"
23851 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23852 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23854 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23856 else
23857 lt_prog_compiler_static_GCJ=
23861 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23862 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23863 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23864 echo $ECHO_N "(cached) $ECHO_C" >&6
23865 else
23866 lt_cv_prog_compiler_c_o_GCJ=no
23867 $rm -r conftest 2>/dev/null
23868 mkdir conftest
23869 cd conftest
23870 mkdir out
23871 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23873 lt_compiler_flag="-o out/conftest2.$ac_objext"
23874 # Insert the option either (1) after the last *FLAGS variable, or
23875 # (2) before a word containing "conftest.", or (3) at the end.
23876 # Note that $ac_compile itself does not contain backslashes and begins
23877 # with a dollar sign (not a hyphen), so the echo should work correctly.
23878 lt_compile=`echo "$ac_compile" | $SED \
23879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23881 -e 's:$: $lt_compiler_flag:'`
23882 (eval echo "\"\$as_me:23882: $lt_compile\"" >&5)
23883 (eval "$lt_compile" 2>out/conftest.err)
23884 ac_status=$?
23885 cat out/conftest.err >&5
23886 echo "$as_me:23886: \$? = $ac_status" >&5
23887 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23888 then
23889 # The compiler can only warn and ignore the option if not recognized
23890 # So say no if there are warnings
23891 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23894 lt_cv_prog_compiler_c_o_GCJ=yes
23897 chmod u+w . 2>&5
23898 $rm conftest*
23899 # SGI C++ compiler will create directory out/ii_files/ for
23900 # template instantiation
23901 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23902 $rm out/* && rmdir out
23903 cd ..
23904 rmdir conftest
23905 $rm conftest*
23908 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23909 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23912 hard_links="nottested"
23913 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23914 # do not overwrite the value of need_locks provided by the user
23915 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23916 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23917 hard_links=yes
23918 $rm conftest*
23919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23920 touch conftest.a
23921 ln conftest.a conftest.b 2>&5 || hard_links=no
23922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23923 { echo "$as_me:$LINENO: result: $hard_links" >&5
23924 echo "${ECHO_T}$hard_links" >&6; }
23925 if test "$hard_links" = no; then
23926 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23927 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23928 need_locks=warn
23930 else
23931 need_locks=no
23934 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23937 runpath_var=
23938 allow_undefined_flag_GCJ=
23939 enable_shared_with_static_runtimes_GCJ=no
23940 archive_cmds_GCJ=
23941 archive_expsym_cmds_GCJ=
23942 old_archive_From_new_cmds_GCJ=
23943 old_archive_from_expsyms_cmds_GCJ=
23944 export_dynamic_flag_spec_GCJ=
23945 whole_archive_flag_spec_GCJ=
23946 thread_safe_flag_spec_GCJ=
23947 hardcode_libdir_flag_spec_GCJ=
23948 hardcode_libdir_flag_spec_ld_GCJ=
23949 hardcode_libdir_separator_GCJ=
23950 hardcode_direct_GCJ=no
23951 hardcode_minus_L_GCJ=no
23952 hardcode_shlibpath_var_GCJ=unsupported
23953 link_all_deplibs_GCJ=unknown
23954 hardcode_automatic_GCJ=no
23955 module_cmds_GCJ=
23956 module_expsym_cmds_GCJ=
23957 always_export_symbols_GCJ=no
23958 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23959 # include_expsyms should be a list of space-separated symbols to be *always*
23960 # included in the symbol list
23961 include_expsyms_GCJ=
23962 # exclude_expsyms can be an extended regexp of symbols to exclude
23963 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23964 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23965 # as well as any symbol that contains `d'.
23966 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23967 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23968 # platforms (ab)use it in PIC code, but their linkers get confused if
23969 # the symbol is explicitly referenced. Since portable code cannot
23970 # rely on this symbol name, it's probably fine to never include it in
23971 # preloaded symbol tables.
23972 extract_expsyms_cmds=
23973 # Just being paranoid about ensuring that cc_basename is set.
23974 for cc_temp in $compiler""; do
23975 case $cc_temp in
23976 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23977 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23978 \-*) ;;
23979 *) break;;
23980 esac
23981 done
23982 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23984 case $host_os in
23985 cygwin* | mingw* | pw32*)
23986 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23987 # When not using gcc, we currently assume that we are using
23988 # Microsoft Visual C++.
23989 if test "$GCC" != yes; then
23990 with_gnu_ld=no
23993 interix*)
23994 # we just hope/assume this is gcc and not c89 (= MSVC++)
23995 with_gnu_ld=yes
23997 openbsd*)
23998 with_gnu_ld=no
24000 esac
24002 ld_shlibs_GCJ=yes
24003 if test "$with_gnu_ld" = yes; then
24004 # If archive_cmds runs LD, not CC, wlarc should be empty
24005 wlarc='${wl}'
24007 # Set some defaults for GNU ld with shared library support. These
24008 # are reset later if shared libraries are not supported. Putting them
24009 # here allows them to be overridden if necessary.
24010 runpath_var=LD_RUN_PATH
24011 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24012 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24013 # ancient GNU ld didn't support --whole-archive et. al.
24014 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24015 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24016 else
24017 whole_archive_flag_spec_GCJ=
24019 supports_anon_versioning=no
24020 case `$LD -v 2>/dev/null` in
24021 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24022 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24023 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24024 *\ 2.11.*) ;; # other 2.11 versions
24025 *) supports_anon_versioning=yes ;;
24026 esac
24028 # See if GNU ld supports shared libraries.
24029 case $host_os in
24030 aix3* | aix4* | aix5*)
24031 # On AIX/PPC, the GNU linker is very broken
24032 if test "$host_cpu" != ia64; then
24033 ld_shlibs_GCJ=no
24034 cat <<EOF 1>&2
24036 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24037 *** to be unable to reliably create shared libraries on AIX.
24038 *** Therefore, libtool is disabling shared libraries support. If you
24039 *** really care for shared libraries, you may want to modify your PATH
24040 *** so that a non-GNU linker is found, and then restart.
24046 amigaos*)
24047 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)'
24048 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24049 hardcode_minus_L_GCJ=yes
24051 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24052 # that the semantics of dynamic libraries on AmigaOS, at least up
24053 # to version 4, is to share data among multiple programs linked
24054 # with the same dynamic library. Since this doesn't match the
24055 # behavior of shared libraries on other platforms, we can't use
24056 # them.
24057 ld_shlibs_GCJ=no
24060 beos*)
24061 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24062 allow_undefined_flag_GCJ=unsupported
24063 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24064 # support --undefined. This deserves some investigation. FIXME
24065 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24066 else
24067 ld_shlibs_GCJ=no
24071 cygwin* | mingw* | pw32*)
24072 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24073 # as there is no search path for DLLs.
24074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24075 allow_undefined_flag_GCJ=unsupported
24076 always_export_symbols_GCJ=no
24077 enable_shared_with_static_runtimes_GCJ=yes
24078 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24080 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24081 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24082 # If the export-symbols file already is a .def file (1st line
24083 # is EXPORTS), use it as is; otherwise, prepend...
24084 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24085 cp $export_symbols $output_objdir/$soname.def;
24086 else
24087 echo EXPORTS > $output_objdir/$soname.def;
24088 cat $export_symbols >> $output_objdir/$soname.def;
24090 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24091 else
24092 ld_shlibs_GCJ=no
24096 interix3*)
24097 hardcode_direct_GCJ=no
24098 hardcode_shlibpath_var_GCJ=no
24099 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24100 export_dynamic_flag_spec_GCJ='${wl}-E'
24101 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24102 # Instead, shared libraries are loaded at an image base (0x10000000 by
24103 # default) and relocated if they conflict, which is a slow very memory
24104 # consuming and fragmenting process. To avoid this, we pick a random,
24105 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24106 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24107 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'
24108 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'
24111 linux*)
24112 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24113 tmp_addflag=
24114 case $cc_basename,$host_cpu in
24115 pgcc*) # Portland Group C compiler
24116 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'
24117 tmp_addflag=' $pic_flag'
24119 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24120 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'
24121 tmp_addflag=' $pic_flag -Mnomain' ;;
24122 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24123 tmp_addflag=' -i_dynamic' ;;
24124 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24125 tmp_addflag=' -i_dynamic -nofor_main' ;;
24126 ifc* | ifort*) # Intel Fortran compiler
24127 tmp_addflag=' -nofor_main' ;;
24128 esac
24129 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24131 if test $supports_anon_versioning = yes; then
24132 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24134 $echo "local: *; };" >> $output_objdir/$libname.ver~
24135 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24137 else
24138 ld_shlibs_GCJ=no
24142 netbsd*)
24143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24144 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24145 wlarc=
24146 else
24147 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24148 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24152 solaris*)
24153 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24154 ld_shlibs_GCJ=no
24155 cat <<EOF 1>&2
24157 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24158 *** create shared libraries on Solaris systems. Therefore, libtool
24159 *** is disabling shared libraries support. We urge you to upgrade GNU
24160 *** binutils to release 2.9.1 or newer. Another option is to modify
24161 *** your PATH or compiler configuration so that the native linker is
24162 *** used, and then restart.
24165 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24166 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24167 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24168 else
24169 ld_shlibs_GCJ=no
24173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24174 case `$LD -v 2>&1` in
24175 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24176 ld_shlibs_GCJ=no
24177 cat <<_LT_EOF 1>&2
24179 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24180 *** reliably create shared libraries on SCO systems. Therefore, libtool
24181 *** is disabling shared libraries support. We urge you to upgrade GNU
24182 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24183 *** your PATH or compiler configuration so that the native linker is
24184 *** used, and then restart.
24186 _LT_EOF
24189 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24190 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24191 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24192 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24193 else
24194 ld_shlibs_GCJ=no
24197 esac
24200 sunos4*)
24201 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24202 wlarc=
24203 hardcode_direct_GCJ=yes
24204 hardcode_shlibpath_var_GCJ=no
24208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24209 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24210 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24211 else
24212 ld_shlibs_GCJ=no
24215 esac
24217 if test "$ld_shlibs_GCJ" = no; then
24218 runpath_var=
24219 hardcode_libdir_flag_spec_GCJ=
24220 export_dynamic_flag_spec_GCJ=
24221 whole_archive_flag_spec_GCJ=
24223 else
24224 # PORTME fill in a description of your system's linker (not GNU ld)
24225 case $host_os in
24226 aix3*)
24227 allow_undefined_flag_GCJ=unsupported
24228 always_export_symbols_GCJ=yes
24229 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'
24230 # Note: this linker hardcodes the directories in LIBPATH if there
24231 # are no directories specified by -L.
24232 hardcode_minus_L_GCJ=yes
24233 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24234 # Neither direct hardcoding nor static linking is supported with a
24235 # broken collect2.
24236 hardcode_direct_GCJ=unsupported
24240 aix4* | aix5*)
24241 if test "$host_cpu" = ia64; then
24242 # On IA64, the linker does run time linking by default, so we don't
24243 # have to do anything special.
24244 aix_use_runtimelinking=no
24245 exp_sym_flag='-Bexport'
24246 no_entry_flag=""
24247 else
24248 # If we're using GNU nm, then we don't want the "-C" option.
24249 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24250 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24251 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'
24252 else
24253 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'
24255 aix_use_runtimelinking=no
24257 # Test if we are trying to use run time linking or normal
24258 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24259 # need to do runtime linking.
24260 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24261 for ld_flag in $LDFLAGS; do
24262 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24263 aix_use_runtimelinking=yes
24264 break
24266 done
24268 esac
24270 exp_sym_flag='-bexport'
24271 no_entry_flag='-bnoentry'
24274 # When large executables or shared objects are built, AIX ld can
24275 # have problems creating the table of contents. If linking a library
24276 # or program results in "error TOC overflow" add -mminimal-toc to
24277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24280 archive_cmds_GCJ=''
24281 hardcode_direct_GCJ=yes
24282 hardcode_libdir_separator_GCJ=':'
24283 link_all_deplibs_GCJ=yes
24285 if test "$GCC" = yes; then
24286 case $host_os in aix4.[012]|aix4.[012].*)
24287 # We only want to do this on AIX 4.2 and lower, the check
24288 # below for broken collect2 doesn't work under 4.3+
24289 collect2name=`${CC} -print-prog-name=collect2`
24290 if test -f "$collect2name" && \
24291 strings "$collect2name" | grep resolve_lib_name >/dev/null
24292 then
24293 # We have reworked collect2
24294 hardcode_direct_GCJ=yes
24295 else
24296 # We have old collect2
24297 hardcode_direct_GCJ=unsupported
24298 # It fails to find uninstalled libraries when the uninstalled
24299 # path is not listed in the libpath. Setting hardcode_minus_L
24300 # to unsupported forces relinking
24301 hardcode_minus_L_GCJ=yes
24302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24303 hardcode_libdir_separator_GCJ=
24306 esac
24307 shared_flag='-shared'
24308 if test "$aix_use_runtimelinking" = yes; then
24309 shared_flag="$shared_flag "'${wl}-G'
24311 else
24312 # not using gcc
24313 if test "$host_cpu" = ia64; then
24314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24315 # chokes on -Wl,-G. The following line is correct:
24316 shared_flag='-G'
24317 else
24318 if test "$aix_use_runtimelinking" = yes; then
24319 shared_flag='${wl}-G'
24320 else
24321 shared_flag='${wl}-bM:SRE'
24326 # It seems that -bexpall does not export symbols beginning with
24327 # underscore (_), so it is better to generate a list of symbols to export.
24328 always_export_symbols_GCJ=yes
24329 if test "$aix_use_runtimelinking" = yes; then
24330 # Warning - without using the other runtime loading flags (-brtl),
24331 # -berok will link without error, but may produce a broken library.
24332 allow_undefined_flag_GCJ='-berok'
24333 # Determine the default libpath from the value encoded in an empty executable.
24334 cat >conftest.$ac_ext <<_ACEOF
24335 /* confdefs.h. */
24336 _ACEOF
24337 cat confdefs.h >>conftest.$ac_ext
24338 cat >>conftest.$ac_ext <<_ACEOF
24339 /* end confdefs.h. */
24342 main ()
24346 return 0;
24348 _ACEOF
24349 rm -f conftest.$ac_objext conftest$ac_exeext
24350 if { (ac_try="$ac_link"
24351 case "(($ac_try" in
24352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353 *) ac_try_echo=$ac_try;;
24354 esac
24355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356 (eval "$ac_link") 2>conftest.er1
24357 ac_status=$?
24358 grep -v '^ *+' conftest.er1 >conftest.err
24359 rm -f conftest.er1
24360 cat conftest.err >&5
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } &&
24363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24364 { (case "(($ac_try" in
24365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366 *) ac_try_echo=$ac_try;;
24367 esac
24368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24369 (eval "$ac_try") 2>&5
24370 ac_status=$?
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; } &&
24373 { ac_try='test -s conftest$ac_exeext'
24374 { (case "(($ac_try" in
24375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376 *) ac_try_echo=$ac_try;;
24377 esac
24378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24379 (eval "$ac_try") 2>&5
24380 ac_status=$?
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; }; then
24384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24386 # Check for a 64-bit object if we didn't find anything.
24387 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; }
24388 }'`; fi
24389 else
24390 echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24396 rm -f core conftest.err conftest.$ac_objext \
24397 conftest$ac_exeext conftest.$ac_ext
24398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24400 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24401 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"
24402 else
24403 if test "$host_cpu" = ia64; then
24404 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24405 allow_undefined_flag_GCJ="-z nodefs"
24406 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"
24407 else
24408 # Determine the default libpath from the value encoded in an empty executable.
24409 cat >conftest.$ac_ext <<_ACEOF
24410 /* confdefs.h. */
24411 _ACEOF
24412 cat confdefs.h >>conftest.$ac_ext
24413 cat >>conftest.$ac_ext <<_ACEOF
24414 /* end confdefs.h. */
24417 main ()
24421 return 0;
24423 _ACEOF
24424 rm -f conftest.$ac_objext conftest$ac_exeext
24425 if { (ac_try="$ac_link"
24426 case "(($ac_try" in
24427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428 *) ac_try_echo=$ac_try;;
24429 esac
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431 (eval "$ac_link") 2>conftest.er1
24432 ac_status=$?
24433 grep -v '^ *+' conftest.er1 >conftest.err
24434 rm -f conftest.er1
24435 cat conftest.err >&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } &&
24438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24439 { (case "(($ac_try" in
24440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441 *) ac_try_echo=$ac_try;;
24442 esac
24443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24444 (eval "$ac_try") 2>&5
24445 ac_status=$?
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); }; } &&
24448 { ac_try='test -s conftest$ac_exeext'
24449 { (case "(($ac_try" in
24450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24451 *) ac_try_echo=$ac_try;;
24452 esac
24453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24454 (eval "$ac_try") 2>&5
24455 ac_status=$?
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); }; }; then
24459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24461 # Check for a 64-bit object if we didn't find anything.
24462 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; }
24463 }'`; fi
24464 else
24465 echo "$as_me: failed program was:" >&5
24466 sed 's/^/| /' conftest.$ac_ext >&5
24471 rm -f core conftest.err conftest.$ac_objext \
24472 conftest$ac_exeext conftest.$ac_ext
24473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24475 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24476 # Warning - without using the other run time loading flags,
24477 # -berok will link without error, but may produce a broken library.
24478 no_undefined_flag_GCJ=' ${wl}-bernotok'
24479 allow_undefined_flag_GCJ=' ${wl}-berok'
24480 # Exported symbols can be pulled into shared objects from archives
24481 whole_archive_flag_spec_GCJ='$convenience'
24482 archive_cmds_need_lc_GCJ=yes
24483 # This is similar to how AIX traditionally builds its shared libraries.
24484 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'
24489 amigaos*)
24490 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)'
24491 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24492 hardcode_minus_L_GCJ=yes
24493 # see comment about different semantics on the GNU ld section
24494 ld_shlibs_GCJ=no
24497 bsdi[45]*)
24498 export_dynamic_flag_spec_GCJ=-rdynamic
24501 cygwin* | mingw* | pw32*)
24502 # When not using gcc, we currently assume that we are using
24503 # Microsoft Visual C++.
24504 # hardcode_libdir_flag_spec is actually meaningless, as there is
24505 # no search path for DLLs.
24506 hardcode_libdir_flag_spec_GCJ=' '
24507 allow_undefined_flag_GCJ=unsupported
24508 # Tell ltmain to make .lib files, not .a files.
24509 libext=lib
24510 # Tell ltmain to make .dll files, not .so files.
24511 shrext_cmds=".dll"
24512 # FIXME: Setting linknames here is a bad hack.
24513 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24514 # The linker will automatically build a .lib file if we build a DLL.
24515 old_archive_From_new_cmds_GCJ='true'
24516 # FIXME: Should let the user specify the lib program.
24517 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24518 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24519 enable_shared_with_static_runtimes_GCJ=yes
24522 darwin* | rhapsody*)
24523 case $host_os in
24524 rhapsody* | darwin1.[012])
24525 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24527 *) # Darwin 1.3 on
24528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24529 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24530 else
24531 case ${MACOSX_DEPLOYMENT_TARGET} in
24532 10.[012])
24533 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24535 10.*)
24536 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24538 esac
24541 esac
24542 archive_cmds_need_lc_GCJ=no
24543 hardcode_direct_GCJ=no
24544 hardcode_automatic_GCJ=yes
24545 hardcode_shlibpath_var_GCJ=unsupported
24546 whole_archive_flag_spec_GCJ=''
24547 link_all_deplibs_GCJ=yes
24548 if test "$GCC" = yes ; then
24549 output_verbose_link_cmd='echo'
24550 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24551 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24553 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}'
24554 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}'
24555 else
24556 case $cc_basename in
24557 xlc*)
24558 output_verbose_link_cmd='echo'
24559 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24560 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24562 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}'
24563 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}'
24566 ld_shlibs_GCJ=no
24568 esac
24572 dgux*)
24573 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24574 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24575 hardcode_shlibpath_var_GCJ=no
24578 freebsd1*)
24579 ld_shlibs_GCJ=no
24582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24583 # support. Future versions do this automatically, but an explicit c++rt0.o
24584 # does not break anything, and helps significantly (at the cost of a little
24585 # extra space).
24586 freebsd2.2*)
24587 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24588 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24589 hardcode_direct_GCJ=yes
24590 hardcode_shlibpath_var_GCJ=no
24593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24594 freebsd2*)
24595 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24596 hardcode_direct_GCJ=yes
24597 hardcode_minus_L_GCJ=yes
24598 hardcode_shlibpath_var_GCJ=no
24601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24602 freebsd* | kfreebsd*-gnu | dragonfly*)
24603 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24604 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24605 hardcode_direct_GCJ=yes
24606 hardcode_shlibpath_var_GCJ=no
24609 hpux9*)
24610 if test "$GCC" = yes; then
24611 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'
24612 else
24613 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'
24615 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24616 hardcode_libdir_separator_GCJ=:
24617 hardcode_direct_GCJ=yes
24619 # hardcode_minus_L: Not really in the search PATH,
24620 # but as the default location of the library.
24621 hardcode_minus_L_GCJ=yes
24622 export_dynamic_flag_spec_GCJ='${wl}-E'
24625 hpux10*)
24626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24627 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24628 else
24629 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24631 if test "$with_gnu_ld" = no; then
24632 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24633 hardcode_libdir_separator_GCJ=:
24635 hardcode_direct_GCJ=yes
24636 export_dynamic_flag_spec_GCJ='${wl}-E'
24638 # hardcode_minus_L: Not really in the search PATH,
24639 # but as the default location of the library.
24640 hardcode_minus_L_GCJ=yes
24644 hpux11*)
24645 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24646 case $host_cpu in
24647 hppa*64*)
24648 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24650 ia64*)
24651 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24654 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24656 esac
24657 else
24658 case $host_cpu in
24659 hppa*64*)
24660 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24662 ia64*)
24663 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24666 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24668 esac
24670 if test "$with_gnu_ld" = no; then
24671 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24672 hardcode_libdir_separator_GCJ=:
24674 case $host_cpu in
24675 hppa*64*|ia64*)
24676 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24677 hardcode_direct_GCJ=no
24678 hardcode_shlibpath_var_GCJ=no
24681 hardcode_direct_GCJ=yes
24682 export_dynamic_flag_spec_GCJ='${wl}-E'
24684 # hardcode_minus_L: Not really in the search PATH,
24685 # but as the default location of the library.
24686 hardcode_minus_L_GCJ=yes
24688 esac
24692 irix5* | irix6* | nonstopux*)
24693 if test "$GCC" = yes; then
24694 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'
24695 else
24696 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'
24697 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24699 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24700 hardcode_libdir_separator_GCJ=:
24701 link_all_deplibs_GCJ=yes
24704 netbsd*)
24705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24706 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24707 else
24708 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24710 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24711 hardcode_direct_GCJ=yes
24712 hardcode_shlibpath_var_GCJ=no
24715 newsos6)
24716 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24717 hardcode_direct_GCJ=yes
24718 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24719 hardcode_libdir_separator_GCJ=:
24720 hardcode_shlibpath_var_GCJ=no
24723 openbsd*)
24724 hardcode_direct_GCJ=yes
24725 hardcode_shlibpath_var_GCJ=no
24726 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24727 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24728 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24729 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24730 export_dynamic_flag_spec_GCJ='${wl}-E'
24731 else
24732 case $host_os in
24733 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24734 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24735 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24738 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24739 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24741 esac
24745 os2*)
24746 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24747 hardcode_minus_L_GCJ=yes
24748 allow_undefined_flag_GCJ=unsupported
24749 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'
24750 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24753 osf3*)
24754 if test "$GCC" = yes; then
24755 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24756 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'
24757 else
24758 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24759 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'
24761 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24762 hardcode_libdir_separator_GCJ=:
24765 osf4* | osf5*) # as osf3* with the addition of -msym flag
24766 if test "$GCC" = yes; then
24767 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24768 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'
24769 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24770 else
24771 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24772 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'
24773 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~
24774 $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'
24776 # Both c and cxx compiler support -rpath directly
24777 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24779 hardcode_libdir_separator_GCJ=:
24782 solaris*)
24783 no_undefined_flag_GCJ=' -z text'
24784 if test "$GCC" = yes; then
24785 wlarc='${wl}'
24786 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24787 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24788 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24789 else
24790 wlarc=''
24791 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24792 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24795 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24796 hardcode_shlibpath_var_GCJ=no
24797 case $host_os in
24798 solaris2.[0-5] | solaris2.[0-5].*) ;;
24800 # The compiler driver will combine linker options so we
24801 # cannot just pass the convience library names through
24802 # without $wl, iff we do not link with $LD.
24803 # Luckily, gcc supports the same syntax we need for Sun Studio.
24804 # Supported since Solaris 2.6 (maybe 2.5.1?)
24805 case $wlarc in
24807 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24809 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' ;;
24810 esac ;;
24811 esac
24812 link_all_deplibs_GCJ=yes
24815 sunos4*)
24816 if test "x$host_vendor" = xsequent; then
24817 # Use $CC to link under sequent, because it throws in some extra .o
24818 # files that make .init and .fini sections work.
24819 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24820 else
24821 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24823 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24824 hardcode_direct_GCJ=yes
24825 hardcode_minus_L_GCJ=yes
24826 hardcode_shlibpath_var_GCJ=no
24829 sysv4)
24830 case $host_vendor in
24831 sni)
24832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24833 hardcode_direct_GCJ=yes # is this really true???
24835 siemens)
24836 ## LD is ld it makes a PLAMLIB
24837 ## CC just makes a GrossModule.
24838 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24839 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24840 hardcode_direct_GCJ=no
24842 motorola)
24843 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24844 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24846 esac
24847 runpath_var='LD_RUN_PATH'
24848 hardcode_shlibpath_var_GCJ=no
24851 sysv4.3*)
24852 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24853 hardcode_shlibpath_var_GCJ=no
24854 export_dynamic_flag_spec_GCJ='-Bexport'
24857 sysv4*MP*)
24858 if test -d /usr/nec; then
24859 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24860 hardcode_shlibpath_var_GCJ=no
24861 runpath_var=LD_RUN_PATH
24862 hardcode_runpath_var=yes
24863 ld_shlibs_GCJ=yes
24867 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24868 no_undefined_flag_GCJ='${wl}-z,text'
24869 archive_cmds_need_lc_GCJ=no
24870 hardcode_shlibpath_var_GCJ=no
24871 runpath_var='LD_RUN_PATH'
24873 if test "$GCC" = yes; then
24874 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24875 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24876 else
24877 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24878 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24882 sysv5* | sco3.2v5* | sco5v6*)
24883 # Note: We can NOT use -z defs as we might desire, because we do not
24884 # link with -lc, and that would cause any symbols used from libc to
24885 # always be unresolved, which means just about no library would
24886 # ever link correctly. If we're not using GNU ld we use -z text
24887 # though, which does catch some bad symbols but isn't as heavy-handed
24888 # as -z defs.
24889 no_undefined_flag_GCJ='${wl}-z,text'
24890 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24891 archive_cmds_need_lc_GCJ=no
24892 hardcode_shlibpath_var_GCJ=no
24893 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24894 hardcode_libdir_separator_GCJ=':'
24895 link_all_deplibs_GCJ=yes
24896 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24897 runpath_var='LD_RUN_PATH'
24899 if test "$GCC" = yes; then
24900 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24901 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24902 else
24903 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24904 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24908 uts4*)
24909 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24910 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24911 hardcode_shlibpath_var_GCJ=no
24915 ld_shlibs_GCJ=no
24917 esac
24920 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24921 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24922 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24925 # Do we need to explicitly link libc?
24927 case "x$archive_cmds_need_lc_GCJ" in
24928 x|xyes)
24929 # Assume -lc should be added
24930 archive_cmds_need_lc_GCJ=yes
24932 if test "$enable_shared" = yes && test "$GCC" = yes; then
24933 case $archive_cmds_GCJ in
24934 *'~'*)
24935 # FIXME: we may have to deal with multi-command sequences.
24937 '$CC '*)
24938 # Test whether the compiler implicitly links with -lc since on some
24939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24940 # to ld, don't add -lc before -lgcc.
24941 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24942 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24943 $rm conftest*
24944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24947 (eval $ac_compile) 2>&5
24948 ac_status=$?
24949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); } 2>conftest.err; then
24951 soname=conftest
24952 lib=conftest
24953 libobjs=conftest.$ac_objext
24954 deplibs=
24955 wl=$lt_prog_compiler_wl_GCJ
24956 pic_flag=$lt_prog_compiler_pic_GCJ
24957 compiler_flags=-v
24958 linker_flags=-v
24959 verstring=
24960 output_objdir=.
24961 libname=conftest
24962 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24963 allow_undefined_flag_GCJ=
24964 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24965 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24966 ac_status=$?
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }
24969 then
24970 archive_cmds_need_lc_GCJ=no
24971 else
24972 archive_cmds_need_lc_GCJ=yes
24974 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24975 else
24976 cat conftest.err 1>&5
24978 $rm conftest*
24979 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24980 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24982 esac
24985 esac
24987 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24988 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24989 library_names_spec=
24990 libname_spec='lib$name'
24991 soname_spec=
24992 shrext_cmds=".so"
24993 postinstall_cmds=
24994 postuninstall_cmds=
24995 finish_cmds=
24996 finish_eval=
24997 shlibpath_var=
24998 shlibpath_overrides_runpath=unknown
24999 version_type=none
25000 dynamic_linker="$host_os ld.so"
25001 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25002 if test "$GCC" = yes; then
25003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25004 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25005 # if the path contains ";" then we assume it to be the separator
25006 # otherwise default to the standard path separator (i.e. ":") - it is
25007 # assumed that no part of a normal pathname contains ";" but that should
25008 # okay in the real world where ";" in dirpaths is itself problematic.
25009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25010 else
25011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25013 else
25014 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25016 need_lib_prefix=unknown
25017 hardcode_into_libs=no
25019 # when you set need_version to no, make sure it does not cause -set_version
25020 # flags to be left without arguments
25021 need_version=unknown
25023 case $host_os in
25024 aix3*)
25025 version_type=linux
25026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25027 shlibpath_var=LIBPATH
25029 # AIX 3 has no versioning support, so we append a major version to the name.
25030 soname_spec='${libname}${release}${shared_ext}$major'
25033 aix4* | aix5*)
25034 version_type=linux
25035 need_lib_prefix=no
25036 need_version=no
25037 hardcode_into_libs=yes
25038 if test "$host_cpu" = ia64; then
25039 # AIX 5 supports IA64
25040 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25041 shlibpath_var=LD_LIBRARY_PATH
25042 else
25043 # With GCC up to 2.95.x, collect2 would create an import file
25044 # for dependence libraries. The import file would start with
25045 # the line `#! .'. This would cause the generated library to
25046 # depend on `.', always an invalid library. This was fixed in
25047 # development snapshots of GCC prior to 3.0.
25048 case $host_os in
25049 aix4 | aix4.[01] | aix4.[01].*)
25050 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25051 echo ' yes '
25052 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25054 else
25055 can_build_shared=no
25058 esac
25059 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25060 # soname into executable. Probably we can add versioning support to
25061 # collect2, so additional links can be useful in future.
25062 if test "$aix_use_runtimelinking" = yes; then
25063 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25064 # instead of lib<name>.a to let people know that these are not
25065 # typical AIX shared libraries.
25066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25067 else
25068 # We preserve .a as extension for shared libraries through AIX4.2
25069 # and later when we are not doing run time linking.
25070 library_names_spec='${libname}${release}.a $libname.a'
25071 soname_spec='${libname}${release}${shared_ext}$major'
25073 shlibpath_var=LIBPATH
25077 amigaos*)
25078 library_names_spec='$libname.ixlibrary $libname.a'
25079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25080 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'
25083 beos*)
25084 library_names_spec='${libname}${shared_ext}'
25085 dynamic_linker="$host_os ld.so"
25086 shlibpath_var=LIBRARY_PATH
25089 bsdi[45]*)
25090 version_type=linux
25091 need_version=no
25092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25093 soname_spec='${libname}${release}${shared_ext}$major'
25094 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25095 shlibpath_var=LD_LIBRARY_PATH
25096 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25097 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25098 # the default ld.so.conf also contains /usr/contrib/lib and
25099 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25100 # libtool to hard-code these into programs
25103 cygwin* | mingw* | pw32*)
25104 version_type=windows
25105 shrext_cmds=".dll"
25106 need_version=no
25107 need_lib_prefix=no
25109 case $GCC,$host_os in
25110 yes,cygwin* | yes,mingw* | yes,pw32*)
25111 library_names_spec='$libname.dll.a'
25112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25113 postinstall_cmds='base_file=`basename \${file}`~
25114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25115 dldir=$destdir/`dirname \$dlpath`~
25116 test -d \$dldir || mkdir -p \$dldir~
25117 $install_prog $dir/$dlname \$dldir/$dlname~
25118 chmod a+x \$dldir/$dlname'
25119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25120 dlpath=$dir/\$dldll~
25121 $rm \$dlpath'
25122 shlibpath_overrides_runpath=yes
25124 case $host_os in
25125 cygwin*)
25126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25127 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25128 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25130 mingw*)
25131 # MinGW DLLs use traditional 'lib' prefix
25132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25134 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25135 # It is most probably a Windows format PATH printed by
25136 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25137 # path with ; separators, and with drive letters. We can handle the
25138 # drive letters (cygwin fileutils understands them), so leave them,
25139 # especially as we might pass files found there to a mingw objdump,
25140 # which wouldn't understand a cygwinified path. Ahh.
25141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25142 else
25143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25146 pw32*)
25147 # pw32 DLLs use 'pw' prefix rather than 'lib'
25148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25150 esac
25154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25156 esac
25157 dynamic_linker='Win32 ld.exe'
25158 # FIXME: first we should search . and the directory the executable is in
25159 shlibpath_var=PATH
25162 darwin* | rhapsody*)
25163 dynamic_linker="$host_os dyld"
25164 version_type=darwin
25165 need_lib_prefix=no
25166 need_version=no
25167 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25168 soname_spec='${libname}${release}${major}$shared_ext'
25169 shlibpath_overrides_runpath=yes
25170 shlibpath_var=DYLD_LIBRARY_PATH
25171 shrext_cmds='.dylib'
25172 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25173 if test "$GCC" = yes; then
25174 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"`
25175 else
25176 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25181 dgux*)
25182 version_type=linux
25183 need_lib_prefix=no
25184 need_version=no
25185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25186 soname_spec='${libname}${release}${shared_ext}$major'
25187 shlibpath_var=LD_LIBRARY_PATH
25190 freebsd1*)
25191 dynamic_linker=no
25194 kfreebsd*-gnu)
25195 version_type=linux
25196 need_lib_prefix=no
25197 need_version=no
25198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25199 soname_spec='${libname}${release}${shared_ext}$major'
25200 shlibpath_var=LD_LIBRARY_PATH
25201 shlibpath_overrides_runpath=no
25202 hardcode_into_libs=yes
25203 dynamic_linker='GNU ld.so'
25206 freebsd* | dragonfly*)
25207 # DragonFly does not have aout. When/if they implement a new
25208 # versioning mechanism, adjust this.
25209 if test -x /usr/bin/objformat; then
25210 objformat=`/usr/bin/objformat`
25211 else
25212 case $host_os in
25213 freebsd[123]*) objformat=aout ;;
25214 *) objformat=elf ;;
25215 esac
25217 version_type=freebsd-$objformat
25218 case $version_type in
25219 freebsd-elf*)
25220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25221 need_version=no
25222 need_lib_prefix=no
25224 freebsd-*)
25225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25226 need_version=yes
25228 esac
25229 shlibpath_var=LD_LIBRARY_PATH
25230 case $host_os in
25231 freebsd2*)
25232 shlibpath_overrides_runpath=yes
25234 freebsd3.[01]* | freebsdelf3.[01]*)
25235 shlibpath_overrides_runpath=yes
25236 hardcode_into_libs=yes
25238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25240 shlibpath_overrides_runpath=no
25241 hardcode_into_libs=yes
25243 freebsd*) # from 4.6 on
25244 shlibpath_overrides_runpath=yes
25245 hardcode_into_libs=yes
25247 esac
25250 gnu*)
25251 version_type=linux
25252 need_lib_prefix=no
25253 need_version=no
25254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25255 soname_spec='${libname}${release}${shared_ext}$major'
25256 shlibpath_var=LD_LIBRARY_PATH
25257 hardcode_into_libs=yes
25260 hpux9* | hpux10* | hpux11*)
25261 # Give a soname corresponding to the major version so that dld.sl refuses to
25262 # link against other versions.
25263 version_type=sunos
25264 need_lib_prefix=no
25265 need_version=no
25266 case $host_cpu in
25267 ia64*)
25268 shrext_cmds='.so'
25269 hardcode_into_libs=yes
25270 dynamic_linker="$host_os dld.so"
25271 shlibpath_var=LD_LIBRARY_PATH
25272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25274 soname_spec='${libname}${release}${shared_ext}$major'
25275 if test "X$HPUX_IA64_MODE" = X32; then
25276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25277 else
25278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25282 hppa*64*)
25283 shrext_cmds='.sl'
25284 hardcode_into_libs=yes
25285 dynamic_linker="$host_os dld.sl"
25286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25289 soname_spec='${libname}${release}${shared_ext}$major'
25290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25294 shrext_cmds='.sl'
25295 dynamic_linker="$host_os dld.sl"
25296 shlibpath_var=SHLIB_PATH
25297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25299 soname_spec='${libname}${release}${shared_ext}$major'
25301 esac
25302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25303 postinstall_cmds='chmod 555 $lib'
25306 interix3*)
25307 version_type=linux
25308 need_lib_prefix=no
25309 need_version=no
25310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25311 soname_spec='${libname}${release}${shared_ext}$major'
25312 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25313 shlibpath_var=LD_LIBRARY_PATH
25314 shlibpath_overrides_runpath=no
25315 hardcode_into_libs=yes
25318 irix5* | irix6* | nonstopux*)
25319 case $host_os in
25320 nonstopux*) version_type=nonstopux ;;
25322 if test "$lt_cv_prog_gnu_ld" = yes; then
25323 version_type=linux
25324 else
25325 version_type=irix
25326 fi ;;
25327 esac
25328 need_lib_prefix=no
25329 need_version=no
25330 soname_spec='${libname}${release}${shared_ext}$major'
25331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25332 case $host_os in
25333 irix5* | nonstopux*)
25334 libsuff= shlibsuff=
25337 case $LD in # libtool.m4 will add one of these switches to LD
25338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25339 libsuff= shlibsuff= libmagic=32-bit;;
25340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25341 libsuff=32 shlibsuff=N32 libmagic=N32;;
25342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25344 *) libsuff= shlibsuff= libmagic=never-match;;
25345 esac
25347 esac
25348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25349 shlibpath_overrides_runpath=no
25350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25352 hardcode_into_libs=yes
25355 # No shared lib support for Linux oldld, aout, or coff.
25356 linux*oldld* | linux*aout* | linux*coff*)
25357 dynamic_linker=no
25360 # This must be Linux ELF.
25361 linux*)
25362 version_type=linux
25363 need_lib_prefix=no
25364 need_version=no
25365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25366 soname_spec='${libname}${release}${shared_ext}$major'
25367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25368 shlibpath_var=LD_LIBRARY_PATH
25369 shlibpath_overrides_runpath=no
25370 # This implies no fast_install, which is unacceptable.
25371 # Some rework will be needed to allow for fast_install
25372 # before this can be enabled.
25373 hardcode_into_libs=yes
25375 # Append ld.so.conf contents to the search path
25376 if test -f /etc/ld.so.conf; then
25377 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' ' '`
25378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25381 # We used to test for /lib/ld.so.1 and disable shared libraries on
25382 # powerpc, because MkLinux only supported shared libraries with the
25383 # GNU dynamic linker. Since this was broken with cross compilers,
25384 # most powerpc-linux boxes support dynamic linking these days and
25385 # people can always --disable-shared, the test was removed, and we
25386 # assume the GNU/Linux dynamic linker is in use.
25387 dynamic_linker='GNU/Linux ld.so'
25390 knetbsd*-gnu)
25391 version_type=linux
25392 need_lib_prefix=no
25393 need_version=no
25394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25395 soname_spec='${libname}${release}${shared_ext}$major'
25396 shlibpath_var=LD_LIBRARY_PATH
25397 shlibpath_overrides_runpath=no
25398 hardcode_into_libs=yes
25399 dynamic_linker='GNU ld.so'
25402 netbsd*)
25403 version_type=sunos
25404 need_lib_prefix=no
25405 need_version=no
25406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25409 dynamic_linker='NetBSD (a.out) ld.so'
25410 else
25411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25412 soname_spec='${libname}${release}${shared_ext}$major'
25413 dynamic_linker='NetBSD ld.elf_so'
25415 shlibpath_var=LD_LIBRARY_PATH
25416 shlibpath_overrides_runpath=yes
25417 hardcode_into_libs=yes
25420 newsos6)
25421 version_type=linux
25422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25423 shlibpath_var=LD_LIBRARY_PATH
25424 shlibpath_overrides_runpath=yes
25427 nto-qnx*)
25428 version_type=linux
25429 need_lib_prefix=no
25430 need_version=no
25431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25432 soname_spec='${libname}${release}${shared_ext}$major'
25433 shlibpath_var=LD_LIBRARY_PATH
25434 shlibpath_overrides_runpath=yes
25437 openbsd*)
25438 version_type=sunos
25439 sys_lib_dlsearch_path_spec="/usr/lib"
25440 need_lib_prefix=no
25441 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25442 case $host_os in
25443 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25444 *) need_version=no ;;
25445 esac
25446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25448 shlibpath_var=LD_LIBRARY_PATH
25449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25450 case $host_os in
25451 openbsd2.[89] | openbsd2.[89].*)
25452 shlibpath_overrides_runpath=no
25455 shlibpath_overrides_runpath=yes
25457 esac
25458 else
25459 shlibpath_overrides_runpath=yes
25463 os2*)
25464 libname_spec='$name'
25465 shrext_cmds=".dll"
25466 need_lib_prefix=no
25467 library_names_spec='$libname${shared_ext} $libname.a'
25468 dynamic_linker='OS/2 ld.exe'
25469 shlibpath_var=LIBPATH
25472 osf3* | osf4* | osf5*)
25473 version_type=osf
25474 need_lib_prefix=no
25475 need_version=no
25476 soname_spec='${libname}${release}${shared_ext}$major'
25477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25478 shlibpath_var=LD_LIBRARY_PATH
25479 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25480 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25483 solaris*)
25484 version_type=linux
25485 need_lib_prefix=no
25486 need_version=no
25487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25488 soname_spec='${libname}${release}${shared_ext}$major'
25489 shlibpath_var=LD_LIBRARY_PATH
25490 shlibpath_overrides_runpath=yes
25491 hardcode_into_libs=yes
25492 # ldd complains unless libraries are executable
25493 postinstall_cmds='chmod +x $lib'
25496 sunos4*)
25497 version_type=sunos
25498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25499 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25500 shlibpath_var=LD_LIBRARY_PATH
25501 shlibpath_overrides_runpath=yes
25502 if test "$with_gnu_ld" = yes; then
25503 need_lib_prefix=no
25505 need_version=yes
25508 sysv4 | sysv4.3*)
25509 version_type=linux
25510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25511 soname_spec='${libname}${release}${shared_ext}$major'
25512 shlibpath_var=LD_LIBRARY_PATH
25513 case $host_vendor in
25514 sni)
25515 shlibpath_overrides_runpath=no
25516 need_lib_prefix=no
25517 export_dynamic_flag_spec='${wl}-Blargedynsym'
25518 runpath_var=LD_RUN_PATH
25520 siemens)
25521 need_lib_prefix=no
25523 motorola)
25524 need_lib_prefix=no
25525 need_version=no
25526 shlibpath_overrides_runpath=no
25527 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25529 esac
25532 sysv4*MP*)
25533 if test -d /usr/nec ;then
25534 version_type=linux
25535 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25536 soname_spec='$libname${shared_ext}.$major'
25537 shlibpath_var=LD_LIBRARY_PATH
25541 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25542 version_type=freebsd-elf
25543 need_lib_prefix=no
25544 need_version=no
25545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25546 soname_spec='${libname}${release}${shared_ext}$major'
25547 shlibpath_var=LD_LIBRARY_PATH
25548 hardcode_into_libs=yes
25549 if test "$with_gnu_ld" = yes; then
25550 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25551 shlibpath_overrides_runpath=no
25552 else
25553 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25554 shlibpath_overrides_runpath=yes
25555 case $host_os in
25556 sco3.2v5*)
25557 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25559 esac
25561 sys_lib_dlsearch_path_spec='/usr/lib'
25564 uts4*)
25565 version_type=linux
25566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25567 soname_spec='${libname}${release}${shared_ext}$major'
25568 shlibpath_var=LD_LIBRARY_PATH
25572 dynamic_linker=no
25574 esac
25575 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25576 echo "${ECHO_T}$dynamic_linker" >&6; }
25577 test "$dynamic_linker" = no && can_build_shared=no
25579 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25580 if test "$GCC" = yes; then
25581 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25584 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25585 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25586 hardcode_action_GCJ=
25587 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25588 test -n "$runpath_var_GCJ" || \
25589 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25591 # We can hardcode non-existant directories.
25592 if test "$hardcode_direct_GCJ" != no &&
25593 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25594 # have to relink, otherwise we might link with an installed library
25595 # when we should be linking with a yet-to-be-installed one
25596 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25597 test "$hardcode_minus_L_GCJ" != no; then
25598 # Linking always hardcodes the temporary library directory.
25599 hardcode_action_GCJ=relink
25600 else
25601 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25602 hardcode_action_GCJ=immediate
25604 else
25605 # We cannot hardcode anything, or else we can only hardcode existing
25606 # directories.
25607 hardcode_action_GCJ=unsupported
25609 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25610 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25612 if test "$hardcode_action_GCJ" = relink; then
25613 # Fast installation is not supported
25614 enable_fast_install=no
25615 elif test "$shlibpath_overrides_runpath" = yes ||
25616 test "$enable_shared" = no; then
25617 # Fast installation is not necessary
25618 enable_fast_install=needless
25622 # The else clause should only fire when bootstrapping the
25623 # libtool distribution, otherwise you forgot to ship ltmain.sh
25624 # with your package, and you will get complaints that there are
25625 # no rules to generate ltmain.sh.
25626 if test -f "$ltmain"; then
25627 # See if we are running on zsh, and set the options which allow our commands through
25628 # without removal of \ escapes.
25629 if test -n "${ZSH_VERSION+set}" ; then
25630 setopt NO_GLOB_SUBST
25632 # Now quote all the things that may contain metacharacters while being
25633 # careful not to overquote the AC_SUBSTed values. We take copies of the
25634 # variables and quote the copies for generation of the libtool script.
25635 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25636 SED SHELL STRIP \
25637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25639 deplibs_check_method reload_flag reload_cmds need_locks \
25640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25641 lt_cv_sys_global_symbol_to_c_name_address \
25642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25643 old_postinstall_cmds old_postuninstall_cmds \
25644 compiler_GCJ \
25645 CC_GCJ \
25646 LD_GCJ \
25647 lt_prog_compiler_wl_GCJ \
25648 lt_prog_compiler_pic_GCJ \
25649 lt_prog_compiler_static_GCJ \
25650 lt_prog_compiler_no_builtin_flag_GCJ \
25651 export_dynamic_flag_spec_GCJ \
25652 thread_safe_flag_spec_GCJ \
25653 whole_archive_flag_spec_GCJ \
25654 enable_shared_with_static_runtimes_GCJ \
25655 old_archive_cmds_GCJ \
25656 old_archive_from_new_cmds_GCJ \
25657 predep_objects_GCJ \
25658 postdep_objects_GCJ \
25659 predeps_GCJ \
25660 postdeps_GCJ \
25661 compiler_lib_search_path_GCJ \
25662 archive_cmds_GCJ \
25663 archive_expsym_cmds_GCJ \
25664 postinstall_cmds_GCJ \
25665 postuninstall_cmds_GCJ \
25666 old_archive_from_expsyms_cmds_GCJ \
25667 allow_undefined_flag_GCJ \
25668 no_undefined_flag_GCJ \
25669 export_symbols_cmds_GCJ \
25670 hardcode_libdir_flag_spec_GCJ \
25671 hardcode_libdir_flag_spec_ld_GCJ \
25672 hardcode_libdir_separator_GCJ \
25673 hardcode_automatic_GCJ \
25674 module_cmds_GCJ \
25675 module_expsym_cmds_GCJ \
25676 lt_cv_prog_compiler_c_o_GCJ \
25677 exclude_expsyms_GCJ \
25678 include_expsyms_GCJ; do
25680 case $var in
25681 old_archive_cmds_GCJ | \
25682 old_archive_from_new_cmds_GCJ | \
25683 archive_cmds_GCJ | \
25684 archive_expsym_cmds_GCJ | \
25685 module_cmds_GCJ | \
25686 module_expsym_cmds_GCJ | \
25687 old_archive_from_expsyms_cmds_GCJ | \
25688 export_symbols_cmds_GCJ | \
25689 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25690 postinstall_cmds | postuninstall_cmds | \
25691 old_postinstall_cmds | old_postuninstall_cmds | \
25692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25693 # Double-quote double-evaled strings.
25694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25699 esac
25700 done
25702 case $lt_echo in
25703 *'\$0 --fallback-echo"')
25704 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25706 esac
25708 cfgfile="$ofile"
25710 cat <<__EOF__ >> "$cfgfile"
25711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25715 # Shell to use when invoking shell scripts.
25716 SHELL=$lt_SHELL
25718 # Whether or not to build shared libraries.
25719 build_libtool_libs=$enable_shared
25721 # Whether or not to build static libraries.
25722 build_old_libs=$enable_static
25724 # Whether or not to add -lc for building shared libraries.
25725 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25727 # Whether or not to disallow shared libs when runtime libs are static
25728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25730 # Whether or not to optimize for fast installation.
25731 fast_install=$enable_fast_install
25733 # The host system.
25734 host_alias=$host_alias
25735 host=$host
25736 host_os=$host_os
25738 # The build system.
25739 build_alias=$build_alias
25740 build=$build
25741 build_os=$build_os
25743 # An echo program that does not interpret backslashes.
25744 echo=$lt_echo
25746 # The archiver.
25747 AR=$lt_AR
25748 AR_FLAGS=$lt_AR_FLAGS
25750 # A C compiler.
25751 LTCC=$lt_LTCC
25753 # LTCC compiler flags.
25754 LTCFLAGS=$lt_LTCFLAGS
25756 # A language-specific compiler.
25757 CC=$lt_compiler_GCJ
25759 # Is the compiler the GNU C compiler?
25760 with_gcc=$GCC_GCJ
25762 # An ERE matcher.
25763 EGREP=$lt_EGREP
25765 # The linker used to build libraries.
25766 LD=$lt_LD_GCJ
25768 # Whether we need hard or soft links.
25769 LN_S=$lt_LN_S
25771 # A BSD-compatible nm program.
25772 NM=$lt_NM
25774 # A symbol stripping program
25775 STRIP=$lt_STRIP
25777 # Used to examine libraries when file_magic_cmd begins "file"
25778 MAGIC_CMD=$MAGIC_CMD
25780 # Used on cygwin: DLL creation program.
25781 DLLTOOL="$DLLTOOL"
25783 # Used on cygwin: object dumper.
25784 OBJDUMP="$OBJDUMP"
25786 # Used on cygwin: assembler.
25787 AS="$AS"
25789 # The name of the directory that contains temporary libtool files.
25790 objdir=$objdir
25792 # How to create reloadable object files.
25793 reload_flag=$lt_reload_flag
25794 reload_cmds=$lt_reload_cmds
25796 # How to pass a linker flag through the compiler.
25797 wl=$lt_lt_prog_compiler_wl_GCJ
25799 # Object file suffix (normally "o").
25800 objext="$ac_objext"
25802 # Old archive suffix (normally "a").
25803 libext="$libext"
25805 # Shared library suffix (normally ".so").
25806 shrext_cmds='$shrext_cmds'
25808 # Executable file suffix (normally "").
25809 exeext="$exeext"
25811 # Additional compiler flags for building library objects.
25812 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25813 pic_mode=$pic_mode
25815 # What is the maximum length of a command?
25816 max_cmd_len=$lt_cv_sys_max_cmd_len
25818 # Does compiler simultaneously support -c and -o options?
25819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25821 # Must we lock files when doing compilation?
25822 need_locks=$lt_need_locks
25824 # Do we need the lib prefix for modules?
25825 need_lib_prefix=$need_lib_prefix
25827 # Do we need a version for libraries?
25828 need_version=$need_version
25830 # Whether dlopen is supported.
25831 dlopen_support=$enable_dlopen
25833 # Whether dlopen of programs is supported.
25834 dlopen_self=$enable_dlopen_self
25836 # Whether dlopen of statically linked programs is supported.
25837 dlopen_self_static=$enable_dlopen_self_static
25839 # Compiler flag to prevent dynamic linking.
25840 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25842 # Compiler flag to turn off builtin functions.
25843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25845 # Compiler flag to allow reflexive dlopens.
25846 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25848 # Compiler flag to generate shared objects directly from archives.
25849 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25851 # Compiler flag to generate thread-safe objects.
25852 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25854 # Library versioning type.
25855 version_type=$version_type
25857 # Format of library name prefix.
25858 libname_spec=$lt_libname_spec
25860 # List of archive names. First name is the real one, the rest are links.
25861 # The last name is the one that the linker finds with -lNAME.
25862 library_names_spec=$lt_library_names_spec
25864 # The coded name of the library, if different from the real name.
25865 soname_spec=$lt_soname_spec
25867 # Commands used to build and install an old-style archive.
25868 RANLIB=$lt_RANLIB
25869 old_archive_cmds=$lt_old_archive_cmds_GCJ
25870 old_postinstall_cmds=$lt_old_postinstall_cmds
25871 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25873 # Create an old-style archive from a shared archive.
25874 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25876 # Create a temporary old-style archive to link instead of a shared archive.
25877 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25879 # Commands used to build and install a shared archive.
25880 archive_cmds=$lt_archive_cmds_GCJ
25881 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25882 postinstall_cmds=$lt_postinstall_cmds
25883 postuninstall_cmds=$lt_postuninstall_cmds
25885 # Commands used to build a loadable module (assumed same as above if empty)
25886 module_cmds=$lt_module_cmds_GCJ
25887 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25889 # Commands to strip libraries.
25890 old_striplib=$lt_old_striplib
25891 striplib=$lt_striplib
25893 # Dependencies to place before the objects being linked to create a
25894 # shared library.
25895 predep_objects=$lt_predep_objects_GCJ
25897 # Dependencies to place after the objects being linked to create a
25898 # shared library.
25899 postdep_objects=$lt_postdep_objects_GCJ
25901 # Dependencies to place before the objects being linked to create a
25902 # shared library.
25903 predeps=$lt_predeps_GCJ
25905 # Dependencies to place after the objects being linked to create a
25906 # shared library.
25907 postdeps=$lt_postdeps_GCJ
25909 # The library search path used internally by the compiler when linking
25910 # a shared library.
25911 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25913 # Method to check whether dependent libraries are shared objects.
25914 deplibs_check_method=$lt_deplibs_check_method
25916 # Command to use when deplibs_check_method == file_magic.
25917 file_magic_cmd=$lt_file_magic_cmd
25919 # Flag that allows shared libraries with undefined symbols to be built.
25920 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25922 # Flag that forces no undefined symbols.
25923 no_undefined_flag=$lt_no_undefined_flag_GCJ
25925 # Commands used to finish a libtool library installation in a directory.
25926 finish_cmds=$lt_finish_cmds
25928 # Same as above, but a single script fragment to be evaled but not shown.
25929 finish_eval=$lt_finish_eval
25931 # Take the output of nm and produce a listing of raw symbols and C names.
25932 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25934 # Transform the output of nm in a proper C declaration
25935 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25937 # Transform the output of nm in a C name address pair
25938 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25940 # This is the shared library runtime path variable.
25941 runpath_var=$runpath_var
25943 # This is the shared library path variable.
25944 shlibpath_var=$shlibpath_var
25946 # Is shlibpath searched before the hard-coded library search path?
25947 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25949 # How to hardcode a shared library path into an executable.
25950 hardcode_action=$hardcode_action_GCJ
25952 # Whether we should hardcode library paths into libraries.
25953 hardcode_into_libs=$hardcode_into_libs
25955 # Flag to hardcode \$libdir into a binary during linking.
25956 # This must work even if \$libdir does not exist.
25957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25959 # If ld is used when linking, flag to hardcode \$libdir into
25960 # a binary during linking. This must work even if \$libdir does
25961 # not exist.
25962 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25964 # Whether we need a single -rpath flag with a separated argument.
25965 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25967 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25968 # resulting binary.
25969 hardcode_direct=$hardcode_direct_GCJ
25971 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25972 # resulting binary.
25973 hardcode_minus_L=$hardcode_minus_L_GCJ
25975 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25976 # the resulting binary.
25977 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25979 # Set to yes if building a shared library automatically hardcodes DIR into the library
25980 # and all subsequent libraries and executables linked against it.
25981 hardcode_automatic=$hardcode_automatic_GCJ
25983 # Variables whose values should be saved in libtool wrapper scripts and
25984 # restored at relink time.
25985 variables_saved_for_relink="$variables_saved_for_relink"
25987 # Whether libtool must link a program against all its dependency libraries.
25988 link_all_deplibs=$link_all_deplibs_GCJ
25990 # Compile-time system search path for libraries
25991 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25993 # Run-time system search path for libraries
25994 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25996 # Fix the shell variable \$srcfile for the compiler.
25997 fix_srcfile_path="$fix_srcfile_path_GCJ"
25999 # Set to yes if exported symbols are required.
26000 always_export_symbols=$always_export_symbols_GCJ
26002 # The commands to list exported symbols.
26003 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26005 # The commands to extract the exported symbol list from a shared archive.
26006 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26008 # Symbols that should not be listed in the preloaded symbols.
26009 exclude_expsyms=$lt_exclude_expsyms_GCJ
26011 # Symbols that must always be exported.
26012 include_expsyms=$lt_include_expsyms_GCJ
26014 # ### END LIBTOOL TAG CONFIG: $tagname
26016 __EOF__
26019 else
26020 # If there is no Makefile yet, we rely on a make rule to execute
26021 # `config.status --recheck' to rerun these tests and create the
26022 # libtool script then.
26023 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26024 if test -f "$ltmain_in"; then
26025 test -f Makefile && make "$ltmain"
26030 ac_ext=c
26031 ac_cpp='$CPP $CPPFLAGS'
26032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26036 CC="$lt_save_CC"
26038 else
26039 tagname=""
26044 ac_ext=c
26045 ac_cpp='$CPP $CPPFLAGS'
26046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26051 # Source file extension for RC test sources.
26052 ac_ext=rc
26054 # Object file extension for compiled RC test sources.
26055 objext=o
26056 objext_RC=$objext
26058 # Code to be used in simple compile tests
26059 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26061 # Code to be used in simple link tests
26062 lt_simple_link_test_code="$lt_simple_compile_test_code"
26064 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26066 # If no C compiler was specified, use CC.
26067 LTCC=${LTCC-"$CC"}
26069 # If no C compiler flags were specified, use CFLAGS.
26070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26072 # Allow CC to be a program name with arguments.
26073 compiler=$CC
26076 # save warnings/boilerplate of simple test code
26077 ac_outfile=conftest.$ac_objext
26078 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26080 _lt_compiler_boilerplate=`cat conftest.err`
26081 $rm conftest*
26083 ac_outfile=conftest.$ac_objext
26084 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26086 _lt_linker_boilerplate=`cat conftest.err`
26087 $rm conftest*
26090 # Allow CC to be a program name with arguments.
26091 lt_save_CC="$CC"
26092 CC=${RC-"windres"}
26093 compiler=$CC
26094 compiler_RC=$CC
26095 for cc_temp in $compiler""; do
26096 case $cc_temp in
26097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26099 \-*) ;;
26100 *) break;;
26101 esac
26102 done
26103 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26105 lt_cv_prog_compiler_c_o_RC=yes
26107 # The else clause should only fire when bootstrapping the
26108 # libtool distribution, otherwise you forgot to ship ltmain.sh
26109 # with your package, and you will get complaints that there are
26110 # no rules to generate ltmain.sh.
26111 if test -f "$ltmain"; then
26112 # See if we are running on zsh, and set the options which allow our commands through
26113 # without removal of \ escapes.
26114 if test -n "${ZSH_VERSION+set}" ; then
26115 setopt NO_GLOB_SUBST
26117 # Now quote all the things that may contain metacharacters while being
26118 # careful not to overquote the AC_SUBSTed values. We take copies of the
26119 # variables and quote the copies for generation of the libtool script.
26120 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26121 SED SHELL STRIP \
26122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26124 deplibs_check_method reload_flag reload_cmds need_locks \
26125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26126 lt_cv_sys_global_symbol_to_c_name_address \
26127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26128 old_postinstall_cmds old_postuninstall_cmds \
26129 compiler_RC \
26130 CC_RC \
26131 LD_RC \
26132 lt_prog_compiler_wl_RC \
26133 lt_prog_compiler_pic_RC \
26134 lt_prog_compiler_static_RC \
26135 lt_prog_compiler_no_builtin_flag_RC \
26136 export_dynamic_flag_spec_RC \
26137 thread_safe_flag_spec_RC \
26138 whole_archive_flag_spec_RC \
26139 enable_shared_with_static_runtimes_RC \
26140 old_archive_cmds_RC \
26141 old_archive_from_new_cmds_RC \
26142 predep_objects_RC \
26143 postdep_objects_RC \
26144 predeps_RC \
26145 postdeps_RC \
26146 compiler_lib_search_path_RC \
26147 archive_cmds_RC \
26148 archive_expsym_cmds_RC \
26149 postinstall_cmds_RC \
26150 postuninstall_cmds_RC \
26151 old_archive_from_expsyms_cmds_RC \
26152 allow_undefined_flag_RC \
26153 no_undefined_flag_RC \
26154 export_symbols_cmds_RC \
26155 hardcode_libdir_flag_spec_RC \
26156 hardcode_libdir_flag_spec_ld_RC \
26157 hardcode_libdir_separator_RC \
26158 hardcode_automatic_RC \
26159 module_cmds_RC \
26160 module_expsym_cmds_RC \
26161 lt_cv_prog_compiler_c_o_RC \
26162 exclude_expsyms_RC \
26163 include_expsyms_RC; do
26165 case $var in
26166 old_archive_cmds_RC | \
26167 old_archive_from_new_cmds_RC | \
26168 archive_cmds_RC | \
26169 archive_expsym_cmds_RC | \
26170 module_cmds_RC | \
26171 module_expsym_cmds_RC | \
26172 old_archive_from_expsyms_cmds_RC | \
26173 export_symbols_cmds_RC | \
26174 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26175 postinstall_cmds | postuninstall_cmds | \
26176 old_postinstall_cmds | old_postuninstall_cmds | \
26177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26178 # Double-quote double-evaled strings.
26179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26184 esac
26185 done
26187 case $lt_echo in
26188 *'\$0 --fallback-echo"')
26189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26191 esac
26193 cfgfile="$ofile"
26195 cat <<__EOF__ >> "$cfgfile"
26196 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26200 # Shell to use when invoking shell scripts.
26201 SHELL=$lt_SHELL
26203 # Whether or not to build shared libraries.
26204 build_libtool_libs=$enable_shared
26206 # Whether or not to build static libraries.
26207 build_old_libs=$enable_static
26209 # Whether or not to add -lc for building shared libraries.
26210 build_libtool_need_lc=$archive_cmds_need_lc_RC
26212 # Whether or not to disallow shared libs when runtime libs are static
26213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26215 # Whether or not to optimize for fast installation.
26216 fast_install=$enable_fast_install
26218 # The host system.
26219 host_alias=$host_alias
26220 host=$host
26221 host_os=$host_os
26223 # The build system.
26224 build_alias=$build_alias
26225 build=$build
26226 build_os=$build_os
26228 # An echo program that does not interpret backslashes.
26229 echo=$lt_echo
26231 # The archiver.
26232 AR=$lt_AR
26233 AR_FLAGS=$lt_AR_FLAGS
26235 # A C compiler.
26236 LTCC=$lt_LTCC
26238 # LTCC compiler flags.
26239 LTCFLAGS=$lt_LTCFLAGS
26241 # A language-specific compiler.
26242 CC=$lt_compiler_RC
26244 # Is the compiler the GNU C compiler?
26245 with_gcc=$GCC_RC
26247 # An ERE matcher.
26248 EGREP=$lt_EGREP
26250 # The linker used to build libraries.
26251 LD=$lt_LD_RC
26253 # Whether we need hard or soft links.
26254 LN_S=$lt_LN_S
26256 # A BSD-compatible nm program.
26257 NM=$lt_NM
26259 # A symbol stripping program
26260 STRIP=$lt_STRIP
26262 # Used to examine libraries when file_magic_cmd begins "file"
26263 MAGIC_CMD=$MAGIC_CMD
26265 # Used on cygwin: DLL creation program.
26266 DLLTOOL="$DLLTOOL"
26268 # Used on cygwin: object dumper.
26269 OBJDUMP="$OBJDUMP"
26271 # Used on cygwin: assembler.
26272 AS="$AS"
26274 # The name of the directory that contains temporary libtool files.
26275 objdir=$objdir
26277 # How to create reloadable object files.
26278 reload_flag=$lt_reload_flag
26279 reload_cmds=$lt_reload_cmds
26281 # How to pass a linker flag through the compiler.
26282 wl=$lt_lt_prog_compiler_wl_RC
26284 # Object file suffix (normally "o").
26285 objext="$ac_objext"
26287 # Old archive suffix (normally "a").
26288 libext="$libext"
26290 # Shared library suffix (normally ".so").
26291 shrext_cmds='$shrext_cmds'
26293 # Executable file suffix (normally "").
26294 exeext="$exeext"
26296 # Additional compiler flags for building library objects.
26297 pic_flag=$lt_lt_prog_compiler_pic_RC
26298 pic_mode=$pic_mode
26300 # What is the maximum length of a command?
26301 max_cmd_len=$lt_cv_sys_max_cmd_len
26303 # Does compiler simultaneously support -c and -o options?
26304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26306 # Must we lock files when doing compilation?
26307 need_locks=$lt_need_locks
26309 # Do we need the lib prefix for modules?
26310 need_lib_prefix=$need_lib_prefix
26312 # Do we need a version for libraries?
26313 need_version=$need_version
26315 # Whether dlopen is supported.
26316 dlopen_support=$enable_dlopen
26318 # Whether dlopen of programs is supported.
26319 dlopen_self=$enable_dlopen_self
26321 # Whether dlopen of statically linked programs is supported.
26322 dlopen_self_static=$enable_dlopen_self_static
26324 # Compiler flag to prevent dynamic linking.
26325 link_static_flag=$lt_lt_prog_compiler_static_RC
26327 # Compiler flag to turn off builtin functions.
26328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26330 # Compiler flag to allow reflexive dlopens.
26331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26333 # Compiler flag to generate shared objects directly from archives.
26334 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26336 # Compiler flag to generate thread-safe objects.
26337 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26339 # Library versioning type.
26340 version_type=$version_type
26342 # Format of library name prefix.
26343 libname_spec=$lt_libname_spec
26345 # List of archive names. First name is the real one, the rest are links.
26346 # The last name is the one that the linker finds with -lNAME.
26347 library_names_spec=$lt_library_names_spec
26349 # The coded name of the library, if different from the real name.
26350 soname_spec=$lt_soname_spec
26352 # Commands used to build and install an old-style archive.
26353 RANLIB=$lt_RANLIB
26354 old_archive_cmds=$lt_old_archive_cmds_RC
26355 old_postinstall_cmds=$lt_old_postinstall_cmds
26356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26358 # Create an old-style archive from a shared archive.
26359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26361 # Create a temporary old-style archive to link instead of a shared archive.
26362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26364 # Commands used to build and install a shared archive.
26365 archive_cmds=$lt_archive_cmds_RC
26366 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26367 postinstall_cmds=$lt_postinstall_cmds
26368 postuninstall_cmds=$lt_postuninstall_cmds
26370 # Commands used to build a loadable module (assumed same as above if empty)
26371 module_cmds=$lt_module_cmds_RC
26372 module_expsym_cmds=$lt_module_expsym_cmds_RC
26374 # Commands to strip libraries.
26375 old_striplib=$lt_old_striplib
26376 striplib=$lt_striplib
26378 # Dependencies to place before the objects being linked to create a
26379 # shared library.
26380 predep_objects=$lt_predep_objects_RC
26382 # Dependencies to place after the objects being linked to create a
26383 # shared library.
26384 postdep_objects=$lt_postdep_objects_RC
26386 # Dependencies to place before the objects being linked to create a
26387 # shared library.
26388 predeps=$lt_predeps_RC
26390 # Dependencies to place after the objects being linked to create a
26391 # shared library.
26392 postdeps=$lt_postdeps_RC
26394 # The library search path used internally by the compiler when linking
26395 # a shared library.
26396 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26398 # Method to check whether dependent libraries are shared objects.
26399 deplibs_check_method=$lt_deplibs_check_method
26401 # Command to use when deplibs_check_method == file_magic.
26402 file_magic_cmd=$lt_file_magic_cmd
26404 # Flag that allows shared libraries with undefined symbols to be built.
26405 allow_undefined_flag=$lt_allow_undefined_flag_RC
26407 # Flag that forces no undefined symbols.
26408 no_undefined_flag=$lt_no_undefined_flag_RC
26410 # Commands used to finish a libtool library installation in a directory.
26411 finish_cmds=$lt_finish_cmds
26413 # Same as above, but a single script fragment to be evaled but not shown.
26414 finish_eval=$lt_finish_eval
26416 # Take the output of nm and produce a listing of raw symbols and C names.
26417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26419 # Transform the output of nm in a proper C declaration
26420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26422 # Transform the output of nm in a C name address pair
26423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26425 # This is the shared library runtime path variable.
26426 runpath_var=$runpath_var
26428 # This is the shared library path variable.
26429 shlibpath_var=$shlibpath_var
26431 # Is shlibpath searched before the hard-coded library search path?
26432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26434 # How to hardcode a shared library path into an executable.
26435 hardcode_action=$hardcode_action_RC
26437 # Whether we should hardcode library paths into libraries.
26438 hardcode_into_libs=$hardcode_into_libs
26440 # Flag to hardcode \$libdir into a binary during linking.
26441 # This must work even if \$libdir does not exist.
26442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26444 # If ld is used when linking, flag to hardcode \$libdir into
26445 # a binary during linking. This must work even if \$libdir does
26446 # not exist.
26447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26449 # Whether we need a single -rpath flag with a separated argument.
26450 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26453 # resulting binary.
26454 hardcode_direct=$hardcode_direct_RC
26456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26457 # resulting binary.
26458 hardcode_minus_L=$hardcode_minus_L_RC
26460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26461 # the resulting binary.
26462 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26464 # Set to yes if building a shared library automatically hardcodes DIR into the library
26465 # and all subsequent libraries and executables linked against it.
26466 hardcode_automatic=$hardcode_automatic_RC
26468 # Variables whose values should be saved in libtool wrapper scripts and
26469 # restored at relink time.
26470 variables_saved_for_relink="$variables_saved_for_relink"
26472 # Whether libtool must link a program against all its dependency libraries.
26473 link_all_deplibs=$link_all_deplibs_RC
26475 # Compile-time system search path for libraries
26476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26478 # Run-time system search path for libraries
26479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26481 # Fix the shell variable \$srcfile for the compiler.
26482 fix_srcfile_path="$fix_srcfile_path_RC"
26484 # Set to yes if exported symbols are required.
26485 always_export_symbols=$always_export_symbols_RC
26487 # The commands to list exported symbols.
26488 export_symbols_cmds=$lt_export_symbols_cmds_RC
26490 # The commands to extract the exported symbol list from a shared archive.
26491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26493 # Symbols that should not be listed in the preloaded symbols.
26494 exclude_expsyms=$lt_exclude_expsyms_RC
26496 # Symbols that must always be exported.
26497 include_expsyms=$lt_include_expsyms_RC
26499 # ### END LIBTOOL TAG CONFIG: $tagname
26501 __EOF__
26504 else
26505 # If there is no Makefile yet, we rely on a make rule to execute
26506 # `config.status --recheck' to rerun these tests and create the
26507 # libtool script then.
26508 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26509 if test -f "$ltmain_in"; then
26510 test -f Makefile && make "$ltmain"
26515 ac_ext=c
26516 ac_cpp='$CPP $CPPFLAGS'
26517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26521 CC="$lt_save_CC"
26526 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26527 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26528 { (exit 1); exit 1; }; }
26530 esac
26532 # Append the new tag name to the list of available tags.
26533 if test -n "$tagname" ; then
26534 available_tags="$available_tags $tagname"
26537 done
26538 IFS="$lt_save_ifs"
26540 # Now substitute the updated list of available tags.
26541 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26542 mv "${ofile}T" "$ofile"
26543 chmod +x "$ofile"
26544 else
26545 rm -f "${ofile}T"
26546 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26547 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26548 { (exit 1); exit 1; }; }
26554 # This can be used to rebuild libtool when needed
26555 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26557 # Always use our own libtool.
26558 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26560 # Prevent multiple expansion
26582 if test "$lt_cv_dlopen_self" = "yes" ; then
26584 cat >>confdefs.h <<\_ACEOF
26585 #define CAN_DLOPEN_SELF 1
26586 _ACEOF
26590 etags_version=`$ETAGS --version 2>&1`
26591 case "$etags_version" in
26592 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26593 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26594 *) ETAGSFLAGS="" ;;
26595 esac
26596 ETAGSFLAGS=$ETAGSFLAGS
26599 if test "$WITH_LLVMGCCDIR" = "default" ; then
26600 LLVMGCC="llvm-gcc${EXEEXT}"
26601 LLVMGXX="llvm-g++${EXEEXT}"
26602 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26603 set dummy $LLVMGCC; ac_word=$2
26604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26606 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26607 echo $ECHO_N "(cached) $ECHO_C" >&6
26608 else
26609 case $LLVMGCC in
26610 [\\/]* | ?:[\\/]*)
26611 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26615 for as_dir in $PATH
26617 IFS=$as_save_IFS
26618 test -z "$as_dir" && as_dir=.
26619 for ac_exec_ext in '' $ac_executable_extensions; do
26620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26621 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26623 break 2
26625 done
26626 done
26627 IFS=$as_save_IFS
26630 esac
26632 LLVMGCC=$ac_cv_path_LLVMGCC
26633 if test -n "$LLVMGCC"; then
26634 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26635 echo "${ECHO_T}$LLVMGCC" >&6; }
26636 else
26637 { echo "$as_me:$LINENO: result: no" >&5
26638 echo "${ECHO_T}no" >&6; }
26642 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26643 set dummy $LLVMGXX; ac_word=$2
26644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26646 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26647 echo $ECHO_N "(cached) $ECHO_C" >&6
26648 else
26649 case $LLVMGXX in
26650 [\\/]* | ?:[\\/]*)
26651 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26655 for as_dir in $PATH
26657 IFS=$as_save_IFS
26658 test -z "$as_dir" && as_dir=.
26659 for ac_exec_ext in '' $ac_executable_extensions; do
26660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26661 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26663 break 2
26665 done
26666 done
26667 IFS=$as_save_IFS
26670 esac
26672 LLVMGXX=$ac_cv_path_LLVMGXX
26673 if test -n "$LLVMGXX"; then
26674 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26675 echo "${ECHO_T}$LLVMGXX" >&6; }
26676 else
26677 { echo "$as_me:$LINENO: result: no" >&5
26678 echo "${ECHO_T}no" >&6; }
26682 else
26683 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26684 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26685 LLVMGCC=$LLVMGCC
26687 LLVMGXX=$LLVMGXX
26691 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26692 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26694 ICC=no
26695 IXX=no
26696 case $CC in
26697 icc*|icpc*)
26698 ICC=yes
26699 IXX=yes
26703 esac
26705 if test "$GCC" != "yes" && test "$ICC" != "yes"
26706 then
26707 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26708 echo "$as_me: error: gcc|icc required but not found" >&2;}
26709 { (exit 1); exit 1; }; }
26712 if test "$GXX" != "yes" && test "$IXX" != "yes"
26713 then
26714 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26715 echo "$as_me: error: g++|icc required but not found" >&2;}
26716 { (exit 1); exit 1; }; }
26719 if test "$GCC" = "yes"
26720 then
26721 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26722 if test "$gccmajor" -lt "3"
26723 then
26724 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26725 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26726 { (exit 1); exit 1; }; }
26730 if test -z "$llvm_cv_gnu_make_command"
26731 then
26732 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26733 echo "$as_me: error: GNU Make required but not found" >&2;}
26734 { (exit 1); exit 1; }; }
26737 { echo "$as_me:$LINENO: result: ok" >&5
26738 echo "${ECHO_T}ok" >&6; }
26742 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26743 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26744 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26745 echo $ECHO_N "(cached) $ECHO_C" >&6
26746 else
26747 ac_check_lib_save_LIBS=$LIBS
26748 LIBS="-lelf $LIBS"
26749 cat >conftest.$ac_ext <<_ACEOF
26750 /* confdefs.h. */
26751 _ACEOF
26752 cat confdefs.h >>conftest.$ac_ext
26753 cat >>conftest.$ac_ext <<_ACEOF
26754 /* end confdefs.h. */
26756 /* Override any GCC internal prototype to avoid an error.
26757 Use char because int might match the return type of a GCC
26758 builtin and then its argument prototype would still apply. */
26759 #ifdef __cplusplus
26760 extern "C"
26761 #endif
26762 char elf_begin ();
26764 main ()
26766 return elf_begin ();
26768 return 0;
26770 _ACEOF
26771 rm -f conftest.$ac_objext conftest$ac_exeext
26772 if { (ac_try="$ac_link"
26773 case "(($ac_try" in
26774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775 *) ac_try_echo=$ac_try;;
26776 esac
26777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26778 (eval "$ac_link") 2>conftest.er1
26779 ac_status=$?
26780 grep -v '^ *+' conftest.er1 >conftest.err
26781 rm -f conftest.er1
26782 cat conftest.err >&5
26783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784 (exit $ac_status); } &&
26785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26786 { (case "(($ac_try" in
26787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26788 *) ac_try_echo=$ac_try;;
26789 esac
26790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26791 (eval "$ac_try") 2>&5
26792 ac_status=$?
26793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794 (exit $ac_status); }; } &&
26795 { ac_try='test -s conftest$ac_exeext'
26796 { (case "(($ac_try" in
26797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26798 *) ac_try_echo=$ac_try;;
26799 esac
26800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26801 (eval "$ac_try") 2>&5
26802 ac_status=$?
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); }; }; then
26805 ac_cv_lib_elf_elf_begin=yes
26806 else
26807 echo "$as_me: failed program was:" >&5
26808 sed 's/^/| /' conftest.$ac_ext >&5
26810 ac_cv_lib_elf_elf_begin=no
26813 rm -f core conftest.err conftest.$ac_objext \
26814 conftest$ac_exeext conftest.$ac_ext
26815 LIBS=$ac_check_lib_save_LIBS
26817 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26818 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26819 if test $ac_cv_lib_elf_elf_begin = yes; then
26820 cat >>confdefs.h <<_ACEOF
26821 #define HAVE_LIBELF 1
26822 _ACEOF
26824 LIBS="-lelf $LIBS"
26829 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26830 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26831 if test "${ac_cv_lib_m_sin+set}" = set; then
26832 echo $ECHO_N "(cached) $ECHO_C" >&6
26833 else
26834 ac_check_lib_save_LIBS=$LIBS
26835 LIBS="-lm $LIBS"
26836 cat >conftest.$ac_ext <<_ACEOF
26837 /* confdefs.h. */
26838 _ACEOF
26839 cat confdefs.h >>conftest.$ac_ext
26840 cat >>conftest.$ac_ext <<_ACEOF
26841 /* end confdefs.h. */
26843 /* Override any GCC internal prototype to avoid an error.
26844 Use char because int might match the return type of a GCC
26845 builtin and then its argument prototype would still apply. */
26846 #ifdef __cplusplus
26847 extern "C"
26848 #endif
26849 char sin ();
26851 main ()
26853 return sin ();
26855 return 0;
26857 _ACEOF
26858 rm -f conftest.$ac_objext conftest$ac_exeext
26859 if { (ac_try="$ac_link"
26860 case "(($ac_try" in
26861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862 *) ac_try_echo=$ac_try;;
26863 esac
26864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865 (eval "$ac_link") 2>conftest.er1
26866 ac_status=$?
26867 grep -v '^ *+' conftest.er1 >conftest.err
26868 rm -f conftest.er1
26869 cat conftest.err >&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } &&
26872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26873 { (case "(($ac_try" in
26874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26875 *) ac_try_echo=$ac_try;;
26876 esac
26877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26878 (eval "$ac_try") 2>&5
26879 ac_status=$?
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); }; } &&
26882 { ac_try='test -s conftest$ac_exeext'
26883 { (case "(($ac_try" in
26884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885 *) ac_try_echo=$ac_try;;
26886 esac
26887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888 (eval "$ac_try") 2>&5
26889 ac_status=$?
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; }; then
26892 ac_cv_lib_m_sin=yes
26893 else
26894 echo "$as_me: failed program was:" >&5
26895 sed 's/^/| /' conftest.$ac_ext >&5
26897 ac_cv_lib_m_sin=no
26900 rm -f core conftest.err conftest.$ac_objext \
26901 conftest$ac_exeext conftest.$ac_ext
26902 LIBS=$ac_check_lib_save_LIBS
26904 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26905 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26906 if test $ac_cv_lib_m_sin = yes; then
26907 cat >>confdefs.h <<_ACEOF
26908 #define HAVE_LIBM 1
26909 _ACEOF
26911 LIBS="-lm $LIBS"
26915 if test "$llvm_cv_os_type" = "MingW" ; then
26917 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26918 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26919 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26920 echo $ECHO_N "(cached) $ECHO_C" >&6
26921 else
26922 ac_check_lib_save_LIBS=$LIBS
26923 LIBS="-limagehlp $LIBS"
26924 cat >conftest.$ac_ext <<_ACEOF
26925 /* confdefs.h. */
26926 _ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h. */
26933 main ()
26935 return main ();
26937 return 0;
26939 _ACEOF
26940 rm -f conftest.$ac_objext conftest$ac_exeext
26941 if { (ac_try="$ac_link"
26942 case "(($ac_try" in
26943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944 *) ac_try_echo=$ac_try;;
26945 esac
26946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947 (eval "$ac_link") 2>conftest.er1
26948 ac_status=$?
26949 grep -v '^ *+' conftest.er1 >conftest.err
26950 rm -f conftest.er1
26951 cat conftest.err >&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); } &&
26954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26955 { (case "(($ac_try" in
26956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957 *) ac_try_echo=$ac_try;;
26958 esac
26959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26960 (eval "$ac_try") 2>&5
26961 ac_status=$?
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); }; } &&
26964 { ac_try='test -s conftest$ac_exeext'
26965 { (case "(($ac_try" in
26966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967 *) ac_try_echo=$ac_try;;
26968 esac
26969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26970 (eval "$ac_try") 2>&5
26971 ac_status=$?
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); }; }; then
26974 ac_cv_lib_imagehlp_main=yes
26975 else
26976 echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26979 ac_cv_lib_imagehlp_main=no
26982 rm -f core conftest.err conftest.$ac_objext \
26983 conftest$ac_exeext conftest.$ac_ext
26984 LIBS=$ac_check_lib_save_LIBS
26986 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26987 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26988 if test $ac_cv_lib_imagehlp_main = yes; then
26989 cat >>confdefs.h <<_ACEOF
26990 #define HAVE_LIBIMAGEHLP 1
26991 _ACEOF
26993 LIBS="-limagehlp $LIBS"
26998 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26999 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27000 if test "${ac_cv_lib_psapi_main+set}" = set; then
27001 echo $ECHO_N "(cached) $ECHO_C" >&6
27002 else
27003 ac_check_lib_save_LIBS=$LIBS
27004 LIBS="-lpsapi $LIBS"
27005 cat >conftest.$ac_ext <<_ACEOF
27006 /* confdefs.h. */
27007 _ACEOF
27008 cat confdefs.h >>conftest.$ac_ext
27009 cat >>conftest.$ac_ext <<_ACEOF
27010 /* end confdefs.h. */
27014 main ()
27016 return main ();
27018 return 0;
27020 _ACEOF
27021 rm -f conftest.$ac_objext conftest$ac_exeext
27022 if { (ac_try="$ac_link"
27023 case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27026 esac
27027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_link") 2>conftest.er1
27029 ac_status=$?
27030 grep -v '^ *+' conftest.er1 >conftest.err
27031 rm -f conftest.er1
27032 cat conftest.err >&5
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); } &&
27035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27036 { (case "(($ac_try" in
27037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27038 *) ac_try_echo=$ac_try;;
27039 esac
27040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27041 (eval "$ac_try") 2>&5
27042 ac_status=$?
27043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); }; } &&
27045 { ac_try='test -s conftest$ac_exeext'
27046 { (case "(($ac_try" in
27047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27048 *) ac_try_echo=$ac_try;;
27049 esac
27050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27051 (eval "$ac_try") 2>&5
27052 ac_status=$?
27053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 (exit $ac_status); }; }; then
27055 ac_cv_lib_psapi_main=yes
27056 else
27057 echo "$as_me: failed program was:" >&5
27058 sed 's/^/| /' conftest.$ac_ext >&5
27060 ac_cv_lib_psapi_main=no
27063 rm -f core conftest.err conftest.$ac_objext \
27064 conftest$ac_exeext conftest.$ac_ext
27065 LIBS=$ac_check_lib_save_LIBS
27067 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27068 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27069 if test $ac_cv_lib_psapi_main = yes; then
27070 cat >>confdefs.h <<_ACEOF
27071 #define HAVE_LIBPSAPI 1
27072 _ACEOF
27074 LIBS="-lpsapi $LIBS"
27080 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27081 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27082 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27083 echo $ECHO_N "(cached) $ECHO_C" >&6
27084 else
27085 ac_func_search_save_LIBS=$LIBS
27086 cat >conftest.$ac_ext <<_ACEOF
27087 /* confdefs.h. */
27088 _ACEOF
27089 cat confdefs.h >>conftest.$ac_ext
27090 cat >>conftest.$ac_ext <<_ACEOF
27091 /* end confdefs.h. */
27093 /* Override any GCC internal prototype to avoid an error.
27094 Use char because int might match the return type of a GCC
27095 builtin and then its argument prototype would still apply. */
27096 #ifdef __cplusplus
27097 extern "C"
27098 #endif
27099 char lt_dlopen ();
27101 main ()
27103 return lt_dlopen ();
27105 return 0;
27107 _ACEOF
27108 for ac_lib in '' ltdl; do
27109 if test -z "$ac_lib"; then
27110 ac_res="none required"
27111 else
27112 ac_res=-l$ac_lib
27113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27115 rm -f conftest.$ac_objext conftest$ac_exeext
27116 if { (ac_try="$ac_link"
27117 case "(($ac_try" in
27118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27119 *) ac_try_echo=$ac_try;;
27120 esac
27121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27122 (eval "$ac_link") 2>conftest.er1
27123 ac_status=$?
27124 grep -v '^ *+' conftest.er1 >conftest.err
27125 rm -f conftest.er1
27126 cat conftest.err >&5
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); } &&
27129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27130 { (case "(($ac_try" in
27131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132 *) ac_try_echo=$ac_try;;
27133 esac
27134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27135 (eval "$ac_try") 2>&5
27136 ac_status=$?
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); }; } &&
27139 { ac_try='test -s conftest$ac_exeext'
27140 { (case "(($ac_try" in
27141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27142 *) ac_try_echo=$ac_try;;
27143 esac
27144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27145 (eval "$ac_try") 2>&5
27146 ac_status=$?
27147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); }; }; then
27149 ac_cv_search_lt_dlopen=$ac_res
27150 else
27151 echo "$as_me: failed program was:" >&5
27152 sed 's/^/| /' conftest.$ac_ext >&5
27157 rm -f core conftest.err conftest.$ac_objext \
27158 conftest$ac_exeext
27159 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27160 break
27162 done
27163 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27165 else
27166 ac_cv_search_lt_dlopen=no
27168 rm conftest.$ac_ext
27169 LIBS=$ac_func_search_save_LIBS
27171 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27172 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27173 ac_res=$ac_cv_search_lt_dlopen
27174 if test "$ac_res" != no; then
27175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27177 cat >>confdefs.h <<\_ACEOF
27178 #define HAVE_LT_DLOPEN 1
27179 _ACEOF
27181 else
27182 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27183 not be available" >&5
27184 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27185 not be available" >&2;}
27189 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27190 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27191 if test "${ac_cv_search_dlopen+set}" = set; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27193 else
27194 ac_func_search_save_LIBS=$LIBS
27195 cat >conftest.$ac_ext <<_ACEOF
27196 /* confdefs.h. */
27197 _ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h. */
27202 /* Override any GCC internal prototype to avoid an error.
27203 Use char because int might match the return type of a GCC
27204 builtin and then its argument prototype would still apply. */
27205 #ifdef __cplusplus
27206 extern "C"
27207 #endif
27208 char dlopen ();
27210 main ()
27212 return dlopen ();
27214 return 0;
27216 _ACEOF
27217 for ac_lib in '' dl; do
27218 if test -z "$ac_lib"; then
27219 ac_res="none required"
27220 else
27221 ac_res=-l$ac_lib
27222 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27224 rm -f conftest.$ac_objext conftest$ac_exeext
27225 if { (ac_try="$ac_link"
27226 case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27229 esac
27230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231 (eval "$ac_link") 2>conftest.er1
27232 ac_status=$?
27233 grep -v '^ *+' conftest.er1 >conftest.err
27234 rm -f conftest.er1
27235 cat conftest.err >&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); } &&
27238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27239 { (case "(($ac_try" in
27240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27242 esac
27243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_try") 2>&5
27245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; } &&
27248 { ac_try='test -s conftest$ac_exeext'
27249 { (case "(($ac_try" in
27250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251 *) ac_try_echo=$ac_try;;
27252 esac
27253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_try") 2>&5
27255 ac_status=$?
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; }; then
27258 ac_cv_search_dlopen=$ac_res
27259 else
27260 echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.$ac_ext >&5
27266 rm -f core conftest.err conftest.$ac_objext \
27267 conftest$ac_exeext
27268 if test "${ac_cv_search_dlopen+set}" = set; then
27269 break
27271 done
27272 if test "${ac_cv_search_dlopen+set}" = set; then
27274 else
27275 ac_cv_search_dlopen=no
27277 rm conftest.$ac_ext
27278 LIBS=$ac_func_search_save_LIBS
27280 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27281 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27282 ac_res=$ac_cv_search_dlopen
27283 if test "$ac_res" != no; then
27284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27286 cat >>confdefs.h <<\_ACEOF
27287 #define HAVE_DLOPEN 1
27288 _ACEOF
27290 else
27291 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27292 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27296 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27297 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27298 if test "${ac_cv_search_mallinfo+set}" = set; then
27299 echo $ECHO_N "(cached) $ECHO_C" >&6
27300 else
27301 ac_func_search_save_LIBS=$LIBS
27302 cat >conftest.$ac_ext <<_ACEOF
27303 /* confdefs.h. */
27304 _ACEOF
27305 cat confdefs.h >>conftest.$ac_ext
27306 cat >>conftest.$ac_ext <<_ACEOF
27307 /* end confdefs.h. */
27309 /* Override any GCC internal prototype to avoid an error.
27310 Use char because int might match the return type of a GCC
27311 builtin and then its argument prototype would still apply. */
27312 #ifdef __cplusplus
27313 extern "C"
27314 #endif
27315 char mallinfo ();
27317 main ()
27319 return mallinfo ();
27321 return 0;
27323 _ACEOF
27324 for ac_lib in '' malloc; do
27325 if test -z "$ac_lib"; then
27326 ac_res="none required"
27327 else
27328 ac_res=-l$ac_lib
27329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27331 rm -f conftest.$ac_objext conftest$ac_exeext
27332 if { (ac_try="$ac_link"
27333 case "(($ac_try" in
27334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27335 *) ac_try_echo=$ac_try;;
27336 esac
27337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338 (eval "$ac_link") 2>conftest.er1
27339 ac_status=$?
27340 grep -v '^ *+' conftest.er1 >conftest.err
27341 rm -f conftest.er1
27342 cat conftest.err >&5
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); } &&
27345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27346 { (case "(($ac_try" in
27347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348 *) ac_try_echo=$ac_try;;
27349 esac
27350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351 (eval "$ac_try") 2>&5
27352 ac_status=$?
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; } &&
27355 { ac_try='test -s conftest$ac_exeext'
27356 { (case "(($ac_try" in
27357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358 *) ac_try_echo=$ac_try;;
27359 esac
27360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361 (eval "$ac_try") 2>&5
27362 ac_status=$?
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); }; }; then
27365 ac_cv_search_mallinfo=$ac_res
27366 else
27367 echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27373 rm -f core conftest.err conftest.$ac_objext \
27374 conftest$ac_exeext
27375 if test "${ac_cv_search_mallinfo+set}" = set; then
27376 break
27378 done
27379 if test "${ac_cv_search_mallinfo+set}" = set; then
27381 else
27382 ac_cv_search_mallinfo=no
27384 rm conftest.$ac_ext
27385 LIBS=$ac_func_search_save_LIBS
27387 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27388 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27389 ac_res=$ac_cv_search_mallinfo
27390 if test "$ac_res" != no; then
27391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27393 cat >>confdefs.h <<\_ACEOF
27394 #define HAVE_MALLINFO 1
27395 _ACEOF
27400 if test "$ENABLE_THREADS" -eq 1 ; then
27402 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27403 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27404 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27405 echo $ECHO_N "(cached) $ECHO_C" >&6
27406 else
27407 ac_check_lib_save_LIBS=$LIBS
27408 LIBS="-lpthread $LIBS"
27409 cat >conftest.$ac_ext <<_ACEOF
27410 /* confdefs.h. */
27411 _ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h. */
27416 /* Override any GCC internal prototype to avoid an error.
27417 Use char because int might match the return type of a GCC
27418 builtin and then its argument prototype would still apply. */
27419 #ifdef __cplusplus
27420 extern "C"
27421 #endif
27422 char pthread_mutex_init ();
27424 main ()
27426 return pthread_mutex_init ();
27428 return 0;
27430 _ACEOF
27431 rm -f conftest.$ac_objext conftest$ac_exeext
27432 if { (ac_try="$ac_link"
27433 case "(($ac_try" in
27434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27435 *) ac_try_echo=$ac_try;;
27436 esac
27437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438 (eval "$ac_link") 2>conftest.er1
27439 ac_status=$?
27440 grep -v '^ *+' conftest.er1 >conftest.err
27441 rm -f conftest.er1
27442 cat conftest.err >&5
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); } &&
27445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27446 { (case "(($ac_try" in
27447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448 *) ac_try_echo=$ac_try;;
27449 esac
27450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27451 (eval "$ac_try") 2>&5
27452 ac_status=$?
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); }; } &&
27455 { ac_try='test -s conftest$ac_exeext'
27456 { (case "(($ac_try" in
27457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27458 *) ac_try_echo=$ac_try;;
27459 esac
27460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27461 (eval "$ac_try") 2>&5
27462 ac_status=$?
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); }; }; then
27465 ac_cv_lib_pthread_pthread_mutex_init=yes
27466 else
27467 echo "$as_me: failed program was:" >&5
27468 sed 's/^/| /' conftest.$ac_ext >&5
27470 ac_cv_lib_pthread_pthread_mutex_init=no
27473 rm -f core conftest.err conftest.$ac_objext \
27474 conftest$ac_exeext conftest.$ac_ext
27475 LIBS=$ac_check_lib_save_LIBS
27477 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27478 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27479 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27480 cat >>confdefs.h <<_ACEOF
27481 #define HAVE_LIBPTHREAD 1
27482 _ACEOF
27484 LIBS="-lpthread $LIBS"
27488 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27489 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27490 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27491 echo $ECHO_N "(cached) $ECHO_C" >&6
27492 else
27493 ac_func_search_save_LIBS=$LIBS
27494 cat >conftest.$ac_ext <<_ACEOF
27495 /* confdefs.h. */
27496 _ACEOF
27497 cat confdefs.h >>conftest.$ac_ext
27498 cat >>conftest.$ac_ext <<_ACEOF
27499 /* end confdefs.h. */
27501 /* Override any GCC internal prototype to avoid an error.
27502 Use char because int might match the return type of a GCC
27503 builtin and then its argument prototype would still apply. */
27504 #ifdef __cplusplus
27505 extern "C"
27506 #endif
27507 char pthread_mutex_lock ();
27509 main ()
27511 return pthread_mutex_lock ();
27513 return 0;
27515 _ACEOF
27516 for ac_lib in '' pthread; do
27517 if test -z "$ac_lib"; then
27518 ac_res="none required"
27519 else
27520 ac_res=-l$ac_lib
27521 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27523 rm -f conftest.$ac_objext conftest$ac_exeext
27524 if { (ac_try="$ac_link"
27525 case "(($ac_try" in
27526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527 *) ac_try_echo=$ac_try;;
27528 esac
27529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530 (eval "$ac_link") 2>conftest.er1
27531 ac_status=$?
27532 grep -v '^ *+' conftest.er1 >conftest.err
27533 rm -f conftest.er1
27534 cat conftest.err >&5
27535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27536 (exit $ac_status); } &&
27537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27538 { (case "(($ac_try" in
27539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27540 *) ac_try_echo=$ac_try;;
27541 esac
27542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27543 (eval "$ac_try") 2>&5
27544 ac_status=$?
27545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546 (exit $ac_status); }; } &&
27547 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
27554 ac_status=$?
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; }; then
27557 ac_cv_search_pthread_mutex_lock=$ac_res
27558 else
27559 echo "$as_me: failed program was:" >&5
27560 sed 's/^/| /' conftest.$ac_ext >&5
27565 rm -f core conftest.err conftest.$ac_objext \
27566 conftest$ac_exeext
27567 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27568 break
27570 done
27571 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27573 else
27574 ac_cv_search_pthread_mutex_lock=no
27576 rm conftest.$ac_ext
27577 LIBS=$ac_func_search_save_LIBS
27579 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27580 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27581 ac_res=$ac_cv_search_pthread_mutex_lock
27582 if test "$ac_res" != no; then
27583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27585 cat >>confdefs.h <<\_ACEOF
27586 #define HAVE_PTHREAD_MUTEX_LOCK 1
27587 _ACEOF
27594 # Check whether --with-udis86 was given.
27595 if test "${with_udis86+set}" = set; then
27596 withval=$with_udis86;
27597 USE_UDIS86=1
27599 case "$withval" in
27600 /usr/lib|yes) ;;
27601 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27602 esac
27604 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27605 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27606 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27607 echo $ECHO_N "(cached) $ECHO_C" >&6
27608 else
27609 ac_check_lib_save_LIBS=$LIBS
27610 LIBS="-ludis86 $LIBS"
27611 cat >conftest.$ac_ext <<_ACEOF
27612 /* confdefs.h. */
27613 _ACEOF
27614 cat confdefs.h >>conftest.$ac_ext
27615 cat >>conftest.$ac_ext <<_ACEOF
27616 /* end confdefs.h. */
27618 /* Override any GCC internal prototype to avoid an error.
27619 Use char because int might match the return type of a GCC
27620 builtin and then its argument prototype would still apply. */
27621 #ifdef __cplusplus
27622 extern "C"
27623 #endif
27624 char ud_init ();
27626 main ()
27628 return ud_init ();
27630 return 0;
27632 _ACEOF
27633 rm -f conftest.$ac_objext conftest$ac_exeext
27634 if { (ac_try="$ac_link"
27635 case "(($ac_try" in
27636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27637 *) ac_try_echo=$ac_try;;
27638 esac
27639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27640 (eval "$ac_link") 2>conftest.er1
27641 ac_status=$?
27642 grep -v '^ *+' conftest.er1 >conftest.err
27643 rm -f conftest.er1
27644 cat conftest.err >&5
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); } &&
27647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27648 { (case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27651 esac
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_try") 2>&5
27654 ac_status=$?
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; } &&
27657 { ac_try='test -s conftest$ac_exeext'
27658 { (case "(($ac_try" in
27659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27660 *) ac_try_echo=$ac_try;;
27661 esac
27662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27663 (eval "$ac_try") 2>&5
27664 ac_status=$?
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); }; }; then
27667 ac_cv_lib_udis86_ud_init=yes
27668 else
27669 echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27672 ac_cv_lib_udis86_ud_init=no
27675 rm -f core conftest.err conftest.$ac_objext \
27676 conftest$ac_exeext conftest.$ac_ext
27677 LIBS=$ac_check_lib_save_LIBS
27679 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27680 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27681 if test $ac_cv_lib_udis86_ud_init = yes; then
27682 cat >>confdefs.h <<_ACEOF
27683 #define HAVE_LIBUDIS86 1
27684 _ACEOF
27686 LIBS="-ludis86 $LIBS"
27688 else
27690 echo "Error! You need to have libudis86 around."
27691 exit -1
27696 else
27697 USE_UDIS86=0
27702 cat >>confdefs.h <<_ACEOF
27703 #define USE_UDIS86 $USE_UDIS86
27704 _ACEOF
27713 ac_header_dirent=no
27714 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27715 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27716 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27717 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27719 echo $ECHO_N "(cached) $ECHO_C" >&6
27720 else
27721 cat >conftest.$ac_ext <<_ACEOF
27722 /* confdefs.h. */
27723 _ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h. */
27727 #include <sys/types.h>
27728 #include <$ac_hdr>
27731 main ()
27733 if ((DIR *) 0)
27734 return 0;
27736 return 0;
27738 _ACEOF
27739 rm -f conftest.$ac_objext
27740 if { (ac_try="$ac_compile"
27741 case "(($ac_try" in
27742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27744 esac
27745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746 (eval "$ac_compile") 2>conftest.er1
27747 ac_status=$?
27748 grep -v '^ *+' conftest.er1 >conftest.err
27749 rm -f conftest.er1
27750 cat conftest.err >&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); } &&
27753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27754 { (case "(($ac_try" in
27755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756 *) ac_try_echo=$ac_try;;
27757 esac
27758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759 (eval "$ac_try") 2>&5
27760 ac_status=$?
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); }; } &&
27763 { ac_try='test -s conftest.$ac_objext'
27764 { (case "(($ac_try" in
27765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766 *) ac_try_echo=$ac_try;;
27767 esac
27768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769 (eval "$ac_try") 2>&5
27770 ac_status=$?
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; }; then
27773 eval "$as_ac_Header=yes"
27774 else
27775 echo "$as_me: failed program was:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
27778 eval "$as_ac_Header=no"
27781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27783 ac_res=`eval echo '${'$as_ac_Header'}'`
27784 { echo "$as_me:$LINENO: result: $ac_res" >&5
27785 echo "${ECHO_T}$ac_res" >&6; }
27786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27787 cat >>confdefs.h <<_ACEOF
27788 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27789 _ACEOF
27791 ac_header_dirent=$ac_hdr; break
27794 done
27795 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27796 if test $ac_header_dirent = dirent.h; then
27797 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27798 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27799 if test "${ac_cv_search_opendir+set}" = set; then
27800 echo $ECHO_N "(cached) $ECHO_C" >&6
27801 else
27802 ac_func_search_save_LIBS=$LIBS
27803 cat >conftest.$ac_ext <<_ACEOF
27804 /* confdefs.h. */
27805 _ACEOF
27806 cat confdefs.h >>conftest.$ac_ext
27807 cat >>conftest.$ac_ext <<_ACEOF
27808 /* end confdefs.h. */
27810 /* Override any GCC internal prototype to avoid an error.
27811 Use char because int might match the return type of a GCC
27812 builtin and then its argument prototype would still apply. */
27813 #ifdef __cplusplus
27814 extern "C"
27815 #endif
27816 char opendir ();
27818 main ()
27820 return opendir ();
27822 return 0;
27824 _ACEOF
27825 for ac_lib in '' dir; do
27826 if test -z "$ac_lib"; then
27827 ac_res="none required"
27828 else
27829 ac_res=-l$ac_lib
27830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27832 rm -f conftest.$ac_objext conftest$ac_exeext
27833 if { (ac_try="$ac_link"
27834 case "(($ac_try" in
27835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27836 *) ac_try_echo=$ac_try;;
27837 esac
27838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27839 (eval "$ac_link") 2>conftest.er1
27840 ac_status=$?
27841 grep -v '^ *+' conftest.er1 >conftest.err
27842 rm -f conftest.er1
27843 cat conftest.err >&5
27844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); } &&
27846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27847 { (case "(($ac_try" in
27848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27849 *) ac_try_echo=$ac_try;;
27850 esac
27851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27852 (eval "$ac_try") 2>&5
27853 ac_status=$?
27854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855 (exit $ac_status); }; } &&
27856 { ac_try='test -s conftest$ac_exeext'
27857 { (case "(($ac_try" in
27858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27859 *) ac_try_echo=$ac_try;;
27860 esac
27861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27862 (eval "$ac_try") 2>&5
27863 ac_status=$?
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); }; }; then
27866 ac_cv_search_opendir=$ac_res
27867 else
27868 echo "$as_me: failed program was:" >&5
27869 sed 's/^/| /' conftest.$ac_ext >&5
27874 rm -f core conftest.err conftest.$ac_objext \
27875 conftest$ac_exeext
27876 if test "${ac_cv_search_opendir+set}" = set; then
27877 break
27879 done
27880 if test "${ac_cv_search_opendir+set}" = set; then
27882 else
27883 ac_cv_search_opendir=no
27885 rm conftest.$ac_ext
27886 LIBS=$ac_func_search_save_LIBS
27888 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27889 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27890 ac_res=$ac_cv_search_opendir
27891 if test "$ac_res" != no; then
27892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27896 else
27897 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27898 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27899 if test "${ac_cv_search_opendir+set}" = set; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27901 else
27902 ac_func_search_save_LIBS=$LIBS
27903 cat >conftest.$ac_ext <<_ACEOF
27904 /* confdefs.h. */
27905 _ACEOF
27906 cat confdefs.h >>conftest.$ac_ext
27907 cat >>conftest.$ac_ext <<_ACEOF
27908 /* end confdefs.h. */
27910 /* Override any GCC internal prototype to avoid an error.
27911 Use char because int might match the return type of a GCC
27912 builtin and then its argument prototype would still apply. */
27913 #ifdef __cplusplus
27914 extern "C"
27915 #endif
27916 char opendir ();
27918 main ()
27920 return opendir ();
27922 return 0;
27924 _ACEOF
27925 for ac_lib in '' x; do
27926 if test -z "$ac_lib"; then
27927 ac_res="none required"
27928 else
27929 ac_res=-l$ac_lib
27930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27932 rm -f conftest.$ac_objext conftest$ac_exeext
27933 if { (ac_try="$ac_link"
27934 case "(($ac_try" in
27935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27936 *) ac_try_echo=$ac_try;;
27937 esac
27938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27939 (eval "$ac_link") 2>conftest.er1
27940 ac_status=$?
27941 grep -v '^ *+' conftest.er1 >conftest.err
27942 rm -f conftest.er1
27943 cat conftest.err >&5
27944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945 (exit $ac_status); } &&
27946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27947 { (case "(($ac_try" in
27948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27949 *) ac_try_echo=$ac_try;;
27950 esac
27951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952 (eval "$ac_try") 2>&5
27953 ac_status=$?
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); }; } &&
27956 { ac_try='test -s conftest$ac_exeext'
27957 { (case "(($ac_try" in
27958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959 *) ac_try_echo=$ac_try;;
27960 esac
27961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27962 (eval "$ac_try") 2>&5
27963 ac_status=$?
27964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27965 (exit $ac_status); }; }; then
27966 ac_cv_search_opendir=$ac_res
27967 else
27968 echo "$as_me: failed program was:" >&5
27969 sed 's/^/| /' conftest.$ac_ext >&5
27974 rm -f core conftest.err conftest.$ac_objext \
27975 conftest$ac_exeext
27976 if test "${ac_cv_search_opendir+set}" = set; then
27977 break
27979 done
27980 if test "${ac_cv_search_opendir+set}" = set; then
27982 else
27983 ac_cv_search_opendir=no
27985 rm conftest.$ac_ext
27986 LIBS=$ac_func_search_save_LIBS
27988 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27989 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27990 ac_res=$ac_cv_search_opendir
27991 if test "$ac_res" != no; then
27992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27998 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27999 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28000 if test "${ac_cv_header_mmap_anon+set}" = set; then
28001 echo $ECHO_N "(cached) $ECHO_C" >&6
28002 else
28003 ac_ext=c
28004 ac_cpp='$CPP $CPPFLAGS'
28005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28009 cat >conftest.$ac_ext <<_ACEOF
28010 /* confdefs.h. */
28011 _ACEOF
28012 cat confdefs.h >>conftest.$ac_ext
28013 cat >>conftest.$ac_ext <<_ACEOF
28014 /* end confdefs.h. */
28015 #include <sys/mman.h>
28016 #include <unistd.h>
28017 #include <fcntl.h>
28019 main ()
28021 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28023 return 0;
28025 _ACEOF
28026 rm -f conftest.$ac_objext
28027 if { (ac_try="$ac_compile"
28028 case "(($ac_try" in
28029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030 *) ac_try_echo=$ac_try;;
28031 esac
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_compile") 2>conftest.er1
28034 ac_status=$?
28035 grep -v '^ *+' conftest.er1 >conftest.err
28036 rm -f conftest.er1
28037 cat conftest.err >&5
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); } &&
28040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28041 { (case "(($ac_try" in
28042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28043 *) ac_try_echo=$ac_try;;
28044 esac
28045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28046 (eval "$ac_try") 2>&5
28047 ac_status=$?
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); }; } &&
28050 { ac_try='test -s conftest.$ac_objext'
28051 { (case "(($ac_try" in
28052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28053 *) ac_try_echo=$ac_try;;
28054 esac
28055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28056 (eval "$ac_try") 2>&5
28057 ac_status=$?
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); }; }; then
28060 ac_cv_header_mmap_anon=yes
28061 else
28062 echo "$as_me: failed program was:" >&5
28063 sed 's/^/| /' conftest.$ac_ext >&5
28065 ac_cv_header_mmap_anon=no
28068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28069 ac_ext=c
28070 ac_cpp='$CPP $CPPFLAGS'
28071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28077 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28078 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28079 if test "$ac_cv_header_mmap_anon" = yes; then
28081 cat >>confdefs.h <<\_ACEOF
28082 #define HAVE_MMAP_ANONYMOUS 1
28083 _ACEOF
28087 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28088 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28089 if test "${ac_cv_header_stat_broken+set}" = set; then
28090 echo $ECHO_N "(cached) $ECHO_C" >&6
28091 else
28092 cat >conftest.$ac_ext <<_ACEOF
28093 /* confdefs.h. */
28094 _ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h. */
28098 #include <sys/types.h>
28099 #include <sys/stat.h>
28101 #if defined S_ISBLK && defined S_IFDIR
28102 # if S_ISBLK (S_IFDIR)
28103 You lose.
28104 # endif
28105 #endif
28107 #if defined S_ISBLK && defined S_IFCHR
28108 # if S_ISBLK (S_IFCHR)
28109 You lose.
28110 # endif
28111 #endif
28113 #if defined S_ISLNK && defined S_IFREG
28114 # if S_ISLNK (S_IFREG)
28115 You lose.
28116 # endif
28117 #endif
28119 #if defined S_ISSOCK && defined S_IFREG
28120 # if S_ISSOCK (S_IFREG)
28121 You lose.
28122 # endif
28123 #endif
28125 _ACEOF
28126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28127 $EGREP "You lose" >/dev/null 2>&1; then
28128 ac_cv_header_stat_broken=yes
28129 else
28130 ac_cv_header_stat_broken=no
28132 rm -f conftest*
28135 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28136 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28137 if test $ac_cv_header_stat_broken = yes; then
28139 cat >>confdefs.h <<\_ACEOF
28140 #define STAT_MACROS_BROKEN 1
28141 _ACEOF
28145 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28147 if test "${ac_cv_header_stdc+set}" = set; then
28148 echo $ECHO_N "(cached) $ECHO_C" >&6
28149 else
28150 cat >conftest.$ac_ext <<_ACEOF
28151 /* confdefs.h. */
28152 _ACEOF
28153 cat confdefs.h >>conftest.$ac_ext
28154 cat >>conftest.$ac_ext <<_ACEOF
28155 /* end confdefs.h. */
28156 #include <stdlib.h>
28157 #include <stdarg.h>
28158 #include <string.h>
28159 #include <float.h>
28162 main ()
28166 return 0;
28168 _ACEOF
28169 rm -f conftest.$ac_objext
28170 if { (ac_try="$ac_compile"
28171 case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28174 esac
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_compile") 2>conftest.er1
28177 ac_status=$?
28178 grep -v '^ *+' conftest.er1 >conftest.err
28179 rm -f conftest.er1
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); } &&
28183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28184 { (case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28187 esac
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189 (eval "$ac_try") 2>&5
28190 ac_status=$?
28191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); }; } &&
28193 { ac_try='test -s conftest.$ac_objext'
28194 { (case "(($ac_try" in
28195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196 *) ac_try_echo=$ac_try;;
28197 esac
28198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199 (eval "$ac_try") 2>&5
28200 ac_status=$?
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); }; }; then
28203 ac_cv_header_stdc=yes
28204 else
28205 echo "$as_me: failed program was:" >&5
28206 sed 's/^/| /' conftest.$ac_ext >&5
28208 ac_cv_header_stdc=no
28211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28213 if test $ac_cv_header_stdc = yes; then
28214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28215 cat >conftest.$ac_ext <<_ACEOF
28216 /* confdefs.h. */
28217 _ACEOF
28218 cat confdefs.h >>conftest.$ac_ext
28219 cat >>conftest.$ac_ext <<_ACEOF
28220 /* end confdefs.h. */
28221 #include <string.h>
28223 _ACEOF
28224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28225 $EGREP "memchr" >/dev/null 2>&1; then
28227 else
28228 ac_cv_header_stdc=no
28230 rm -f conftest*
28234 if test $ac_cv_header_stdc = yes; then
28235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28236 cat >conftest.$ac_ext <<_ACEOF
28237 /* confdefs.h. */
28238 _ACEOF
28239 cat confdefs.h >>conftest.$ac_ext
28240 cat >>conftest.$ac_ext <<_ACEOF
28241 /* end confdefs.h. */
28242 #include <stdlib.h>
28244 _ACEOF
28245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28246 $EGREP "free" >/dev/null 2>&1; then
28248 else
28249 ac_cv_header_stdc=no
28251 rm -f conftest*
28255 if test $ac_cv_header_stdc = yes; then
28256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28257 if test "$cross_compiling" = yes; then
28259 else
28260 cat >conftest.$ac_ext <<_ACEOF
28261 /* confdefs.h. */
28262 _ACEOF
28263 cat confdefs.h >>conftest.$ac_ext
28264 cat >>conftest.$ac_ext <<_ACEOF
28265 /* end confdefs.h. */
28266 #include <ctype.h>
28267 #include <stdlib.h>
28268 #if ((' ' & 0x0FF) == 0x020)
28269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28271 #else
28272 # define ISLOWER(c) \
28273 (('a' <= (c) && (c) <= 'i') \
28274 || ('j' <= (c) && (c) <= 'r') \
28275 || ('s' <= (c) && (c) <= 'z'))
28276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28277 #endif
28279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28281 main ()
28283 int i;
28284 for (i = 0; i < 256; i++)
28285 if (XOR (islower (i), ISLOWER (i))
28286 || toupper (i) != TOUPPER (i))
28287 return 2;
28288 return 0;
28290 _ACEOF
28291 rm -f conftest$ac_exeext
28292 if { (ac_try="$ac_link"
28293 case "(($ac_try" in
28294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28295 *) ac_try_echo=$ac_try;;
28296 esac
28297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28298 (eval "$ac_link") 2>&5
28299 ac_status=$?
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28302 { (case "(($ac_try" in
28303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304 *) ac_try_echo=$ac_try;;
28305 esac
28306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307 (eval "$ac_try") 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
28312 else
28313 echo "$as_me: program exited with status $ac_status" >&5
28314 echo "$as_me: failed program was:" >&5
28315 sed 's/^/| /' conftest.$ac_ext >&5
28317 ( exit $ac_status )
28318 ac_cv_header_stdc=no
28320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28326 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28327 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28328 if test $ac_cv_header_stdc = yes; then
28330 cat >>confdefs.h <<\_ACEOF
28331 #define STDC_HEADERS 1
28332 _ACEOF
28336 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28337 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28338 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28339 echo $ECHO_N "(cached) $ECHO_C" >&6
28340 else
28341 cat >conftest.$ac_ext <<_ACEOF
28342 /* confdefs.h. */
28343 _ACEOF
28344 cat confdefs.h >>conftest.$ac_ext
28345 cat >>conftest.$ac_ext <<_ACEOF
28346 /* end confdefs.h. */
28347 #include <sys/types.h>
28348 #include <sys/wait.h>
28349 #ifndef WEXITSTATUS
28350 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28351 #endif
28352 #ifndef WIFEXITED
28353 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28354 #endif
28357 main ()
28359 int s;
28360 wait (&s);
28361 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28363 return 0;
28365 _ACEOF
28366 rm -f conftest.$ac_objext
28367 if { (ac_try="$ac_compile"
28368 case "(($ac_try" in
28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370 *) ac_try_echo=$ac_try;;
28371 esac
28372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373 (eval "$ac_compile") 2>conftest.er1
28374 ac_status=$?
28375 grep -v '^ *+' conftest.er1 >conftest.err
28376 rm -f conftest.er1
28377 cat conftest.err >&5
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); } &&
28380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28381 { (case "(($ac_try" in
28382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28383 *) ac_try_echo=$ac_try;;
28384 esac
28385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386 (eval "$ac_try") 2>&5
28387 ac_status=$?
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); }; } &&
28390 { ac_try='test -s conftest.$ac_objext'
28391 { (case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28394 esac
28395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_try") 2>&5
28397 ac_status=$?
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 ac_cv_header_sys_wait_h=yes
28401 else
28402 echo "$as_me: failed program was:" >&5
28403 sed 's/^/| /' conftest.$ac_ext >&5
28405 ac_cv_header_sys_wait_h=no
28408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28410 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28411 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28412 if test $ac_cv_header_sys_wait_h = yes; then
28414 cat >>confdefs.h <<\_ACEOF
28415 #define HAVE_SYS_WAIT_H 1
28416 _ACEOF
28420 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28421 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28422 if test "${ac_cv_header_time+set}" = set; then
28423 echo $ECHO_N "(cached) $ECHO_C" >&6
28424 else
28425 cat >conftest.$ac_ext <<_ACEOF
28426 /* confdefs.h. */
28427 _ACEOF
28428 cat confdefs.h >>conftest.$ac_ext
28429 cat >>conftest.$ac_ext <<_ACEOF
28430 /* end confdefs.h. */
28431 #include <sys/types.h>
28432 #include <sys/time.h>
28433 #include <time.h>
28436 main ()
28438 if ((struct tm *) 0)
28439 return 0;
28441 return 0;
28443 _ACEOF
28444 rm -f conftest.$ac_objext
28445 if { (ac_try="$ac_compile"
28446 case "(($ac_try" in
28447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28448 *) ac_try_echo=$ac_try;;
28449 esac
28450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28451 (eval "$ac_compile") 2>conftest.er1
28452 ac_status=$?
28453 grep -v '^ *+' conftest.er1 >conftest.err
28454 rm -f conftest.er1
28455 cat conftest.err >&5
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); } &&
28458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28459 { (case "(($ac_try" in
28460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28461 *) ac_try_echo=$ac_try;;
28462 esac
28463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28464 (eval "$ac_try") 2>&5
28465 ac_status=$?
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); }; } &&
28468 { ac_try='test -s conftest.$ac_objext'
28469 { (case "(($ac_try" in
28470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28471 *) ac_try_echo=$ac_try;;
28472 esac
28473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28474 (eval "$ac_try") 2>&5
28475 ac_status=$?
28476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477 (exit $ac_status); }; }; then
28478 ac_cv_header_time=yes
28479 else
28480 echo "$as_me: failed program was:" >&5
28481 sed 's/^/| /' conftest.$ac_ext >&5
28483 ac_cv_header_time=no
28486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28488 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28489 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28490 if test $ac_cv_header_time = yes; then
28492 cat >>confdefs.h <<\_ACEOF
28493 #define TIME_WITH_SYS_TIME 1
28494 _ACEOF
28505 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28512 echo $ECHO_N "(cached) $ECHO_C" >&6
28514 ac_res=`eval echo '${'$as_ac_Header'}'`
28515 { echo "$as_me:$LINENO: result: $ac_res" >&5
28516 echo "${ECHO_T}$ac_res" >&6; }
28517 else
28518 # Is the header compilable?
28519 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28521 cat >conftest.$ac_ext <<_ACEOF
28522 /* confdefs.h. */
28523 _ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h. */
28527 $ac_includes_default
28528 #include <$ac_header>
28529 _ACEOF
28530 rm -f conftest.$ac_objext
28531 if { (ac_try="$ac_compile"
28532 case "(($ac_try" in
28533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28534 *) ac_try_echo=$ac_try;;
28535 esac
28536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28537 (eval "$ac_compile") 2>conftest.er1
28538 ac_status=$?
28539 grep -v '^ *+' conftest.er1 >conftest.err
28540 rm -f conftest.er1
28541 cat conftest.err >&5
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); } &&
28544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28545 { (case "(($ac_try" in
28546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547 *) ac_try_echo=$ac_try;;
28548 esac
28549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550 (eval "$ac_try") 2>&5
28551 ac_status=$?
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); }; } &&
28554 { ac_try='test -s conftest.$ac_objext'
28555 { (case "(($ac_try" in
28556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28557 *) ac_try_echo=$ac_try;;
28558 esac
28559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28560 (eval "$ac_try") 2>&5
28561 ac_status=$?
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; }; then
28564 ac_header_compiler=yes
28565 else
28566 echo "$as_me: failed program was:" >&5
28567 sed 's/^/| /' conftest.$ac_ext >&5
28569 ac_header_compiler=no
28572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28574 echo "${ECHO_T}$ac_header_compiler" >&6; }
28576 # Is the header present?
28577 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28578 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28579 cat >conftest.$ac_ext <<_ACEOF
28580 /* confdefs.h. */
28581 _ACEOF
28582 cat confdefs.h >>conftest.$ac_ext
28583 cat >>conftest.$ac_ext <<_ACEOF
28584 /* end confdefs.h. */
28585 #include <$ac_header>
28586 _ACEOF
28587 if { (ac_try="$ac_cpp conftest.$ac_ext"
28588 case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28591 esac
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28594 ac_status=$?
28595 grep -v '^ *+' conftest.er1 >conftest.err
28596 rm -f conftest.er1
28597 cat conftest.err >&5
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); } >/dev/null; then
28600 if test -s conftest.err; then
28601 ac_cpp_err=$ac_c_preproc_warn_flag
28602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28603 else
28604 ac_cpp_err=
28606 else
28607 ac_cpp_err=yes
28609 if test -z "$ac_cpp_err"; then
28610 ac_header_preproc=yes
28611 else
28612 echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28615 ac_header_preproc=no
28618 rm -f conftest.err conftest.$ac_ext
28619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28620 echo "${ECHO_T}$ac_header_preproc" >&6; }
28622 # So? What about this header?
28623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28624 yes:no: )
28625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28629 ac_header_preproc=yes
28631 no:yes:* )
28632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28644 ( cat <<\_ASBOX
28645 ## ----------------------------------- ##
28646 ## Report this to llvmbugs@cs.uiuc.edu ##
28647 ## ----------------------------------- ##
28648 _ASBOX
28649 ) | sed "s/^/$as_me: WARNING: /" >&2
28651 esac
28652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28655 echo $ECHO_N "(cached) $ECHO_C" >&6
28656 else
28657 eval "$as_ac_Header=\$ac_header_preproc"
28659 ac_res=`eval echo '${'$as_ac_Header'}'`
28660 { echo "$as_me:$LINENO: result: $ac_res" >&5
28661 echo "${ECHO_T}$ac_res" >&6; }
28664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28665 cat >>confdefs.h <<_ACEOF
28666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28667 _ACEOF
28671 done
28679 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28686 echo $ECHO_N "(cached) $ECHO_C" >&6
28688 ac_res=`eval echo '${'$as_ac_Header'}'`
28689 { echo "$as_me:$LINENO: result: $ac_res" >&5
28690 echo "${ECHO_T}$ac_res" >&6; }
28691 else
28692 # Is the header compilable?
28693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28695 cat >conftest.$ac_ext <<_ACEOF
28696 /* confdefs.h. */
28697 _ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h. */
28701 $ac_includes_default
28702 #include <$ac_header>
28703 _ACEOF
28704 rm -f conftest.$ac_objext
28705 if { (ac_try="$ac_compile"
28706 case "(($ac_try" in
28707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28709 esac
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_compile") 2>conftest.er1
28712 ac_status=$?
28713 grep -v '^ *+' conftest.er1 >conftest.err
28714 rm -f conftest.er1
28715 cat conftest.err >&5
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); } &&
28718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28719 { (case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28722 esac
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_try") 2>&5
28725 ac_status=$?
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; } &&
28728 { ac_try='test -s conftest.$ac_objext'
28729 { (case "(($ac_try" in
28730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731 *) ac_try_echo=$ac_try;;
28732 esac
28733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734 (eval "$ac_try") 2>&5
28735 ac_status=$?
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; }; then
28738 ac_header_compiler=yes
28739 else
28740 echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28743 ac_header_compiler=no
28746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28748 echo "${ECHO_T}$ac_header_compiler" >&6; }
28750 # Is the header present?
28751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28753 cat >conftest.$ac_ext <<_ACEOF
28754 /* confdefs.h. */
28755 _ACEOF
28756 cat confdefs.h >>conftest.$ac_ext
28757 cat >>conftest.$ac_ext <<_ACEOF
28758 /* end confdefs.h. */
28759 #include <$ac_header>
28760 _ACEOF
28761 if { (ac_try="$ac_cpp conftest.$ac_ext"
28762 case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28765 esac
28766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28768 ac_status=$?
28769 grep -v '^ *+' conftest.er1 >conftest.err
28770 rm -f conftest.er1
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } >/dev/null; then
28774 if test -s conftest.err; then
28775 ac_cpp_err=$ac_c_preproc_warn_flag
28776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28777 else
28778 ac_cpp_err=
28780 else
28781 ac_cpp_err=yes
28783 if test -z "$ac_cpp_err"; then
28784 ac_header_preproc=yes
28785 else
28786 echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28789 ac_header_preproc=no
28792 rm -f conftest.err conftest.$ac_ext
28793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28794 echo "${ECHO_T}$ac_header_preproc" >&6; }
28796 # So? What about this header?
28797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28798 yes:no: )
28799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28803 ac_header_preproc=yes
28805 no:yes:* )
28806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28818 ( cat <<\_ASBOX
28819 ## ----------------------------------- ##
28820 ## Report this to llvmbugs@cs.uiuc.edu ##
28821 ## ----------------------------------- ##
28822 _ASBOX
28823 ) | sed "s/^/$as_me: WARNING: /" >&2
28825 esac
28826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28829 echo $ECHO_N "(cached) $ECHO_C" >&6
28830 else
28831 eval "$as_ac_Header=\$ac_header_preproc"
28833 ac_res=`eval echo '${'$as_ac_Header'}'`
28834 { echo "$as_me:$LINENO: result: $ac_res" >&5
28835 echo "${ECHO_T}$ac_res" >&6; }
28838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28839 cat >>confdefs.h <<_ACEOF
28840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28841 _ACEOF
28845 done
28852 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28859 echo $ECHO_N "(cached) $ECHO_C" >&6
28861 ac_res=`eval echo '${'$as_ac_Header'}'`
28862 { echo "$as_me:$LINENO: result: $ac_res" >&5
28863 echo "${ECHO_T}$ac_res" >&6; }
28864 else
28865 # Is the header compilable?
28866 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28868 cat >conftest.$ac_ext <<_ACEOF
28869 /* confdefs.h. */
28870 _ACEOF
28871 cat confdefs.h >>conftest.$ac_ext
28872 cat >>conftest.$ac_ext <<_ACEOF
28873 /* end confdefs.h. */
28874 $ac_includes_default
28875 #include <$ac_header>
28876 _ACEOF
28877 rm -f conftest.$ac_objext
28878 if { (ac_try="$ac_compile"
28879 case "(($ac_try" in
28880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881 *) ac_try_echo=$ac_try;;
28882 esac
28883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_compile") 2>conftest.er1
28885 ac_status=$?
28886 grep -v '^ *+' conftest.er1 >conftest.err
28887 rm -f conftest.er1
28888 cat conftest.err >&5
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); } &&
28891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28892 { (case "(($ac_try" in
28893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28894 *) ac_try_echo=$ac_try;;
28895 esac
28896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897 (eval "$ac_try") 2>&5
28898 ac_status=$?
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); }; } &&
28901 { ac_try='test -s conftest.$ac_objext'
28902 { (case "(($ac_try" in
28903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904 *) ac_try_echo=$ac_try;;
28905 esac
28906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907 (eval "$ac_try") 2>&5
28908 ac_status=$?
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); }; }; then
28911 ac_header_compiler=yes
28912 else
28913 echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.$ac_ext >&5
28916 ac_header_compiler=no
28919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28921 echo "${ECHO_T}$ac_header_compiler" >&6; }
28923 # Is the header present?
28924 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28926 cat >conftest.$ac_ext <<_ACEOF
28927 /* confdefs.h. */
28928 _ACEOF
28929 cat confdefs.h >>conftest.$ac_ext
28930 cat >>conftest.$ac_ext <<_ACEOF
28931 /* end confdefs.h. */
28932 #include <$ac_header>
28933 _ACEOF
28934 if { (ac_try="$ac_cpp conftest.$ac_ext"
28935 case "(($ac_try" in
28936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28937 *) ac_try_echo=$ac_try;;
28938 esac
28939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28941 ac_status=$?
28942 grep -v '^ *+' conftest.er1 >conftest.err
28943 rm -f conftest.er1
28944 cat conftest.err >&5
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); } >/dev/null; then
28947 if test -s conftest.err; then
28948 ac_cpp_err=$ac_c_preproc_warn_flag
28949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28950 else
28951 ac_cpp_err=
28953 else
28954 ac_cpp_err=yes
28956 if test -z "$ac_cpp_err"; then
28957 ac_header_preproc=yes
28958 else
28959 echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28962 ac_header_preproc=no
28965 rm -f conftest.err conftest.$ac_ext
28966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28967 echo "${ECHO_T}$ac_header_preproc" >&6; }
28969 # So? What about this header?
28970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28971 yes:no: )
28972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28976 ac_header_preproc=yes
28978 no:yes:* )
28979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28991 ( cat <<\_ASBOX
28992 ## ----------------------------------- ##
28993 ## Report this to llvmbugs@cs.uiuc.edu ##
28994 ## ----------------------------------- ##
28995 _ASBOX
28996 ) | sed "s/^/$as_me: WARNING: /" >&2
28998 esac
28999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29002 echo $ECHO_N "(cached) $ECHO_C" >&6
29003 else
29004 eval "$as_ac_Header=\$ac_header_preproc"
29006 ac_res=`eval echo '${'$as_ac_Header'}'`
29007 { echo "$as_me:$LINENO: result: $ac_res" >&5
29008 echo "${ECHO_T}$ac_res" >&6; }
29011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29012 cat >>confdefs.h <<_ACEOF
29013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29014 _ACEOF
29018 done
29023 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29030 echo $ECHO_N "(cached) $ECHO_C" >&6
29032 ac_res=`eval echo '${'$as_ac_Header'}'`
29033 { echo "$as_me:$LINENO: result: $ac_res" >&5
29034 echo "${ECHO_T}$ac_res" >&6; }
29035 else
29036 # Is the header compilable?
29037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29039 cat >conftest.$ac_ext <<_ACEOF
29040 /* confdefs.h. */
29041 _ACEOF
29042 cat confdefs.h >>conftest.$ac_ext
29043 cat >>conftest.$ac_ext <<_ACEOF
29044 /* end confdefs.h. */
29045 $ac_includes_default
29046 #include <$ac_header>
29047 _ACEOF
29048 rm -f conftest.$ac_objext
29049 if { (ac_try="$ac_compile"
29050 case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29053 esac
29054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055 (eval "$ac_compile") 2>conftest.er1
29056 ac_status=$?
29057 grep -v '^ *+' conftest.er1 >conftest.err
29058 rm -f conftest.er1
29059 cat conftest.err >&5
29060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061 (exit $ac_status); } &&
29062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29063 { (case "(($ac_try" in
29064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29065 *) ac_try_echo=$ac_try;;
29066 esac
29067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29068 (eval "$ac_try") 2>&5
29069 ac_status=$?
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); }; } &&
29072 { ac_try='test -s conftest.$ac_objext'
29073 { (case "(($ac_try" in
29074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075 *) ac_try_echo=$ac_try;;
29076 esac
29077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078 (eval "$ac_try") 2>&5
29079 ac_status=$?
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); }; }; then
29082 ac_header_compiler=yes
29083 else
29084 echo "$as_me: failed program was:" >&5
29085 sed 's/^/| /' conftest.$ac_ext >&5
29087 ac_header_compiler=no
29090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29092 echo "${ECHO_T}$ac_header_compiler" >&6; }
29094 # Is the header present?
29095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29097 cat >conftest.$ac_ext <<_ACEOF
29098 /* confdefs.h. */
29099 _ACEOF
29100 cat confdefs.h >>conftest.$ac_ext
29101 cat >>conftest.$ac_ext <<_ACEOF
29102 /* end confdefs.h. */
29103 #include <$ac_header>
29104 _ACEOF
29105 if { (ac_try="$ac_cpp conftest.$ac_ext"
29106 case "(($ac_try" in
29107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29108 *) ac_try_echo=$ac_try;;
29109 esac
29110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29112 ac_status=$?
29113 grep -v '^ *+' conftest.er1 >conftest.err
29114 rm -f conftest.er1
29115 cat conftest.err >&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); } >/dev/null; then
29118 if test -s conftest.err; then
29119 ac_cpp_err=$ac_c_preproc_warn_flag
29120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29121 else
29122 ac_cpp_err=
29124 else
29125 ac_cpp_err=yes
29127 if test -z "$ac_cpp_err"; then
29128 ac_header_preproc=yes
29129 else
29130 echo "$as_me: failed program was:" >&5
29131 sed 's/^/| /' conftest.$ac_ext >&5
29133 ac_header_preproc=no
29136 rm -f conftest.err conftest.$ac_ext
29137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29138 echo "${ECHO_T}$ac_header_preproc" >&6; }
29140 # So? What about this header?
29141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29142 yes:no: )
29143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29147 ac_header_preproc=yes
29149 no:yes:* )
29150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29162 ( cat <<\_ASBOX
29163 ## ----------------------------------- ##
29164 ## Report this to llvmbugs@cs.uiuc.edu ##
29165 ## ----------------------------------- ##
29166 _ASBOX
29167 ) | sed "s/^/$as_me: WARNING: /" >&2
29169 esac
29170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29173 echo $ECHO_N "(cached) $ECHO_C" >&6
29174 else
29175 eval "$as_ac_Header=\$ac_header_preproc"
29177 ac_res=`eval echo '${'$as_ac_Header'}'`
29178 { echo "$as_me:$LINENO: result: $ac_res" >&5
29179 echo "${ECHO_T}$ac_res" >&6; }
29182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29183 cat >>confdefs.h <<_ACEOF
29184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29185 _ACEOF
29189 done
29191 if test "$ENABLE_THREADS" -eq 1 ; then
29192 if test "${ac_cv_header_pthread_h+set}" = set; then
29193 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29194 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29195 if test "${ac_cv_header_pthread_h+set}" = set; then
29196 echo $ECHO_N "(cached) $ECHO_C" >&6
29198 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29199 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29200 else
29201 # Is the header compilable?
29202 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29203 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29204 cat >conftest.$ac_ext <<_ACEOF
29205 /* confdefs.h. */
29206 _ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h. */
29210 $ac_includes_default
29211 #include <pthread.h>
29212 _ACEOF
29213 rm -f conftest.$ac_objext
29214 if { (ac_try="$ac_compile"
29215 case "(($ac_try" in
29216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217 *) ac_try_echo=$ac_try;;
29218 esac
29219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220 (eval "$ac_compile") 2>conftest.er1
29221 ac_status=$?
29222 grep -v '^ *+' conftest.er1 >conftest.err
29223 rm -f conftest.er1
29224 cat conftest.err >&5
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); } &&
29227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29228 { (case "(($ac_try" in
29229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230 *) ac_try_echo=$ac_try;;
29231 esac
29232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233 (eval "$ac_try") 2>&5
29234 ac_status=$?
29235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236 (exit $ac_status); }; } &&
29237 { ac_try='test -s conftest.$ac_objext'
29238 { (case "(($ac_try" in
29239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29240 *) ac_try_echo=$ac_try;;
29241 esac
29242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29243 (eval "$ac_try") 2>&5
29244 ac_status=$?
29245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29246 (exit $ac_status); }; }; then
29247 ac_header_compiler=yes
29248 else
29249 echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29252 ac_header_compiler=no
29255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29257 echo "${ECHO_T}$ac_header_compiler" >&6; }
29259 # Is the header present?
29260 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29261 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29262 cat >conftest.$ac_ext <<_ACEOF
29263 /* confdefs.h. */
29264 _ACEOF
29265 cat confdefs.h >>conftest.$ac_ext
29266 cat >>conftest.$ac_ext <<_ACEOF
29267 /* end confdefs.h. */
29268 #include <pthread.h>
29269 _ACEOF
29270 if { (ac_try="$ac_cpp conftest.$ac_ext"
29271 case "(($ac_try" in
29272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29273 *) ac_try_echo=$ac_try;;
29274 esac
29275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29277 ac_status=$?
29278 grep -v '^ *+' conftest.er1 >conftest.err
29279 rm -f conftest.er1
29280 cat conftest.err >&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); } >/dev/null; then
29283 if test -s conftest.err; then
29284 ac_cpp_err=$ac_c_preproc_warn_flag
29285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29286 else
29287 ac_cpp_err=
29289 else
29290 ac_cpp_err=yes
29292 if test -z "$ac_cpp_err"; then
29293 ac_header_preproc=yes
29294 else
29295 echo "$as_me: failed program was:" >&5
29296 sed 's/^/| /' conftest.$ac_ext >&5
29298 ac_header_preproc=no
29301 rm -f conftest.err conftest.$ac_ext
29302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29303 echo "${ECHO_T}$ac_header_preproc" >&6; }
29305 # So? What about this header?
29306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29307 yes:no: )
29308 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29309 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29310 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29311 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29312 ac_header_preproc=yes
29314 no:yes:* )
29315 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29316 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29317 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29318 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29319 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29320 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29321 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29322 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29323 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29324 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29325 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29326 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29327 ( cat <<\_ASBOX
29328 ## ----------------------------------- ##
29329 ## Report this to llvmbugs@cs.uiuc.edu ##
29330 ## ----------------------------------- ##
29331 _ASBOX
29332 ) | sed "s/^/$as_me: WARNING: /" >&2
29334 esac
29335 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29336 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29337 if test "${ac_cv_header_pthread_h+set}" = set; then
29338 echo $ECHO_N "(cached) $ECHO_C" >&6
29339 else
29340 ac_cv_header_pthread_h=$ac_header_preproc
29342 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29343 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29346 if test $ac_cv_header_pthread_h = yes; then
29347 HAVE_PTHREAD=1
29349 else
29350 HAVE_PTHREAD=0
29355 else
29356 HAVE_PTHREAD=0
29362 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29363 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29364 if test "${ac_cv_huge_val_sanity+set}" = set; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
29366 else
29368 ac_ext=cpp
29369 ac_cpp='$CXXCPP $CPPFLAGS'
29370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29374 CXXFLAGS=-pedantic
29375 if test "$cross_compiling" = yes; then
29376 ac_cv_huge_val_sanity=yes
29377 else
29378 cat >conftest.$ac_ext <<_ACEOF
29379 /* confdefs.h. */
29380 _ACEOF
29381 cat confdefs.h >>conftest.$ac_ext
29382 cat >>conftest.$ac_ext <<_ACEOF
29383 /* end confdefs.h. */
29384 #include <math.h>
29386 main ()
29388 double x = HUGE_VAL; return x != x;
29390 return 0;
29392 _ACEOF
29393 rm -f conftest$ac_exeext
29394 if { (ac_try="$ac_link"
29395 case "(($ac_try" in
29396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397 *) ac_try_echo=$ac_try;;
29398 esac
29399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400 (eval "$ac_link") 2>&5
29401 ac_status=$?
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29404 { (case "(($ac_try" in
29405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29406 *) ac_try_echo=$ac_try;;
29407 esac
29408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29409 (eval "$ac_try") 2>&5
29410 ac_status=$?
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; }; then
29413 ac_cv_huge_val_sanity=yes
29414 else
29415 echo "$as_me: program exited with status $ac_status" >&5
29416 echo "$as_me: failed program was:" >&5
29417 sed 's/^/| /' conftest.$ac_ext >&5
29419 ( exit $ac_status )
29420 ac_cv_huge_val_sanity=no
29422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29426 ac_ext=c
29427 ac_cpp='$CPP $CPPFLAGS'
29428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29434 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29435 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29436 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29439 { echo "$as_me:$LINENO: checking for pid_t" >&5
29440 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29441 if test "${ac_cv_type_pid_t+set}" = set; then
29442 echo $ECHO_N "(cached) $ECHO_C" >&6
29443 else
29444 cat >conftest.$ac_ext <<_ACEOF
29445 /* confdefs.h. */
29446 _ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h. */
29450 $ac_includes_default
29451 typedef pid_t ac__type_new_;
29453 main ()
29455 if ((ac__type_new_ *) 0)
29456 return 0;
29457 if (sizeof (ac__type_new_))
29458 return 0;
29460 return 0;
29462 _ACEOF
29463 rm -f conftest.$ac_objext
29464 if { (ac_try="$ac_compile"
29465 case "(($ac_try" in
29466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467 *) ac_try_echo=$ac_try;;
29468 esac
29469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29470 (eval "$ac_compile") 2>conftest.er1
29471 ac_status=$?
29472 grep -v '^ *+' conftest.er1 >conftest.err
29473 rm -f conftest.er1
29474 cat conftest.err >&5
29475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476 (exit $ac_status); } &&
29477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29478 { (case "(($ac_try" in
29479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480 *) ac_try_echo=$ac_try;;
29481 esac
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483 (eval "$ac_try") 2>&5
29484 ac_status=$?
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; } &&
29487 { ac_try='test -s conftest.$ac_objext'
29488 { (case "(($ac_try" in
29489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490 *) ac_try_echo=$ac_try;;
29491 esac
29492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493 (eval "$ac_try") 2>&5
29494 ac_status=$?
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; }; then
29497 ac_cv_type_pid_t=yes
29498 else
29499 echo "$as_me: failed program was:" >&5
29500 sed 's/^/| /' conftest.$ac_ext >&5
29502 ac_cv_type_pid_t=no
29505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29507 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29508 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29509 if test $ac_cv_type_pid_t = yes; then
29511 else
29513 cat >>confdefs.h <<_ACEOF
29514 #define pid_t int
29515 _ACEOF
29519 { echo "$as_me:$LINENO: checking for size_t" >&5
29520 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29521 if test "${ac_cv_type_size_t+set}" = set; then
29522 echo $ECHO_N "(cached) $ECHO_C" >&6
29523 else
29524 cat >conftest.$ac_ext <<_ACEOF
29525 /* confdefs.h. */
29526 _ACEOF
29527 cat confdefs.h >>conftest.$ac_ext
29528 cat >>conftest.$ac_ext <<_ACEOF
29529 /* end confdefs.h. */
29530 $ac_includes_default
29531 typedef size_t ac__type_new_;
29533 main ()
29535 if ((ac__type_new_ *) 0)
29536 return 0;
29537 if (sizeof (ac__type_new_))
29538 return 0;
29540 return 0;
29542 _ACEOF
29543 rm -f conftest.$ac_objext
29544 if { (ac_try="$ac_compile"
29545 case "(($ac_try" in
29546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29547 *) ac_try_echo=$ac_try;;
29548 esac
29549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29550 (eval "$ac_compile") 2>conftest.er1
29551 ac_status=$?
29552 grep -v '^ *+' conftest.er1 >conftest.err
29553 rm -f conftest.er1
29554 cat conftest.err >&5
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); } &&
29557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29558 { (case "(($ac_try" in
29559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29560 *) ac_try_echo=$ac_try;;
29561 esac
29562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29563 (eval "$ac_try") 2>&5
29564 ac_status=$?
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); }; } &&
29567 { ac_try='test -s conftest.$ac_objext'
29568 { (case "(($ac_try" in
29569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29571 esac
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573 (eval "$ac_try") 2>&5
29574 ac_status=$?
29575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576 (exit $ac_status); }; }; then
29577 ac_cv_type_size_t=yes
29578 else
29579 echo "$as_me: failed program was:" >&5
29580 sed 's/^/| /' conftest.$ac_ext >&5
29582 ac_cv_type_size_t=no
29585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29587 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29588 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29589 if test $ac_cv_type_size_t = yes; then
29591 else
29593 cat >>confdefs.h <<_ACEOF
29594 #define size_t unsigned int
29595 _ACEOF
29599 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29600 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29601 if test "${ac_cv_type_signal+set}" = set; then
29602 echo $ECHO_N "(cached) $ECHO_C" >&6
29603 else
29604 cat >conftest.$ac_ext <<_ACEOF
29605 /* confdefs.h. */
29606 _ACEOF
29607 cat confdefs.h >>conftest.$ac_ext
29608 cat >>conftest.$ac_ext <<_ACEOF
29609 /* end confdefs.h. */
29610 #include <sys/types.h>
29611 #include <signal.h>
29614 main ()
29616 return *(signal (0, 0)) (0) == 1;
29618 return 0;
29620 _ACEOF
29621 rm -f conftest.$ac_objext
29622 if { (ac_try="$ac_compile"
29623 case "(($ac_try" in
29624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625 *) ac_try_echo=$ac_try;;
29626 esac
29627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29628 (eval "$ac_compile") 2>conftest.er1
29629 ac_status=$?
29630 grep -v '^ *+' conftest.er1 >conftest.err
29631 rm -f conftest.er1
29632 cat conftest.err >&5
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); } &&
29635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29636 { (case "(($ac_try" in
29637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638 *) ac_try_echo=$ac_try;;
29639 esac
29640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641 (eval "$ac_try") 2>&5
29642 ac_status=$?
29643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; } &&
29645 { ac_try='test -s conftest.$ac_objext'
29646 { (case "(($ac_try" in
29647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29648 *) ac_try_echo=$ac_try;;
29649 esac
29650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29651 (eval "$ac_try") 2>&5
29652 ac_status=$?
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); }; }; then
29655 ac_cv_type_signal=int
29656 else
29657 echo "$as_me: failed program was:" >&5
29658 sed 's/^/| /' conftest.$ac_ext >&5
29660 ac_cv_type_signal=void
29663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29665 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29666 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29668 cat >>confdefs.h <<_ACEOF
29669 #define RETSIGTYPE $ac_cv_type_signal
29670 _ACEOF
29673 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29674 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29675 if test "${ac_cv_struct_tm+set}" = set; then
29676 echo $ECHO_N "(cached) $ECHO_C" >&6
29677 else
29678 cat >conftest.$ac_ext <<_ACEOF
29679 /* confdefs.h. */
29680 _ACEOF
29681 cat confdefs.h >>conftest.$ac_ext
29682 cat >>conftest.$ac_ext <<_ACEOF
29683 /* end confdefs.h. */
29684 #include <sys/types.h>
29685 #include <time.h>
29688 main ()
29690 struct tm *tp; tp->tm_sec;
29692 return 0;
29694 _ACEOF
29695 rm -f conftest.$ac_objext
29696 if { (ac_try="$ac_compile"
29697 case "(($ac_try" in
29698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29699 *) ac_try_echo=$ac_try;;
29700 esac
29701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29702 (eval "$ac_compile") 2>conftest.er1
29703 ac_status=$?
29704 grep -v '^ *+' conftest.er1 >conftest.err
29705 rm -f conftest.er1
29706 cat conftest.err >&5
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); } &&
29709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29710 { (case "(($ac_try" in
29711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29712 *) ac_try_echo=$ac_try;;
29713 esac
29714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29715 (eval "$ac_try") 2>&5
29716 ac_status=$?
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); }; } &&
29719 { ac_try='test -s conftest.$ac_objext'
29720 { (case "(($ac_try" in
29721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29722 *) ac_try_echo=$ac_try;;
29723 esac
29724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725 (eval "$ac_try") 2>&5
29726 ac_status=$?
29727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); }; }; then
29729 ac_cv_struct_tm=time.h
29730 else
29731 echo "$as_me: failed program was:" >&5
29732 sed 's/^/| /' conftest.$ac_ext >&5
29734 ac_cv_struct_tm=sys/time.h
29737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29739 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29740 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29741 if test $ac_cv_struct_tm = sys/time.h; then
29743 cat >>confdefs.h <<\_ACEOF
29744 #define TM_IN_SYS_TIME 1
29745 _ACEOF
29749 { echo "$as_me:$LINENO: checking for int64_t" >&5
29750 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29751 if test "${ac_cv_type_int64_t+set}" = set; then
29752 echo $ECHO_N "(cached) $ECHO_C" >&6
29753 else
29754 cat >conftest.$ac_ext <<_ACEOF
29755 /* confdefs.h. */
29756 _ACEOF
29757 cat confdefs.h >>conftest.$ac_ext
29758 cat >>conftest.$ac_ext <<_ACEOF
29759 /* end confdefs.h. */
29760 $ac_includes_default
29761 typedef int64_t ac__type_new_;
29763 main ()
29765 if ((ac__type_new_ *) 0)
29766 return 0;
29767 if (sizeof (ac__type_new_))
29768 return 0;
29770 return 0;
29772 _ACEOF
29773 rm -f conftest.$ac_objext
29774 if { (ac_try="$ac_compile"
29775 case "(($ac_try" in
29776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777 *) ac_try_echo=$ac_try;;
29778 esac
29779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780 (eval "$ac_compile") 2>conftest.er1
29781 ac_status=$?
29782 grep -v '^ *+' conftest.er1 >conftest.err
29783 rm -f conftest.er1
29784 cat conftest.err >&5
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); } &&
29787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29788 { (case "(($ac_try" in
29789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29790 *) ac_try_echo=$ac_try;;
29791 esac
29792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29793 (eval "$ac_try") 2>&5
29794 ac_status=$?
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); }; } &&
29797 { ac_try='test -s conftest.$ac_objext'
29798 { (case "(($ac_try" in
29799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29800 *) ac_try_echo=$ac_try;;
29801 esac
29802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29803 (eval "$ac_try") 2>&5
29804 ac_status=$?
29805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806 (exit $ac_status); }; }; then
29807 ac_cv_type_int64_t=yes
29808 else
29809 echo "$as_me: failed program was:" >&5
29810 sed 's/^/| /' conftest.$ac_ext >&5
29812 ac_cv_type_int64_t=no
29815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29817 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29818 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29819 if test $ac_cv_type_int64_t = yes; then
29821 cat >>confdefs.h <<_ACEOF
29822 #define HAVE_INT64_T 1
29823 _ACEOF
29826 else
29827 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29828 echo "$as_me: error: Type int64_t required but not found" >&2;}
29829 { (exit 1); exit 1; }; }
29832 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29833 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29834 if test "${ac_cv_type_uint64_t+set}" = set; then
29835 echo $ECHO_N "(cached) $ECHO_C" >&6
29836 else
29837 cat >conftest.$ac_ext <<_ACEOF
29838 /* confdefs.h. */
29839 _ACEOF
29840 cat confdefs.h >>conftest.$ac_ext
29841 cat >>conftest.$ac_ext <<_ACEOF
29842 /* end confdefs.h. */
29843 $ac_includes_default
29844 typedef uint64_t ac__type_new_;
29846 main ()
29848 if ((ac__type_new_ *) 0)
29849 return 0;
29850 if (sizeof (ac__type_new_))
29851 return 0;
29853 return 0;
29855 _ACEOF
29856 rm -f conftest.$ac_objext
29857 if { (ac_try="$ac_compile"
29858 case "(($ac_try" in
29859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29860 *) ac_try_echo=$ac_try;;
29861 esac
29862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863 (eval "$ac_compile") 2>conftest.er1
29864 ac_status=$?
29865 grep -v '^ *+' conftest.er1 >conftest.err
29866 rm -f conftest.er1
29867 cat conftest.err >&5
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); } &&
29870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29871 { (case "(($ac_try" in
29872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29873 *) ac_try_echo=$ac_try;;
29874 esac
29875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29876 (eval "$ac_try") 2>&5
29877 ac_status=$?
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); }; } &&
29880 { ac_try='test -s conftest.$ac_objext'
29881 { (case "(($ac_try" in
29882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29883 *) ac_try_echo=$ac_try;;
29884 esac
29885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886 (eval "$ac_try") 2>&5
29887 ac_status=$?
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); }; }; then
29890 ac_cv_type_uint64_t=yes
29891 else
29892 echo "$as_me: failed program was:" >&5
29893 sed 's/^/| /' conftest.$ac_ext >&5
29895 ac_cv_type_uint64_t=no
29898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29900 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29901 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29902 if test $ac_cv_type_uint64_t = yes; then
29904 cat >>confdefs.h <<_ACEOF
29905 #define HAVE_UINT64_T 1
29906 _ACEOF
29909 else
29910 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29911 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29912 if test "${ac_cv_type_u_int64_t+set}" = set; then
29913 echo $ECHO_N "(cached) $ECHO_C" >&6
29914 else
29915 cat >conftest.$ac_ext <<_ACEOF
29916 /* confdefs.h. */
29917 _ACEOF
29918 cat confdefs.h >>conftest.$ac_ext
29919 cat >>conftest.$ac_ext <<_ACEOF
29920 /* end confdefs.h. */
29921 $ac_includes_default
29922 typedef u_int64_t ac__type_new_;
29924 main ()
29926 if ((ac__type_new_ *) 0)
29927 return 0;
29928 if (sizeof (ac__type_new_))
29929 return 0;
29931 return 0;
29933 _ACEOF
29934 rm -f conftest.$ac_objext
29935 if { (ac_try="$ac_compile"
29936 case "(($ac_try" in
29937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29938 *) ac_try_echo=$ac_try;;
29939 esac
29940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29941 (eval "$ac_compile") 2>conftest.er1
29942 ac_status=$?
29943 grep -v '^ *+' conftest.er1 >conftest.err
29944 rm -f conftest.er1
29945 cat conftest.err >&5
29946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947 (exit $ac_status); } &&
29948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29949 { (case "(($ac_try" in
29950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29951 *) ac_try_echo=$ac_try;;
29952 esac
29953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29954 (eval "$ac_try") 2>&5
29955 ac_status=$?
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); }; } &&
29958 { ac_try='test -s conftest.$ac_objext'
29959 { (case "(($ac_try" in
29960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29961 *) ac_try_echo=$ac_try;;
29962 esac
29963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29964 (eval "$ac_try") 2>&5
29965 ac_status=$?
29966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29967 (exit $ac_status); }; }; then
29968 ac_cv_type_u_int64_t=yes
29969 else
29970 echo "$as_me: failed program was:" >&5
29971 sed 's/^/| /' conftest.$ac_ext >&5
29973 ac_cv_type_u_int64_t=no
29976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29978 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29979 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
29980 if test $ac_cv_type_u_int64_t = yes; then
29982 cat >>confdefs.h <<_ACEOF
29983 #define HAVE_U_INT64_T 1
29984 _ACEOF
29987 else
29988 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29989 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29990 { (exit 1); exit 1; }; }
30004 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30010 echo $ECHO_N "(cached) $ECHO_C" >&6
30011 else
30012 cat >conftest.$ac_ext <<_ACEOF
30013 /* confdefs.h. */
30014 _ACEOF
30015 cat confdefs.h >>conftest.$ac_ext
30016 cat >>conftest.$ac_ext <<_ACEOF
30017 /* end confdefs.h. */
30018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30020 #define $ac_func innocuous_$ac_func
30022 /* System header to define __stub macros and hopefully few prototypes,
30023 which can conflict with char $ac_func (); below.
30024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30025 <limits.h> exists even on freestanding compilers. */
30027 #ifdef __STDC__
30028 # include <limits.h>
30029 #else
30030 # include <assert.h>
30031 #endif
30033 #undef $ac_func
30035 /* Override any GCC internal prototype to avoid an error.
30036 Use char because int might match the return type of a GCC
30037 builtin and then its argument prototype would still apply. */
30038 #ifdef __cplusplus
30039 extern "C"
30040 #endif
30041 char $ac_func ();
30042 /* The GNU C library defines this for functions which it implements
30043 to always fail with ENOSYS. Some functions are actually named
30044 something starting with __ and the normal name is an alias. */
30045 #if defined __stub_$ac_func || defined __stub___$ac_func
30046 choke me
30047 #endif
30050 main ()
30052 return $ac_func ();
30054 return 0;
30056 _ACEOF
30057 rm -f conftest.$ac_objext conftest$ac_exeext
30058 if { (ac_try="$ac_link"
30059 case "(($ac_try" in
30060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061 *) ac_try_echo=$ac_try;;
30062 esac
30063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064 (eval "$ac_link") 2>conftest.er1
30065 ac_status=$?
30066 grep -v '^ *+' conftest.er1 >conftest.err
30067 rm -f conftest.er1
30068 cat conftest.err >&5
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); } &&
30071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30072 { (case "(($ac_try" in
30073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074 *) ac_try_echo=$ac_try;;
30075 esac
30076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077 (eval "$ac_try") 2>&5
30078 ac_status=$?
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); }; } &&
30081 { ac_try='test -s conftest$ac_exeext'
30082 { (case "(($ac_try" in
30083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30084 *) ac_try_echo=$ac_try;;
30085 esac
30086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30087 (eval "$ac_try") 2>&5
30088 ac_status=$?
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); }; }; then
30091 eval "$as_ac_var=yes"
30092 else
30093 echo "$as_me: failed program was:" >&5
30094 sed 's/^/| /' conftest.$ac_ext >&5
30096 eval "$as_ac_var=no"
30099 rm -f core conftest.err conftest.$ac_objext \
30100 conftest$ac_exeext conftest.$ac_ext
30102 ac_res=`eval echo '${'$as_ac_var'}'`
30103 { echo "$as_me:$LINENO: result: $ac_res" >&5
30104 echo "${ECHO_T}$ac_res" >&6; }
30105 if test `eval echo '${'$as_ac_var'}'` = yes; then
30106 cat >>confdefs.h <<_ACEOF
30107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30108 _ACEOF
30111 done
30118 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30124 echo $ECHO_N "(cached) $ECHO_C" >&6
30125 else
30126 cat >conftest.$ac_ext <<_ACEOF
30127 /* confdefs.h. */
30128 _ACEOF
30129 cat confdefs.h >>conftest.$ac_ext
30130 cat >>conftest.$ac_ext <<_ACEOF
30131 /* end confdefs.h. */
30132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30134 #define $ac_func innocuous_$ac_func
30136 /* System header to define __stub macros and hopefully few prototypes,
30137 which can conflict with char $ac_func (); below.
30138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30139 <limits.h> exists even on freestanding compilers. */
30141 #ifdef __STDC__
30142 # include <limits.h>
30143 #else
30144 # include <assert.h>
30145 #endif
30147 #undef $ac_func
30149 /* Override any GCC internal prototype to avoid an error.
30150 Use char because int might match the return type of a GCC
30151 builtin and then its argument prototype would still apply. */
30152 #ifdef __cplusplus
30153 extern "C"
30154 #endif
30155 char $ac_func ();
30156 /* The GNU C library defines this for functions which it implements
30157 to always fail with ENOSYS. Some functions are actually named
30158 something starting with __ and the normal name is an alias. */
30159 #if defined __stub_$ac_func || defined __stub___$ac_func
30160 choke me
30161 #endif
30164 main ()
30166 return $ac_func ();
30168 return 0;
30170 _ACEOF
30171 rm -f conftest.$ac_objext conftest$ac_exeext
30172 if { (ac_try="$ac_link"
30173 case "(($ac_try" in
30174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175 *) ac_try_echo=$ac_try;;
30176 esac
30177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178 (eval "$ac_link") 2>conftest.er1
30179 ac_status=$?
30180 grep -v '^ *+' conftest.er1 >conftest.err
30181 rm -f conftest.er1
30182 cat conftest.err >&5
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); } &&
30185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30186 { (case "(($ac_try" in
30187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188 *) ac_try_echo=$ac_try;;
30189 esac
30190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191 (eval "$ac_try") 2>&5
30192 ac_status=$?
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; } &&
30195 { ac_try='test -s conftest$ac_exeext'
30196 { (case "(($ac_try" in
30197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198 *) ac_try_echo=$ac_try;;
30199 esac
30200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201 (eval "$ac_try") 2>&5
30202 ac_status=$?
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; }; then
30205 eval "$as_ac_var=yes"
30206 else
30207 echo "$as_me: failed program was:" >&5
30208 sed 's/^/| /' conftest.$ac_ext >&5
30210 eval "$as_ac_var=no"
30213 rm -f core conftest.err conftest.$ac_objext \
30214 conftest$ac_exeext conftest.$ac_ext
30216 ac_res=`eval echo '${'$as_ac_var'}'`
30217 { echo "$as_me:$LINENO: result: $ac_res" >&5
30218 echo "${ECHO_T}$ac_res" >&6; }
30219 if test `eval echo '${'$as_ac_var'}'` = yes; then
30220 cat >>confdefs.h <<_ACEOF
30221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30222 _ACEOF
30225 done
30230 for ac_func in isatty mkdtemp mkstemp
30232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30236 echo $ECHO_N "(cached) $ECHO_C" >&6
30237 else
30238 cat >conftest.$ac_ext <<_ACEOF
30239 /* confdefs.h. */
30240 _ACEOF
30241 cat confdefs.h >>conftest.$ac_ext
30242 cat >>conftest.$ac_ext <<_ACEOF
30243 /* end confdefs.h. */
30244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30246 #define $ac_func innocuous_$ac_func
30248 /* System header to define __stub macros and hopefully few prototypes,
30249 which can conflict with char $ac_func (); below.
30250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30251 <limits.h> exists even on freestanding compilers. */
30253 #ifdef __STDC__
30254 # include <limits.h>
30255 #else
30256 # include <assert.h>
30257 #endif
30259 #undef $ac_func
30261 /* Override any GCC internal prototype to avoid an error.
30262 Use char because int might match the return type of a GCC
30263 builtin and then its argument prototype would still apply. */
30264 #ifdef __cplusplus
30265 extern "C"
30266 #endif
30267 char $ac_func ();
30268 /* The GNU C library defines this for functions which it implements
30269 to always fail with ENOSYS. Some functions are actually named
30270 something starting with __ and the normal name is an alias. */
30271 #if defined __stub_$ac_func || defined __stub___$ac_func
30272 choke me
30273 #endif
30276 main ()
30278 return $ac_func ();
30280 return 0;
30282 _ACEOF
30283 rm -f conftest.$ac_objext conftest$ac_exeext
30284 if { (ac_try="$ac_link"
30285 case "(($ac_try" in
30286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30287 *) ac_try_echo=$ac_try;;
30288 esac
30289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30290 (eval "$ac_link") 2>conftest.er1
30291 ac_status=$?
30292 grep -v '^ *+' conftest.er1 >conftest.err
30293 rm -f conftest.er1
30294 cat conftest.err >&5
30295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296 (exit $ac_status); } &&
30297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30298 { (case "(($ac_try" in
30299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300 *) ac_try_echo=$ac_try;;
30301 esac
30302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30303 (eval "$ac_try") 2>&5
30304 ac_status=$?
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); }; } &&
30307 { ac_try='test -s conftest$ac_exeext'
30308 { (case "(($ac_try" in
30309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30310 *) ac_try_echo=$ac_try;;
30311 esac
30312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30313 (eval "$ac_try") 2>&5
30314 ac_status=$?
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); }; }; then
30317 eval "$as_ac_var=yes"
30318 else
30319 echo "$as_me: failed program was:" >&5
30320 sed 's/^/| /' conftest.$ac_ext >&5
30322 eval "$as_ac_var=no"
30325 rm -f core conftest.err conftest.$ac_objext \
30326 conftest$ac_exeext conftest.$ac_ext
30328 ac_res=`eval echo '${'$as_ac_var'}'`
30329 { echo "$as_me:$LINENO: result: $ac_res" >&5
30330 echo "${ECHO_T}$ac_res" >&6; }
30331 if test `eval echo '${'$as_ac_var'}'` = yes; then
30332 cat >>confdefs.h <<_ACEOF
30333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30334 _ACEOF
30337 done
30346 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30352 echo $ECHO_N "(cached) $ECHO_C" >&6
30353 else
30354 cat >conftest.$ac_ext <<_ACEOF
30355 /* confdefs.h. */
30356 _ACEOF
30357 cat confdefs.h >>conftest.$ac_ext
30358 cat >>conftest.$ac_ext <<_ACEOF
30359 /* end confdefs.h. */
30360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30362 #define $ac_func innocuous_$ac_func
30364 /* System header to define __stub macros and hopefully few prototypes,
30365 which can conflict with char $ac_func (); below.
30366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30367 <limits.h> exists even on freestanding compilers. */
30369 #ifdef __STDC__
30370 # include <limits.h>
30371 #else
30372 # include <assert.h>
30373 #endif
30375 #undef $ac_func
30377 /* Override any GCC internal prototype to avoid an error.
30378 Use char because int might match the return type of a GCC
30379 builtin and then its argument prototype would still apply. */
30380 #ifdef __cplusplus
30381 extern "C"
30382 #endif
30383 char $ac_func ();
30384 /* The GNU C library defines this for functions which it implements
30385 to always fail with ENOSYS. Some functions are actually named
30386 something starting with __ and the normal name is an alias. */
30387 #if defined __stub_$ac_func || defined __stub___$ac_func
30388 choke me
30389 #endif
30392 main ()
30394 return $ac_func ();
30396 return 0;
30398 _ACEOF
30399 rm -f conftest.$ac_objext conftest$ac_exeext
30400 if { (ac_try="$ac_link"
30401 case "(($ac_try" in
30402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30403 *) ac_try_echo=$ac_try;;
30404 esac
30405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30406 (eval "$ac_link") 2>conftest.er1
30407 ac_status=$?
30408 grep -v '^ *+' conftest.er1 >conftest.err
30409 rm -f conftest.er1
30410 cat conftest.err >&5
30411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30412 (exit $ac_status); } &&
30413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30414 { (case "(($ac_try" in
30415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416 *) ac_try_echo=$ac_try;;
30417 esac
30418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419 (eval "$ac_try") 2>&5
30420 ac_status=$?
30421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422 (exit $ac_status); }; } &&
30423 { ac_try='test -s conftest$ac_exeext'
30424 { (case "(($ac_try" in
30425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30426 *) ac_try_echo=$ac_try;;
30427 esac
30428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30429 (eval "$ac_try") 2>&5
30430 ac_status=$?
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); }; }; then
30433 eval "$as_ac_var=yes"
30434 else
30435 echo "$as_me: failed program was:" >&5
30436 sed 's/^/| /' conftest.$ac_ext >&5
30438 eval "$as_ac_var=no"
30441 rm -f core conftest.err conftest.$ac_objext \
30442 conftest$ac_exeext conftest.$ac_ext
30444 ac_res=`eval echo '${'$as_ac_var'}'`
30445 { echo "$as_me:$LINENO: result: $ac_res" >&5
30446 echo "${ECHO_T}$ac_res" >&6; }
30447 if test `eval echo '${'$as_ac_var'}'` = yes; then
30448 cat >>confdefs.h <<_ACEOF
30449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30450 _ACEOF
30453 done
30459 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30465 echo $ECHO_N "(cached) $ECHO_C" >&6
30466 else
30467 cat >conftest.$ac_ext <<_ACEOF
30468 /* confdefs.h. */
30469 _ACEOF
30470 cat confdefs.h >>conftest.$ac_ext
30471 cat >>conftest.$ac_ext <<_ACEOF
30472 /* end confdefs.h. */
30473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30475 #define $ac_func innocuous_$ac_func
30477 /* System header to define __stub macros and hopefully few prototypes,
30478 which can conflict with char $ac_func (); below.
30479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30480 <limits.h> exists even on freestanding compilers. */
30482 #ifdef __STDC__
30483 # include <limits.h>
30484 #else
30485 # include <assert.h>
30486 #endif
30488 #undef $ac_func
30490 /* Override any GCC internal prototype to avoid an error.
30491 Use char because int might match the return type of a GCC
30492 builtin and then its argument prototype would still apply. */
30493 #ifdef __cplusplus
30494 extern "C"
30495 #endif
30496 char $ac_func ();
30497 /* The GNU C library defines this for functions which it implements
30498 to always fail with ENOSYS. Some functions are actually named
30499 something starting with __ and the normal name is an alias. */
30500 #if defined __stub_$ac_func || defined __stub___$ac_func
30501 choke me
30502 #endif
30505 main ()
30507 return $ac_func ();
30509 return 0;
30511 _ACEOF
30512 rm -f conftest.$ac_objext conftest$ac_exeext
30513 if { (ac_try="$ac_link"
30514 case "(($ac_try" in
30515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30516 *) ac_try_echo=$ac_try;;
30517 esac
30518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30519 (eval "$ac_link") 2>conftest.er1
30520 ac_status=$?
30521 grep -v '^ *+' conftest.er1 >conftest.err
30522 rm -f conftest.er1
30523 cat conftest.err >&5
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); } &&
30526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30527 { (case "(($ac_try" in
30528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30529 *) ac_try_echo=$ac_try;;
30530 esac
30531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30532 (eval "$ac_try") 2>&5
30533 ac_status=$?
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); }; } &&
30536 { ac_try='test -s conftest$ac_exeext'
30537 { (case "(($ac_try" in
30538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539 *) ac_try_echo=$ac_try;;
30540 esac
30541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542 (eval "$ac_try") 2>&5
30543 ac_status=$?
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; }; then
30546 eval "$as_ac_var=yes"
30547 else
30548 echo "$as_me: failed program was:" >&5
30549 sed 's/^/| /' conftest.$ac_ext >&5
30551 eval "$as_ac_var=no"
30554 rm -f core conftest.err conftest.$ac_objext \
30555 conftest$ac_exeext conftest.$ac_ext
30557 ac_res=`eval echo '${'$as_ac_var'}'`
30558 { echo "$as_me:$LINENO: result: $ac_res" >&5
30559 echo "${ECHO_T}$ac_res" >&6; }
30560 if test `eval echo '${'$as_ac_var'}'` = yes; then
30561 cat >>confdefs.h <<_ACEOF
30562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30563 _ACEOF
30566 done
30572 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30578 echo $ECHO_N "(cached) $ECHO_C" >&6
30579 else
30580 cat >conftest.$ac_ext <<_ACEOF
30581 /* confdefs.h. */
30582 _ACEOF
30583 cat confdefs.h >>conftest.$ac_ext
30584 cat >>conftest.$ac_ext <<_ACEOF
30585 /* end confdefs.h. */
30586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30588 #define $ac_func innocuous_$ac_func
30590 /* System header to define __stub macros and hopefully few prototypes,
30591 which can conflict with char $ac_func (); below.
30592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30593 <limits.h> exists even on freestanding compilers. */
30595 #ifdef __STDC__
30596 # include <limits.h>
30597 #else
30598 # include <assert.h>
30599 #endif
30601 #undef $ac_func
30603 /* Override any GCC internal prototype to avoid an error.
30604 Use char because int might match the return type of a GCC
30605 builtin and then its argument prototype would still apply. */
30606 #ifdef __cplusplus
30607 extern "C"
30608 #endif
30609 char $ac_func ();
30610 /* The GNU C library defines this for functions which it implements
30611 to always fail with ENOSYS. Some functions are actually named
30612 something starting with __ and the normal name is an alias. */
30613 #if defined __stub_$ac_func || defined __stub___$ac_func
30614 choke me
30615 #endif
30618 main ()
30620 return $ac_func ();
30622 return 0;
30624 _ACEOF
30625 rm -f conftest.$ac_objext conftest$ac_exeext
30626 if { (ac_try="$ac_link"
30627 case "(($ac_try" in
30628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30629 *) ac_try_echo=$ac_try;;
30630 esac
30631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30632 (eval "$ac_link") 2>conftest.er1
30633 ac_status=$?
30634 grep -v '^ *+' conftest.er1 >conftest.err
30635 rm -f conftest.er1
30636 cat conftest.err >&5
30637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); } &&
30639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30640 { (case "(($ac_try" in
30641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30642 *) ac_try_echo=$ac_try;;
30643 esac
30644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30645 (eval "$ac_try") 2>&5
30646 ac_status=$?
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); }; } &&
30649 { ac_try='test -s conftest$ac_exeext'
30650 { (case "(($ac_try" in
30651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30652 *) ac_try_echo=$ac_try;;
30653 esac
30654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655 (eval "$ac_try") 2>&5
30656 ac_status=$?
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; }; then
30659 eval "$as_ac_var=yes"
30660 else
30661 echo "$as_me: failed program was:" >&5
30662 sed 's/^/| /' conftest.$ac_ext >&5
30664 eval "$as_ac_var=no"
30667 rm -f core conftest.err conftest.$ac_objext \
30668 conftest$ac_exeext conftest.$ac_ext
30670 ac_res=`eval echo '${'$as_ac_var'}'`
30671 { echo "$as_me:$LINENO: result: $ac_res" >&5
30672 echo "${ECHO_T}$ac_res" >&6; }
30673 if test `eval echo '${'$as_ac_var'}'` = yes; then
30674 cat >>confdefs.h <<_ACEOF
30675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30676 _ACEOF
30679 done
30681 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30682 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30683 if test "${llvm_cv_c_printf_a+set}" = set; then
30684 echo $ECHO_N "(cached) $ECHO_C" >&6
30685 else
30686 ac_ext=c
30687 ac_cpp='$CPP $CPPFLAGS'
30688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30692 if test "$cross_compiling" = yes; then
30693 llvmac_cv_c_printf_a=no
30694 else
30695 cat >conftest.$ac_ext <<_ACEOF
30697 /* confdefs.h. */
30698 _ACEOF
30699 cat confdefs.h >>conftest.$ac_ext
30700 cat >>conftest.$ac_ext <<_ACEOF
30701 /* end confdefs.h. */
30703 #include <stdio.h>
30704 #include <stdlib.h>
30707 main ()
30710 volatile double A, B;
30711 char Buffer[100];
30712 A = 1;
30713 A /= 10.0;
30714 sprintf(Buffer, "%a", A);
30715 B = atof(Buffer);
30716 if (A != B)
30717 return (1);
30718 if (A != 0x1.999999999999ap-4)
30719 return (1);
30720 return (0);
30722 return 0;
30724 _ACEOF
30725 rm -f conftest$ac_exeext
30726 if { (ac_try="$ac_link"
30727 case "(($ac_try" in
30728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30729 *) ac_try_echo=$ac_try;;
30730 esac
30731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30732 (eval "$ac_link") 2>&5
30733 ac_status=$?
30734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30736 { (case "(($ac_try" in
30737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30738 *) ac_try_echo=$ac_try;;
30739 esac
30740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30741 (eval "$ac_try") 2>&5
30742 ac_status=$?
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); }; }; then
30745 llvm_cv_c_printf_a=yes
30746 else
30747 echo "$as_me: program exited with status $ac_status" >&5
30748 echo "$as_me: failed program was:" >&5
30749 sed 's/^/| /' conftest.$ac_ext >&5
30751 ( exit $ac_status )
30752 llvmac_cv_c_printf_a=no
30754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30758 ac_ext=c
30759 ac_cpp='$CPP $CPPFLAGS'
30760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30765 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30766 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30767 if test "$llvm_cv_c_printf_a" = "yes"; then
30769 cat >>confdefs.h <<\_ACEOF
30770 #define HAVE_PRINTF_A 1
30771 _ACEOF
30775 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30776 # for constant arguments. Useless!
30777 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30778 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30779 if test "${ac_cv_working_alloca_h+set}" = set; then
30780 echo $ECHO_N "(cached) $ECHO_C" >&6
30781 else
30782 cat >conftest.$ac_ext <<_ACEOF
30783 /* confdefs.h. */
30784 _ACEOF
30785 cat confdefs.h >>conftest.$ac_ext
30786 cat >>conftest.$ac_ext <<_ACEOF
30787 /* end confdefs.h. */
30788 #include <alloca.h>
30790 main ()
30792 char *p = (char *) alloca (2 * sizeof (int));
30793 if (p) return 0;
30795 return 0;
30797 _ACEOF
30798 rm -f conftest.$ac_objext conftest$ac_exeext
30799 if { (ac_try="$ac_link"
30800 case "(($ac_try" in
30801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30803 esac
30804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30805 (eval "$ac_link") 2>conftest.er1
30806 ac_status=$?
30807 grep -v '^ *+' conftest.er1 >conftest.err
30808 rm -f conftest.er1
30809 cat conftest.err >&5
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); } &&
30812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30813 { (case "(($ac_try" in
30814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815 *) ac_try_echo=$ac_try;;
30816 esac
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_try") 2>&5
30819 ac_status=$?
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); }; } &&
30822 { ac_try='test -s conftest$ac_exeext'
30823 { (case "(($ac_try" in
30824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825 *) ac_try_echo=$ac_try;;
30826 esac
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828 (eval "$ac_try") 2>&5
30829 ac_status=$?
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; }; then
30832 ac_cv_working_alloca_h=yes
30833 else
30834 echo "$as_me: failed program was:" >&5
30835 sed 's/^/| /' conftest.$ac_ext >&5
30837 ac_cv_working_alloca_h=no
30840 rm -f core conftest.err conftest.$ac_objext \
30841 conftest$ac_exeext conftest.$ac_ext
30843 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30844 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30845 if test $ac_cv_working_alloca_h = yes; then
30847 cat >>confdefs.h <<\_ACEOF
30848 #define HAVE_ALLOCA_H 1
30849 _ACEOF
30853 { echo "$as_me:$LINENO: checking for alloca" >&5
30854 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30855 if test "${ac_cv_func_alloca_works+set}" = set; then
30856 echo $ECHO_N "(cached) $ECHO_C" >&6
30857 else
30858 cat >conftest.$ac_ext <<_ACEOF
30859 /* confdefs.h. */
30860 _ACEOF
30861 cat confdefs.h >>conftest.$ac_ext
30862 cat >>conftest.$ac_ext <<_ACEOF
30863 /* end confdefs.h. */
30864 #ifdef __GNUC__
30865 # define alloca __builtin_alloca
30866 #else
30867 # ifdef _MSC_VER
30868 # include <malloc.h>
30869 # define alloca _alloca
30870 # else
30871 # if HAVE_ALLOCA_H
30872 # include <alloca.h>
30873 # else
30874 # ifdef _AIX
30875 #pragma alloca
30876 # else
30877 # ifndef alloca /* predefined by HP cc +Olibcalls */
30878 char *alloca ();
30879 # endif
30880 # endif
30881 # endif
30882 # endif
30883 #endif
30886 main ()
30888 char *p = (char *) alloca (1);
30889 if (p) return 0;
30891 return 0;
30893 _ACEOF
30894 rm -f conftest.$ac_objext conftest$ac_exeext
30895 if { (ac_try="$ac_link"
30896 case "(($ac_try" in
30897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30898 *) ac_try_echo=$ac_try;;
30899 esac
30900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30901 (eval "$ac_link") 2>conftest.er1
30902 ac_status=$?
30903 grep -v '^ *+' conftest.er1 >conftest.err
30904 rm -f conftest.er1
30905 cat conftest.err >&5
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); } &&
30908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30909 { (case "(($ac_try" in
30910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30911 *) ac_try_echo=$ac_try;;
30912 esac
30913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30914 (eval "$ac_try") 2>&5
30915 ac_status=$?
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); }; } &&
30918 { ac_try='test -s conftest$ac_exeext'
30919 { (case "(($ac_try" in
30920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30921 *) ac_try_echo=$ac_try;;
30922 esac
30923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30924 (eval "$ac_try") 2>&5
30925 ac_status=$?
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); }; }; then
30928 ac_cv_func_alloca_works=yes
30929 else
30930 echo "$as_me: failed program was:" >&5
30931 sed 's/^/| /' conftest.$ac_ext >&5
30933 ac_cv_func_alloca_works=no
30936 rm -f core conftest.err conftest.$ac_objext \
30937 conftest$ac_exeext conftest.$ac_ext
30939 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30940 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30942 if test $ac_cv_func_alloca_works = yes; then
30944 cat >>confdefs.h <<\_ACEOF
30945 #define HAVE_ALLOCA 1
30946 _ACEOF
30948 else
30949 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30950 # that cause trouble. Some versions do not even contain alloca or
30951 # contain a buggy version. If you still want to use their alloca,
30952 # use ar to extract alloca.o from them instead of compiling alloca.c.
30954 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30956 cat >>confdefs.h <<\_ACEOF
30957 #define C_ALLOCA 1
30958 _ACEOF
30961 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30962 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30963 if test "${ac_cv_os_cray+set}" = set; then
30964 echo $ECHO_N "(cached) $ECHO_C" >&6
30965 else
30966 cat >conftest.$ac_ext <<_ACEOF
30967 /* confdefs.h. */
30968 _ACEOF
30969 cat confdefs.h >>conftest.$ac_ext
30970 cat >>conftest.$ac_ext <<_ACEOF
30971 /* end confdefs.h. */
30972 #if defined CRAY && ! defined CRAY2
30973 webecray
30974 #else
30975 wenotbecray
30976 #endif
30978 _ACEOF
30979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30980 $EGREP "webecray" >/dev/null 2>&1; then
30981 ac_cv_os_cray=yes
30982 else
30983 ac_cv_os_cray=no
30985 rm -f conftest*
30988 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30989 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
30990 if test $ac_cv_os_cray = yes; then
30991 for ac_func in _getb67 GETB67 getb67; do
30992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30996 echo $ECHO_N "(cached) $ECHO_C" >&6
30997 else
30998 cat >conftest.$ac_ext <<_ACEOF
30999 /* confdefs.h. */
31000 _ACEOF
31001 cat confdefs.h >>conftest.$ac_ext
31002 cat >>conftest.$ac_ext <<_ACEOF
31003 /* end confdefs.h. */
31004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31006 #define $ac_func innocuous_$ac_func
31008 /* System header to define __stub macros and hopefully few prototypes,
31009 which can conflict with char $ac_func (); below.
31010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31011 <limits.h> exists even on freestanding compilers. */
31013 #ifdef __STDC__
31014 # include <limits.h>
31015 #else
31016 # include <assert.h>
31017 #endif
31019 #undef $ac_func
31021 /* Override any GCC internal prototype to avoid an error.
31022 Use char because int might match the return type of a GCC
31023 builtin and then its argument prototype would still apply. */
31024 #ifdef __cplusplus
31025 extern "C"
31026 #endif
31027 char $ac_func ();
31028 /* The GNU C library defines this for functions which it implements
31029 to always fail with ENOSYS. Some functions are actually named
31030 something starting with __ and the normal name is an alias. */
31031 #if defined __stub_$ac_func || defined __stub___$ac_func
31032 choke me
31033 #endif
31036 main ()
31038 return $ac_func ();
31040 return 0;
31042 _ACEOF
31043 rm -f conftest.$ac_objext conftest$ac_exeext
31044 if { (ac_try="$ac_link"
31045 case "(($ac_try" in
31046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31047 *) ac_try_echo=$ac_try;;
31048 esac
31049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31050 (eval "$ac_link") 2>conftest.er1
31051 ac_status=$?
31052 grep -v '^ *+' conftest.er1 >conftest.err
31053 rm -f conftest.er1
31054 cat conftest.err >&5
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); } &&
31057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31058 { (case "(($ac_try" in
31059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060 *) ac_try_echo=$ac_try;;
31061 esac
31062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063 (eval "$ac_try") 2>&5
31064 ac_status=$?
31065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066 (exit $ac_status); }; } &&
31067 { ac_try='test -s conftest$ac_exeext'
31068 { (case "(($ac_try" in
31069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070 *) ac_try_echo=$ac_try;;
31071 esac
31072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073 (eval "$ac_try") 2>&5
31074 ac_status=$?
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; }; then
31077 eval "$as_ac_var=yes"
31078 else
31079 echo "$as_me: failed program was:" >&5
31080 sed 's/^/| /' conftest.$ac_ext >&5
31082 eval "$as_ac_var=no"
31085 rm -f core conftest.err conftest.$ac_objext \
31086 conftest$ac_exeext conftest.$ac_ext
31088 ac_res=`eval echo '${'$as_ac_var'}'`
31089 { echo "$as_me:$LINENO: result: $ac_res" >&5
31090 echo "${ECHO_T}$ac_res" >&6; }
31091 if test `eval echo '${'$as_ac_var'}'` = yes; then
31093 cat >>confdefs.h <<_ACEOF
31094 #define CRAY_STACKSEG_END $ac_func
31095 _ACEOF
31097 break
31100 done
31103 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31104 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31105 if test "${ac_cv_c_stack_direction+set}" = set; then
31106 echo $ECHO_N "(cached) $ECHO_C" >&6
31107 else
31108 if test "$cross_compiling" = yes; then
31109 ac_cv_c_stack_direction=0
31110 else
31111 cat >conftest.$ac_ext <<_ACEOF
31112 /* confdefs.h. */
31113 _ACEOF
31114 cat confdefs.h >>conftest.$ac_ext
31115 cat >>conftest.$ac_ext <<_ACEOF
31116 /* end confdefs.h. */
31117 $ac_includes_default
31119 find_stack_direction ()
31121 static char *addr = 0;
31122 auto char dummy;
31123 if (addr == 0)
31125 addr = &dummy;
31126 return find_stack_direction ();
31128 else
31129 return (&dummy > addr) ? 1 : -1;
31133 main ()
31135 return find_stack_direction () < 0;
31137 _ACEOF
31138 rm -f conftest$ac_exeext
31139 if { (ac_try="$ac_link"
31140 case "(($ac_try" in
31141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31142 *) ac_try_echo=$ac_try;;
31143 esac
31144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31145 (eval "$ac_link") 2>&5
31146 ac_status=$?
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31149 { (case "(($ac_try" in
31150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31151 *) ac_try_echo=$ac_try;;
31152 esac
31153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31154 (eval "$ac_try") 2>&5
31155 ac_status=$?
31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31157 (exit $ac_status); }; }; then
31158 ac_cv_c_stack_direction=1
31159 else
31160 echo "$as_me: program exited with status $ac_status" >&5
31161 echo "$as_me: failed program was:" >&5
31162 sed 's/^/| /' conftest.$ac_ext >&5
31164 ( exit $ac_status )
31165 ac_cv_c_stack_direction=-1
31167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31172 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31173 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31175 cat >>confdefs.h <<_ACEOF
31176 #define STACK_DIRECTION $ac_cv_c_stack_direction
31177 _ACEOF
31183 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31184 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31185 if test "${ac_cv_func_rand48+set}" = set; then
31186 echo $ECHO_N "(cached) $ECHO_C" >&6
31187 else
31188 ac_ext=cpp
31189 ac_cpp='$CXXCPP $CPPFLAGS'
31190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31194 cat >conftest.$ac_ext <<_ACEOF
31195 /* confdefs.h. */
31196 _ACEOF
31197 cat confdefs.h >>conftest.$ac_ext
31198 cat >>conftest.$ac_ext <<_ACEOF
31199 /* end confdefs.h. */
31200 #include <stdlib.h>
31202 main ()
31204 srand48(0);lrand48();drand48();
31206 return 0;
31208 _ACEOF
31209 rm -f conftest.$ac_objext
31210 if { (ac_try="$ac_compile"
31211 case "(($ac_try" in
31212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31213 *) ac_try_echo=$ac_try;;
31214 esac
31215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31216 (eval "$ac_compile") 2>conftest.er1
31217 ac_status=$?
31218 grep -v '^ *+' conftest.er1 >conftest.err
31219 rm -f conftest.er1
31220 cat conftest.err >&5
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); } &&
31223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31224 { (case "(($ac_try" in
31225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226 *) ac_try_echo=$ac_try;;
31227 esac
31228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31229 (eval "$ac_try") 2>&5
31230 ac_status=$?
31231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); }; } &&
31233 { ac_try='test -s conftest.$ac_objext'
31234 { (case "(($ac_try" in
31235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236 *) ac_try_echo=$ac_try;;
31237 esac
31238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31239 (eval "$ac_try") 2>&5
31240 ac_status=$?
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); }; }; then
31243 ac_cv_func_rand48=yes
31244 else
31245 echo "$as_me: failed program was:" >&5
31246 sed 's/^/| /' conftest.$ac_ext >&5
31248 ac_cv_func_rand48=no
31251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31252 ac_ext=c
31253 ac_cpp='$CPP $CPPFLAGS'
31254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31259 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31260 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31262 if test "$ac_cv_func_rand48" = "yes" ; then
31264 cat >>confdefs.h <<\_ACEOF
31265 #define HAVE_RAND48 1
31266 _ACEOF
31271 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31272 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31273 if test "${ac_cv_cxx_namespaces+set}" = set; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31275 else
31276 ac_ext=cpp
31277 ac_cpp='$CXXCPP $CPPFLAGS'
31278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31282 cat >conftest.$ac_ext <<_ACEOF
31283 /* confdefs.h. */
31284 _ACEOF
31285 cat confdefs.h >>conftest.$ac_ext
31286 cat >>conftest.$ac_ext <<_ACEOF
31287 /* end confdefs.h. */
31288 namespace Outer { namespace Inner { int i = 0; }}
31290 main ()
31292 using namespace Outer::Inner; return i;
31294 return 0;
31296 _ACEOF
31297 rm -f conftest.$ac_objext
31298 if { (ac_try="$ac_compile"
31299 case "(($ac_try" in
31300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31301 *) ac_try_echo=$ac_try;;
31302 esac
31303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31304 (eval "$ac_compile") 2>conftest.er1
31305 ac_status=$?
31306 grep -v '^ *+' conftest.er1 >conftest.err
31307 rm -f conftest.er1
31308 cat conftest.err >&5
31309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310 (exit $ac_status); } &&
31311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31312 { (case "(($ac_try" in
31313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314 *) ac_try_echo=$ac_try;;
31315 esac
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_try") 2>&5
31318 ac_status=$?
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); }; } &&
31321 { ac_try='test -s conftest.$ac_objext'
31322 { (case "(($ac_try" in
31323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31324 *) ac_try_echo=$ac_try;;
31325 esac
31326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31327 (eval "$ac_try") 2>&5
31328 ac_status=$?
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); }; }; then
31331 ac_cv_cxx_namespaces=yes
31332 else
31333 echo "$as_me: failed program was:" >&5
31334 sed 's/^/| /' conftest.$ac_ext >&5
31336 ac_cv_cxx_namespaces=no
31339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31340 ac_ext=c
31341 ac_cpp='$CPP $CPPFLAGS'
31342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31348 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31349 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31350 if test "$ac_cv_cxx_namespaces" = yes; then
31352 cat >>confdefs.h <<\_ACEOF
31353 #define HAVE_NAMESPACES
31354 _ACEOF
31358 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31359 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31360 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31361 echo $ECHO_N "(cached) $ECHO_C" >&6
31362 else
31364 ac_ext=cpp
31365 ac_cpp='$CXXCPP $CPPFLAGS'
31366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31370 cat >conftest.$ac_ext <<_ACEOF
31371 /* confdefs.h. */
31372 _ACEOF
31373 cat confdefs.h >>conftest.$ac_ext
31374 cat >>conftest.$ac_ext <<_ACEOF
31375 /* end confdefs.h. */
31376 #include <ext/hash_map>
31377 #ifdef HAVE_NAMESPACES
31378 using namespace std;
31379 #endif
31381 main ()
31383 hash_map<int, int> t;
31385 return 0;
31387 _ACEOF
31388 rm -f conftest.$ac_objext
31389 if { (ac_try="$ac_compile"
31390 case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31393 esac
31394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395 (eval "$ac_compile") 2>conftest.er1
31396 ac_status=$?
31397 grep -v '^ *+' conftest.er1 >conftest.err
31398 rm -f conftest.er1
31399 cat conftest.err >&5
31400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); } &&
31402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31403 { (case "(($ac_try" in
31404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405 *) ac_try_echo=$ac_try;;
31406 esac
31407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408 (eval "$ac_try") 2>&5
31409 ac_status=$?
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); }; } &&
31412 { ac_try='test -s conftest.$ac_objext'
31413 { (case "(($ac_try" in
31414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415 *) ac_try_echo=$ac_try;;
31416 esac
31417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418 (eval "$ac_try") 2>&5
31419 ac_status=$?
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); }; }; then
31422 ac_cv_cxx_have_std_ext_hash_map=yes
31423 else
31424 echo "$as_me: failed program was:" >&5
31425 sed 's/^/| /' conftest.$ac_ext >&5
31427 ac_cv_cxx_have_std_ext_hash_map=no
31430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31431 ac_ext=c
31432 ac_cpp='$CPP $CPPFLAGS'
31433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31438 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31439 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31440 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31441 then
31443 cat >>confdefs.h <<\_ACEOF
31444 #define HAVE_STD_EXT_HASH_MAP 1
31445 _ACEOF
31447 else
31449 cat >>confdefs.h <<\_ACEOF
31450 #define HAVE_STD_EXT_HASH_MAP 0
31451 _ACEOF
31455 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31456 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31457 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31458 echo $ECHO_N "(cached) $ECHO_C" >&6
31459 else
31461 ac_ext=cpp
31462 ac_cpp='$CXXCPP $CPPFLAGS'
31463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31467 cat >conftest.$ac_ext <<_ACEOF
31468 /* confdefs.h. */
31469 _ACEOF
31470 cat confdefs.h >>conftest.$ac_ext
31471 cat >>conftest.$ac_ext <<_ACEOF
31472 /* end confdefs.h. */
31473 #include <ext/hash_map>
31474 #ifdef HAVE_NAMESPACES
31475 using namespace __gnu_cxx;
31476 #endif
31478 main ()
31480 hash_map<int,int> t;
31482 return 0;
31484 _ACEOF
31485 rm -f conftest.$ac_objext
31486 if { (ac_try="$ac_compile"
31487 case "(($ac_try" in
31488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489 *) ac_try_echo=$ac_try;;
31490 esac
31491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492 (eval "$ac_compile") 2>conftest.er1
31493 ac_status=$?
31494 grep -v '^ *+' conftest.er1 >conftest.err
31495 rm -f conftest.er1
31496 cat conftest.err >&5
31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498 (exit $ac_status); } &&
31499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31500 { (case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31503 esac
31504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_try") 2>&5
31506 ac_status=$?
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); }; } &&
31509 { ac_try='test -s conftest.$ac_objext'
31510 { (case "(($ac_try" in
31511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512 *) ac_try_echo=$ac_try;;
31513 esac
31514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515 (eval "$ac_try") 2>&5
31516 ac_status=$?
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 (exit $ac_status); }; }; then
31519 ac_cv_cxx_have_gnu_ext_hash_map=yes
31520 else
31521 echo "$as_me: failed program was:" >&5
31522 sed 's/^/| /' conftest.$ac_ext >&5
31524 ac_cv_cxx_have_gnu_ext_hash_map=no
31527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31528 ac_ext=c
31529 ac_cpp='$CPP $CPPFLAGS'
31530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31535 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31536 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31537 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31538 then
31540 cat >>confdefs.h <<\_ACEOF
31541 #define HAVE_GNU_EXT_HASH_MAP 1
31542 _ACEOF
31544 else
31546 cat >>confdefs.h <<\_ACEOF
31547 #define HAVE_GNU_EXT_HASH_MAP 0
31548 _ACEOF
31552 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31553 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31554 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31555 echo $ECHO_N "(cached) $ECHO_C" >&6
31556 else
31558 ac_ext=cpp
31559 ac_cpp='$CXXCPP $CPPFLAGS'
31560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31564 cat >conftest.$ac_ext <<_ACEOF
31565 /* confdefs.h. */
31566 _ACEOF
31567 cat confdefs.h >>conftest.$ac_ext
31568 cat >>conftest.$ac_ext <<_ACEOF
31569 /* end confdefs.h. */
31570 #include <hash_map>
31572 main ()
31574 hash_map<int,int> t;
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_cxx_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_cxx_have_global_hash_map=yes
31614 else
31615 echo "$as_me: failed program was:" >&5
31616 sed 's/^/| /' conftest.$ac_ext >&5
31618 ac_cv_cxx_have_global_hash_map=no
31621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31622 ac_ext=c
31623 ac_cpp='$CPP $CPPFLAGS'
31624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31629 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31630 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31631 if test "$ac_cv_cxx_have_global_hash_map" = yes
31632 then
31634 cat >>confdefs.h <<\_ACEOF
31635 #define HAVE_GLOBAL_HASH_MAP 1
31636 _ACEOF
31638 else
31640 cat >>confdefs.h <<\_ACEOF
31641 #define HAVE_GLOBAL_HASH_MAP 0
31642 _ACEOF
31646 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31647 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31648 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31649 echo $ECHO_N "(cached) $ECHO_C" >&6
31650 else
31652 ac_ext=cpp
31653 ac_cpp='$CXXCPP $CPPFLAGS'
31654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31658 cat >conftest.$ac_ext <<_ACEOF
31659 /* confdefs.h. */
31660 _ACEOF
31661 cat confdefs.h >>conftest.$ac_ext
31662 cat >>conftest.$ac_ext <<_ACEOF
31663 /* end confdefs.h. */
31664 #include <ext/hash_set>
31665 #ifdef HAVE_NAMESPACES
31666 using namespace std;
31667 #endif
31669 main ()
31671 hash_set<int> t;
31673 return 0;
31675 _ACEOF
31676 rm -f conftest.$ac_objext
31677 if { (ac_try="$ac_compile"
31678 case "(($ac_try" in
31679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31680 *) ac_try_echo=$ac_try;;
31681 esac
31682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31683 (eval "$ac_compile") 2>conftest.er1
31684 ac_status=$?
31685 grep -v '^ *+' conftest.er1 >conftest.err
31686 rm -f conftest.er1
31687 cat conftest.err >&5
31688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689 (exit $ac_status); } &&
31690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31691 { (case "(($ac_try" in
31692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31693 *) ac_try_echo=$ac_try;;
31694 esac
31695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31696 (eval "$ac_try") 2>&5
31697 ac_status=$?
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); }; } &&
31700 { ac_try='test -s conftest.$ac_objext'
31701 { (case "(($ac_try" in
31702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31703 *) ac_try_echo=$ac_try;;
31704 esac
31705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31706 (eval "$ac_try") 2>&5
31707 ac_status=$?
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); }; }; then
31710 ac_cv_cxx_have_std_ext_hash_set=yes
31711 else
31712 echo "$as_me: failed program was:" >&5
31713 sed 's/^/| /' conftest.$ac_ext >&5
31715 ac_cv_cxx_have_std_ext_hash_set=no
31718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31719 ac_ext=c
31720 ac_cpp='$CPP $CPPFLAGS'
31721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31726 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31727 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31728 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31729 then
31731 cat >>confdefs.h <<\_ACEOF
31732 #define HAVE_STD_EXT_HASH_SET 1
31733 _ACEOF
31735 else
31737 cat >>confdefs.h <<\_ACEOF
31738 #define HAVE_STD_EXT_HASH_SET 0
31739 _ACEOF
31743 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31744 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31745 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31746 echo $ECHO_N "(cached) $ECHO_C" >&6
31747 else
31749 ac_ext=cpp
31750 ac_cpp='$CXXCPP $CPPFLAGS'
31751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31755 cat >conftest.$ac_ext <<_ACEOF
31756 /* confdefs.h. */
31757 _ACEOF
31758 cat confdefs.h >>conftest.$ac_ext
31759 cat >>conftest.$ac_ext <<_ACEOF
31760 /* end confdefs.h. */
31761 #include <ext/hash_set>
31762 #ifdef HAVE_NAMESPACES
31763 using namespace __gnu_cxx;
31764 #endif
31766 main ()
31768 hash_set<int> t;
31770 return 0;
31772 _ACEOF
31773 rm -f conftest.$ac_objext
31774 if { (ac_try="$ac_compile"
31775 case "(($ac_try" in
31776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31777 *) ac_try_echo=$ac_try;;
31778 esac
31779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31780 (eval "$ac_compile") 2>conftest.er1
31781 ac_status=$?
31782 grep -v '^ *+' conftest.er1 >conftest.err
31783 rm -f conftest.er1
31784 cat conftest.err >&5
31785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786 (exit $ac_status); } &&
31787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31788 { (case "(($ac_try" in
31789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31790 *) ac_try_echo=$ac_try;;
31791 esac
31792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31793 (eval "$ac_try") 2>&5
31794 ac_status=$?
31795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); }; } &&
31797 { ac_try='test -s conftest.$ac_objext'
31798 { (case "(($ac_try" in
31799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800 *) ac_try_echo=$ac_try;;
31801 esac
31802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803 (eval "$ac_try") 2>&5
31804 ac_status=$?
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); }; }; then
31807 ac_cv_cxx_have_gnu_ext_hash_set=yes
31808 else
31809 echo "$as_me: failed program was:" >&5
31810 sed 's/^/| /' conftest.$ac_ext >&5
31812 ac_cv_cxx_have_gnu_ext_hash_set=no
31815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31816 ac_ext=c
31817 ac_cpp='$CPP $CPPFLAGS'
31818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31823 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31824 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31825 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31826 then
31828 cat >>confdefs.h <<\_ACEOF
31829 #define HAVE_GNU_EXT_HASH_SET 1
31830 _ACEOF
31832 else
31834 cat >>confdefs.h <<\_ACEOF
31835 #define HAVE_GNU_EXT_HASH_SET 0
31836 _ACEOF
31840 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31841 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31842 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31843 echo $ECHO_N "(cached) $ECHO_C" >&6
31844 else
31846 ac_ext=cpp
31847 ac_cpp='$CXXCPP $CPPFLAGS'
31848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31852 cat >conftest.$ac_ext <<_ACEOF
31853 /* confdefs.h. */
31854 _ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h. */
31858 #include <hash_set>
31860 main ()
31862 hash_set<int> t; return 0;
31864 return 0;
31866 _ACEOF
31867 rm -f conftest.$ac_objext
31868 if { (ac_try="$ac_compile"
31869 case "(($ac_try" in
31870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31871 *) ac_try_echo=$ac_try;;
31872 esac
31873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31874 (eval "$ac_compile") 2>conftest.er1
31875 ac_status=$?
31876 grep -v '^ *+' conftest.er1 >conftest.err
31877 rm -f conftest.er1
31878 cat conftest.err >&5
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); } &&
31881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31882 { (case "(($ac_try" in
31883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31884 *) ac_try_echo=$ac_try;;
31885 esac
31886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31887 (eval "$ac_try") 2>&5
31888 ac_status=$?
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); }; } &&
31891 { ac_try='test -s conftest.$ac_objext'
31892 { (case "(($ac_try" in
31893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894 *) ac_try_echo=$ac_try;;
31895 esac
31896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897 (eval "$ac_try") 2>&5
31898 ac_status=$?
31899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900 (exit $ac_status); }; }; then
31901 ac_cv_cxx_have_global_hash_set=yes
31902 else
31903 echo "$as_me: failed program was:" >&5
31904 sed 's/^/| /' conftest.$ac_ext >&5
31906 ac_cv_cxx_have_global_hash_set=no
31909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31910 ac_ext=c
31911 ac_cpp='$CPP $CPPFLAGS'
31912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31917 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31918 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31919 if test "$ac_cv_cxx_have_global_hash_set" = yes
31920 then
31922 cat >>confdefs.h <<\_ACEOF
31923 #define HAVE_GLOBAL_HASH_SET 1
31924 _ACEOF
31926 else
31928 cat >>confdefs.h <<\_ACEOF
31929 #define HAVE_GLOBAL_HASH_SET 0
31930 _ACEOF
31934 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31935 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31936 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31937 echo $ECHO_N "(cached) $ECHO_C" >&6
31938 else
31940 ac_ext=cpp
31941 ac_cpp='$CXXCPP $CPPFLAGS'
31942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31946 cat >conftest.$ac_ext <<_ACEOF
31947 /* confdefs.h. */
31948 _ACEOF
31949 cat confdefs.h >>conftest.$ac_ext
31950 cat >>conftest.$ac_ext <<_ACEOF
31951 /* end confdefs.h. */
31952 #include <iterator>
31953 #ifdef HAVE_NAMESPACES
31954 using namespace std;
31955 #endif
31957 main ()
31959 iterator<int,int,int> t; return 0;
31961 return 0;
31963 _ACEOF
31964 rm -f conftest.$ac_objext
31965 if { (ac_try="$ac_compile"
31966 case "(($ac_try" in
31967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31968 *) ac_try_echo=$ac_try;;
31969 esac
31970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971 (eval "$ac_compile") 2>conftest.er1
31972 ac_status=$?
31973 grep -v '^ *+' conftest.er1 >conftest.err
31974 rm -f conftest.er1
31975 cat conftest.err >&5
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); } &&
31978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31979 { (case "(($ac_try" in
31980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31981 *) ac_try_echo=$ac_try;;
31982 esac
31983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984 (eval "$ac_try") 2>&5
31985 ac_status=$?
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); }; } &&
31988 { ac_try='test -s conftest.$ac_objext'
31989 { (case "(($ac_try" in
31990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31991 *) ac_try_echo=$ac_try;;
31992 esac
31993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31994 (eval "$ac_try") 2>&5
31995 ac_status=$?
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); }; }; then
31998 ac_cv_cxx_have_std_iterator=yes
31999 else
32000 echo "$as_me: failed program was:" >&5
32001 sed 's/^/| /' conftest.$ac_ext >&5
32003 ac_cv_cxx_have_std_iterator=no
32006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32007 ac_ext=c
32008 ac_cpp='$CPP $CPPFLAGS'
32009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32015 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32016 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32017 if test "$ac_cv_cxx_have_std_iterator" = yes
32018 then
32020 cat >>confdefs.h <<\_ACEOF
32021 #define HAVE_STD_ITERATOR 1
32022 _ACEOF
32024 else
32026 cat >>confdefs.h <<\_ACEOF
32027 #define HAVE_STD_ITERATOR 0
32028 _ACEOF
32032 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32033 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32034 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32035 echo $ECHO_N "(cached) $ECHO_C" >&6
32036 else
32038 ac_ext=cpp
32039 ac_cpp='$CXXCPP $CPPFLAGS'
32040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32044 cat >conftest.$ac_ext <<_ACEOF
32045 /* confdefs.h. */
32046 _ACEOF
32047 cat confdefs.h >>conftest.$ac_ext
32048 cat >>conftest.$ac_ext <<_ACEOF
32049 /* end confdefs.h. */
32050 #include <iterator>
32051 #ifdef HAVE_NAMESPACES
32052 using namespace std;
32053 #endif
32055 main ()
32057 bidirectional_iterator<int,int> t; return 0;
32059 return 0;
32061 _ACEOF
32062 rm -f conftest.$ac_objext
32063 if { (ac_try="$ac_compile"
32064 case "(($ac_try" in
32065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32066 *) ac_try_echo=$ac_try;;
32067 esac
32068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32069 (eval "$ac_compile") 2>conftest.er1
32070 ac_status=$?
32071 grep -v '^ *+' conftest.er1 >conftest.err
32072 rm -f conftest.er1
32073 cat conftest.err >&5
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); } &&
32076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32077 { (case "(($ac_try" in
32078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32079 *) ac_try_echo=$ac_try;;
32080 esac
32081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082 (eval "$ac_try") 2>&5
32083 ac_status=$?
32084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085 (exit $ac_status); }; } &&
32086 { ac_try='test -s conftest.$ac_objext'
32087 { (case "(($ac_try" in
32088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32089 *) ac_try_echo=$ac_try;;
32090 esac
32091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32092 (eval "$ac_try") 2>&5
32093 ac_status=$?
32094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095 (exit $ac_status); }; }; then
32096 ac_cv_cxx_have_bi_iterator=yes
32097 else
32098 echo "$as_me: failed program was:" >&5
32099 sed 's/^/| /' conftest.$ac_ext >&5
32101 ac_cv_cxx_have_bi_iterator=no
32104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32105 ac_ext=c
32106 ac_cpp='$CPP $CPPFLAGS'
32107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32113 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32114 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32115 if test "$ac_cv_cxx_have_bi_iterator" = yes
32116 then
32118 cat >>confdefs.h <<\_ACEOF
32119 #define HAVE_BI_ITERATOR 1
32120 _ACEOF
32122 else
32124 cat >>confdefs.h <<\_ACEOF
32125 #define HAVE_BI_ITERATOR 0
32126 _ACEOF
32130 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32131 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32132 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32133 echo $ECHO_N "(cached) $ECHO_C" >&6
32134 else
32136 ac_ext=cpp
32137 ac_cpp='$CXXCPP $CPPFLAGS'
32138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32142 cat >conftest.$ac_ext <<_ACEOF
32143 /* confdefs.h. */
32144 _ACEOF
32145 cat confdefs.h >>conftest.$ac_ext
32146 cat >>conftest.$ac_ext <<_ACEOF
32147 /* end confdefs.h. */
32148 #include <iterator>
32149 #ifdef HAVE_NAMESPACES
32150 using namespace std;
32151 #endif
32153 main ()
32155 forward_iterator<int,int> t; return 0;
32157 return 0;
32159 _ACEOF
32160 rm -f conftest.$ac_objext
32161 if { (ac_try="$ac_compile"
32162 case "(($ac_try" in
32163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164 *) ac_try_echo=$ac_try;;
32165 esac
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167 (eval "$ac_compile") 2>conftest.er1
32168 ac_status=$?
32169 grep -v '^ *+' conftest.er1 >conftest.err
32170 rm -f conftest.er1
32171 cat conftest.err >&5
32172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32173 (exit $ac_status); } &&
32174 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32175 { (case "(($ac_try" in
32176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32177 *) ac_try_echo=$ac_try;;
32178 esac
32179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32180 (eval "$ac_try") 2>&5
32181 ac_status=$?
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); }; } &&
32184 { ac_try='test -s conftest.$ac_objext'
32185 { (case "(($ac_try" in
32186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187 *) ac_try_echo=$ac_try;;
32188 esac
32189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190 (eval "$ac_try") 2>&5
32191 ac_status=$?
32192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193 (exit $ac_status); }; }; then
32194 ac_cv_cxx_have_fwd_iterator=yes
32195 else
32196 echo "$as_me: failed program was:" >&5
32197 sed 's/^/| /' conftest.$ac_ext >&5
32199 ac_cv_cxx_have_fwd_iterator=no
32202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32203 ac_ext=c
32204 ac_cpp='$CPP $CPPFLAGS'
32205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32211 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32212 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32213 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32214 then
32216 cat >>confdefs.h <<\_ACEOF
32217 #define HAVE_FWD_ITERATOR 1
32218 _ACEOF
32220 else
32222 cat >>confdefs.h <<\_ACEOF
32223 #define HAVE_FWD_ITERATOR 0
32224 _ACEOF
32229 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32230 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32231 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32232 echo $ECHO_N "(cached) $ECHO_C" >&6
32233 else
32234 ac_ext=cpp
32235 ac_cpp='$CXXCPP $CPPFLAGS'
32236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32240 cat >conftest.$ac_ext <<_ACEOF
32241 /* confdefs.h. */
32242 _ACEOF
32243 cat confdefs.h >>conftest.$ac_ext
32244 cat >>conftest.$ac_ext <<_ACEOF
32245 /* end confdefs.h. */
32246 #include <math.h>
32248 main ()
32250 float f; isnan(f);
32252 return 0;
32254 _ACEOF
32255 rm -f conftest.$ac_objext
32256 if { (ac_try="$ac_compile"
32257 case "(($ac_try" in
32258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32259 *) ac_try_echo=$ac_try;;
32260 esac
32261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32262 (eval "$ac_compile") 2>conftest.er1
32263 ac_status=$?
32264 grep -v '^ *+' conftest.er1 >conftest.err
32265 rm -f conftest.er1
32266 cat conftest.err >&5
32267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268 (exit $ac_status); } &&
32269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
32276 ac_status=$?
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); }; } &&
32279 { ac_try='test -s conftest.$ac_objext'
32280 { (case "(($ac_try" in
32281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32282 *) ac_try_echo=$ac_try;;
32283 esac
32284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32285 (eval "$ac_try") 2>&5
32286 ac_status=$?
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); }; }; then
32289 ac_cv_func_isnan_in_math_h=yes
32290 else
32291 echo "$as_me: failed program was:" >&5
32292 sed 's/^/| /' conftest.$ac_ext >&5
32294 ac_cv_func_isnan_in_math_h=no
32297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32298 ac_ext=c
32299 ac_cpp='$CPP $CPPFLAGS'
32300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32305 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32306 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32309 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32311 cat >>confdefs.h <<\_ACEOF
32312 #define HAVE_ISNAN_IN_MATH_H 1
32313 _ACEOF
32317 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32318 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32319 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32321 else
32322 ac_ext=cpp
32323 ac_cpp='$CXXCPP $CPPFLAGS'
32324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32328 cat >conftest.$ac_ext <<_ACEOF
32329 /* confdefs.h. */
32330 _ACEOF
32331 cat confdefs.h >>conftest.$ac_ext
32332 cat >>conftest.$ac_ext <<_ACEOF
32333 /* end confdefs.h. */
32334 #include <cmath>
32336 main ()
32338 float f; isnan(f);
32340 return 0;
32342 _ACEOF
32343 rm -f conftest.$ac_objext
32344 if { (ac_try="$ac_compile"
32345 case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32348 esac
32349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_compile") 2>conftest.er1
32351 ac_status=$?
32352 grep -v '^ *+' conftest.er1 >conftest.err
32353 rm -f conftest.er1
32354 cat conftest.err >&5
32355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); } &&
32357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32358 { (case "(($ac_try" in
32359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360 *) ac_try_echo=$ac_try;;
32361 esac
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363 (eval "$ac_try") 2>&5
32364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; } &&
32367 { ac_try='test -s conftest.$ac_objext'
32368 { (case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32371 esac
32372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_try") 2>&5
32374 ac_status=$?
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; }; then
32377 ac_cv_func_isnan_in_cmath=yes
32378 else
32379 echo "$as_me: failed program was:" >&5
32380 sed 's/^/| /' conftest.$ac_ext >&5
32382 ac_cv_func_isnan_in_cmath=no
32385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32386 ac_ext=c
32387 ac_cpp='$CPP $CPPFLAGS'
32388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32393 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32394 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32396 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32398 cat >>confdefs.h <<\_ACEOF
32399 #define HAVE_ISNAN_IN_CMATH 1
32400 _ACEOF
32404 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32405 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32406 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32407 echo $ECHO_N "(cached) $ECHO_C" >&6
32408 else
32409 ac_ext=cpp
32410 ac_cpp='$CXXCPP $CPPFLAGS'
32411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32415 cat >conftest.$ac_ext <<_ACEOF
32416 /* confdefs.h. */
32417 _ACEOF
32418 cat confdefs.h >>conftest.$ac_ext
32419 cat >>conftest.$ac_ext <<_ACEOF
32420 /* end confdefs.h. */
32421 #include <cmath>
32423 main ()
32425 float f; std::isnan(f);
32427 return 0;
32429 _ACEOF
32430 rm -f conftest.$ac_objext
32431 if { (ac_try="$ac_compile"
32432 case "(($ac_try" in
32433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434 *) ac_try_echo=$ac_try;;
32435 esac
32436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437 (eval "$ac_compile") 2>conftest.er1
32438 ac_status=$?
32439 grep -v '^ *+' conftest.er1 >conftest.err
32440 rm -f conftest.er1
32441 cat conftest.err >&5
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); } &&
32444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32445 { (case "(($ac_try" in
32446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447 *) ac_try_echo=$ac_try;;
32448 esac
32449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450 (eval "$ac_try") 2>&5
32451 ac_status=$?
32452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453 (exit $ac_status); }; } &&
32454 { ac_try='test -s conftest.$ac_objext'
32455 { (case "(($ac_try" in
32456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457 *) ac_try_echo=$ac_try;;
32458 esac
32459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460 (eval "$ac_try") 2>&5
32461 ac_status=$?
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); }; }; then
32464 ac_cv_func_std_isnan_in_cmath=yes
32465 else
32466 echo "$as_me: failed program was:" >&5
32467 sed 's/^/| /' conftest.$ac_ext >&5
32469 ac_cv_func_std_isnan_in_cmath=no
32472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32473 ac_ext=c
32474 ac_cpp='$CPP $CPPFLAGS'
32475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32480 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32481 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32483 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32485 cat >>confdefs.h <<\_ACEOF
32486 #define HAVE_STD_ISNAN_IN_CMATH 1
32487 _ACEOF
32492 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32493 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32494 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32495 echo $ECHO_N "(cached) $ECHO_C" >&6
32496 else
32497 ac_ext=cpp
32498 ac_cpp='$CXXCPP $CPPFLAGS'
32499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32503 cat >conftest.$ac_ext <<_ACEOF
32504 /* confdefs.h. */
32505 _ACEOF
32506 cat confdefs.h >>conftest.$ac_ext
32507 cat >>conftest.$ac_ext <<_ACEOF
32508 /* end confdefs.h. */
32509 #include <math.h>
32511 main ()
32513 float f; isinf(f);
32515 return 0;
32517 _ACEOF
32518 rm -f conftest.$ac_objext
32519 if { (ac_try="$ac_compile"
32520 case "(($ac_try" in
32521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522 *) ac_try_echo=$ac_try;;
32523 esac
32524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525 (eval "$ac_compile") 2>conftest.er1
32526 ac_status=$?
32527 grep -v '^ *+' conftest.er1 >conftest.err
32528 rm -f conftest.er1
32529 cat conftest.err >&5
32530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32531 (exit $ac_status); } &&
32532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32533 { (case "(($ac_try" in
32534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32535 *) ac_try_echo=$ac_try;;
32536 esac
32537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32538 (eval "$ac_try") 2>&5
32539 ac_status=$?
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); }; } &&
32542 { ac_try='test -s conftest.$ac_objext'
32543 { (case "(($ac_try" in
32544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545 *) ac_try_echo=$ac_try;;
32546 esac
32547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548 (eval "$ac_try") 2>&5
32549 ac_status=$?
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); }; }; then
32552 ac_cv_func_isinf_in_math_h=yes
32553 else
32554 echo "$as_me: failed program was:" >&5
32555 sed 's/^/| /' conftest.$ac_ext >&5
32557 ac_cv_func_isinf_in_math_h=no
32560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32561 ac_ext=c
32562 ac_cpp='$CPP $CPPFLAGS'
32563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32568 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32569 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32571 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32573 cat >>confdefs.h <<\_ACEOF
32574 #define HAVE_ISINF_IN_MATH_H 1
32575 _ACEOF
32579 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32580 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32581 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32582 echo $ECHO_N "(cached) $ECHO_C" >&6
32583 else
32584 ac_ext=cpp
32585 ac_cpp='$CXXCPP $CPPFLAGS'
32586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32590 cat >conftest.$ac_ext <<_ACEOF
32591 /* confdefs.h. */
32592 _ACEOF
32593 cat confdefs.h >>conftest.$ac_ext
32594 cat >>conftest.$ac_ext <<_ACEOF
32595 /* end confdefs.h. */
32596 #include <cmath>
32598 main ()
32600 float f; isinf(f);
32602 return 0;
32604 _ACEOF
32605 rm -f conftest.$ac_objext
32606 if { (ac_try="$ac_compile"
32607 case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32610 esac
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_compile") 2>conftest.er1
32613 ac_status=$?
32614 grep -v '^ *+' conftest.er1 >conftest.err
32615 rm -f conftest.er1
32616 cat conftest.err >&5
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); } &&
32619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32620 { (case "(($ac_try" in
32621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32622 *) ac_try_echo=$ac_try;;
32623 esac
32624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32625 (eval "$ac_try") 2>&5
32626 ac_status=$?
32627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628 (exit $ac_status); }; } &&
32629 { ac_try='test -s conftest.$ac_objext'
32630 { (case "(($ac_try" in
32631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32632 *) ac_try_echo=$ac_try;;
32633 esac
32634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32635 (eval "$ac_try") 2>&5
32636 ac_status=$?
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); }; }; then
32639 ac_cv_func_isinf_in_cmath=yes
32640 else
32641 echo "$as_me: failed program was:" >&5
32642 sed 's/^/| /' conftest.$ac_ext >&5
32644 ac_cv_func_isinf_in_cmath=no
32647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32648 ac_ext=c
32649 ac_cpp='$CPP $CPPFLAGS'
32650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32655 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32656 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32658 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32660 cat >>confdefs.h <<\_ACEOF
32661 #define HAVE_ISINF_IN_CMATH 1
32662 _ACEOF
32666 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32667 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32668 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32669 echo $ECHO_N "(cached) $ECHO_C" >&6
32670 else
32671 ac_ext=cpp
32672 ac_cpp='$CXXCPP $CPPFLAGS'
32673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32677 cat >conftest.$ac_ext <<_ACEOF
32678 /* confdefs.h. */
32679 _ACEOF
32680 cat confdefs.h >>conftest.$ac_ext
32681 cat >>conftest.$ac_ext <<_ACEOF
32682 /* end confdefs.h. */
32683 #include <cmath>
32685 main ()
32687 float f; std::isinf(f)}
32689 return 0;
32691 _ACEOF
32692 rm -f conftest.$ac_objext
32693 if { (ac_try="$ac_compile"
32694 case "(($ac_try" in
32695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32696 *) ac_try_echo=$ac_try;;
32697 esac
32698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32699 (eval "$ac_compile") 2>conftest.er1
32700 ac_status=$?
32701 grep -v '^ *+' conftest.er1 >conftest.err
32702 rm -f conftest.er1
32703 cat conftest.err >&5
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); } &&
32706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32707 { (case "(($ac_try" in
32708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709 *) ac_try_echo=$ac_try;;
32710 esac
32711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712 (eval "$ac_try") 2>&5
32713 ac_status=$?
32714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32715 (exit $ac_status); }; } &&
32716 { ac_try='test -s conftest.$ac_objext'
32717 { (case "(($ac_try" in
32718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719 *) ac_try_echo=$ac_try;;
32720 esac
32721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722 (eval "$ac_try") 2>&5
32723 ac_status=$?
32724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32725 (exit $ac_status); }; }; then
32726 ac_cv_func_std_isinf_in_cmath=yes
32727 else
32728 echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.$ac_ext >&5
32731 ac_cv_func_std_isinf_in_cmath=no
32734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32735 ac_ext=c
32736 ac_cpp='$CPP $CPPFLAGS'
32737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32742 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32743 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32745 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32747 cat >>confdefs.h <<\_ACEOF
32748 #define HAVE_STD_ISINF_IN_CMATH 1
32749 _ACEOF
32753 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32754 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32755 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32756 echo $ECHO_N "(cached) $ECHO_C" >&6
32757 else
32758 ac_ext=cpp
32759 ac_cpp='$CXXCPP $CPPFLAGS'
32760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32764 cat >conftest.$ac_ext <<_ACEOF
32765 /* confdefs.h. */
32766 _ACEOF
32767 cat confdefs.h >>conftest.$ac_ext
32768 cat >>conftest.$ac_ext <<_ACEOF
32769 /* end confdefs.h. */
32770 #include <ieeefp.h>
32772 main ()
32774 float f; finite(f);
32776 return 0;
32778 _ACEOF
32779 rm -f conftest.$ac_objext
32780 if { (ac_try="$ac_compile"
32781 case "(($ac_try" in
32782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783 *) ac_try_echo=$ac_try;;
32784 esac
32785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786 (eval "$ac_compile") 2>conftest.er1
32787 ac_status=$?
32788 grep -v '^ *+' conftest.er1 >conftest.err
32789 rm -f conftest.er1
32790 cat conftest.err >&5
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792 (exit $ac_status); } &&
32793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32794 { (case "(($ac_try" in
32795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32796 *) ac_try_echo=$ac_try;;
32797 esac
32798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799 (eval "$ac_try") 2>&5
32800 ac_status=$?
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); }; } &&
32803 { ac_try='test -s conftest.$ac_objext'
32804 { (case "(($ac_try" in
32805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806 *) ac_try_echo=$ac_try;;
32807 esac
32808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809 (eval "$ac_try") 2>&5
32810 ac_status=$?
32811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812 (exit $ac_status); }; }; then
32813 ac_cv_func_finite_in_ieeefp_h=yes
32814 else
32815 echo "$as_me: failed program was:" >&5
32816 sed 's/^/| /' conftest.$ac_ext >&5
32818 ac_cv_func_finite_in_ieeefp_h=no
32821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32822 ac_ext=c
32823 ac_cpp='$CPP $CPPFLAGS'
32824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32829 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32830 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32832 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32834 cat >>confdefs.h <<\_ACEOF
32835 #define HAVE_FINITE_IN_IEEEFP_H 1
32836 _ACEOF
32842 if test "$llvm_cv_platform_type" = "Unix" ; then
32845 for ac_header in stdlib.h unistd.h
32847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32852 echo $ECHO_N "(cached) $ECHO_C" >&6
32854 ac_res=`eval echo '${'$as_ac_Header'}'`
32855 { echo "$as_me:$LINENO: result: $ac_res" >&5
32856 echo "${ECHO_T}$ac_res" >&6; }
32857 else
32858 # Is the header compilable?
32859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32861 cat >conftest.$ac_ext <<_ACEOF
32862 /* confdefs.h. */
32863 _ACEOF
32864 cat confdefs.h >>conftest.$ac_ext
32865 cat >>conftest.$ac_ext <<_ACEOF
32866 /* end confdefs.h. */
32867 $ac_includes_default
32868 #include <$ac_header>
32869 _ACEOF
32870 rm -f conftest.$ac_objext
32871 if { (ac_try="$ac_compile"
32872 case "(($ac_try" in
32873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874 *) ac_try_echo=$ac_try;;
32875 esac
32876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 (eval "$ac_compile") 2>conftest.er1
32878 ac_status=$?
32879 grep -v '^ *+' conftest.er1 >conftest.err
32880 rm -f conftest.er1
32881 cat conftest.err >&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } &&
32884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32885 { (case "(($ac_try" in
32886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32887 *) ac_try_echo=$ac_try;;
32888 esac
32889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32890 (eval "$ac_try") 2>&5
32891 ac_status=$?
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); }; } &&
32894 { ac_try='test -s conftest.$ac_objext'
32895 { (case "(($ac_try" in
32896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32897 *) ac_try_echo=$ac_try;;
32898 esac
32899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32900 (eval "$ac_try") 2>&5
32901 ac_status=$?
32902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903 (exit $ac_status); }; }; then
32904 ac_header_compiler=yes
32905 else
32906 echo "$as_me: failed program was:" >&5
32907 sed 's/^/| /' conftest.$ac_ext >&5
32909 ac_header_compiler=no
32912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32914 echo "${ECHO_T}$ac_header_compiler" >&6; }
32916 # Is the header present?
32917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32919 cat >conftest.$ac_ext <<_ACEOF
32920 /* confdefs.h. */
32921 _ACEOF
32922 cat confdefs.h >>conftest.$ac_ext
32923 cat >>conftest.$ac_ext <<_ACEOF
32924 /* end confdefs.h. */
32925 #include <$ac_header>
32926 _ACEOF
32927 if { (ac_try="$ac_cpp conftest.$ac_ext"
32928 case "(($ac_try" in
32929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32930 *) ac_try_echo=$ac_try;;
32931 esac
32932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32934 ac_status=$?
32935 grep -v '^ *+' conftest.er1 >conftest.err
32936 rm -f conftest.er1
32937 cat conftest.err >&5
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); } >/dev/null; then
32940 if test -s conftest.err; then
32941 ac_cpp_err=$ac_c_preproc_warn_flag
32942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32943 else
32944 ac_cpp_err=
32946 else
32947 ac_cpp_err=yes
32949 if test -z "$ac_cpp_err"; then
32950 ac_header_preproc=yes
32951 else
32952 echo "$as_me: failed program was:" >&5
32953 sed 's/^/| /' conftest.$ac_ext >&5
32955 ac_header_preproc=no
32958 rm -f conftest.err conftest.$ac_ext
32959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32960 echo "${ECHO_T}$ac_header_preproc" >&6; }
32962 # So? What about this header?
32963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32964 yes:no: )
32965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32969 ac_header_preproc=yes
32971 no:yes:* )
32972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32984 ( cat <<\_ASBOX
32985 ## ----------------------------------- ##
32986 ## Report this to llvmbugs@cs.uiuc.edu ##
32987 ## ----------------------------------- ##
32988 _ASBOX
32989 ) | sed "s/^/$as_me: WARNING: /" >&2
32991 esac
32992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32995 echo $ECHO_N "(cached) $ECHO_C" >&6
32996 else
32997 eval "$as_ac_Header=\$ac_header_preproc"
32999 ac_res=`eval echo '${'$as_ac_Header'}'`
33000 { echo "$as_me:$LINENO: result: $ac_res" >&5
33001 echo "${ECHO_T}$ac_res" >&6; }
33004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33005 cat >>confdefs.h <<_ACEOF
33006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33007 _ACEOF
33011 done
33014 for ac_func in getpagesize
33016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33020 echo $ECHO_N "(cached) $ECHO_C" >&6
33021 else
33022 cat >conftest.$ac_ext <<_ACEOF
33023 /* confdefs.h. */
33024 _ACEOF
33025 cat confdefs.h >>conftest.$ac_ext
33026 cat >>conftest.$ac_ext <<_ACEOF
33027 /* end confdefs.h. */
33028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33030 #define $ac_func innocuous_$ac_func
33032 /* System header to define __stub macros and hopefully few prototypes,
33033 which can conflict with char $ac_func (); below.
33034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33035 <limits.h> exists even on freestanding compilers. */
33037 #ifdef __STDC__
33038 # include <limits.h>
33039 #else
33040 # include <assert.h>
33041 #endif
33043 #undef $ac_func
33045 /* Override any GCC internal prototype to avoid an error.
33046 Use char because int might match the return type of a GCC
33047 builtin and then its argument prototype would still apply. */
33048 #ifdef __cplusplus
33049 extern "C"
33050 #endif
33051 char $ac_func ();
33052 /* The GNU C library defines this for functions which it implements
33053 to always fail with ENOSYS. Some functions are actually named
33054 something starting with __ and the normal name is an alias. */
33055 #if defined __stub_$ac_func || defined __stub___$ac_func
33056 choke me
33057 #endif
33060 main ()
33062 return $ac_func ();
33064 return 0;
33066 _ACEOF
33067 rm -f conftest.$ac_objext conftest$ac_exeext
33068 if { (ac_try="$ac_link"
33069 case "(($ac_try" in
33070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071 *) ac_try_echo=$ac_try;;
33072 esac
33073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074 (eval "$ac_link") 2>conftest.er1
33075 ac_status=$?
33076 grep -v '^ *+' conftest.er1 >conftest.err
33077 rm -f conftest.er1
33078 cat conftest.err >&5
33079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33080 (exit $ac_status); } &&
33081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33082 { (case "(($ac_try" in
33083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084 *) ac_try_echo=$ac_try;;
33085 esac
33086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087 (eval "$ac_try") 2>&5
33088 ac_status=$?
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try='test -s conftest$ac_exeext'
33092 { (case "(($ac_try" in
33093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094 *) ac_try_echo=$ac_try;;
33095 esac
33096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097 (eval "$ac_try") 2>&5
33098 ac_status=$?
33099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100 (exit $ac_status); }; }; then
33101 eval "$as_ac_var=yes"
33102 else
33103 echo "$as_me: failed program was:" >&5
33104 sed 's/^/| /' conftest.$ac_ext >&5
33106 eval "$as_ac_var=no"
33109 rm -f core conftest.err conftest.$ac_objext \
33110 conftest$ac_exeext conftest.$ac_ext
33112 ac_res=`eval echo '${'$as_ac_var'}'`
33113 { echo "$as_me:$LINENO: result: $ac_res" >&5
33114 echo "${ECHO_T}$ac_res" >&6; }
33115 if test `eval echo '${'$as_ac_var'}'` = yes; then
33116 cat >>confdefs.h <<_ACEOF
33117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33118 _ACEOF
33121 done
33123 { echo "$as_me:$LINENO: checking for working mmap" >&5
33124 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33125 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33126 echo $ECHO_N "(cached) $ECHO_C" >&6
33127 else
33128 if test "$cross_compiling" = yes; then
33129 ac_cv_func_mmap_fixed_mapped=no
33130 else
33131 cat >conftest.$ac_ext <<_ACEOF
33132 /* confdefs.h. */
33133 _ACEOF
33134 cat confdefs.h >>conftest.$ac_ext
33135 cat >>conftest.$ac_ext <<_ACEOF
33136 /* end confdefs.h. */
33137 $ac_includes_default
33138 /* malloc might have been renamed as rpl_malloc. */
33139 #undef malloc
33141 /* Thanks to Mike Haertel and Jim Avera for this test.
33142 Here is a matrix of mmap possibilities:
33143 mmap private not fixed
33144 mmap private fixed at somewhere currently unmapped
33145 mmap private fixed at somewhere already mapped
33146 mmap shared not fixed
33147 mmap shared fixed at somewhere currently unmapped
33148 mmap shared fixed at somewhere already mapped
33149 For private mappings, we should verify that changes cannot be read()
33150 back from the file, nor mmap's back from the file at a different
33151 address. (There have been systems where private was not correctly
33152 implemented like the infamous i386 svr4.0, and systems where the
33153 VM page cache was not coherent with the file system buffer cache
33154 like early versions of FreeBSD and possibly contemporary NetBSD.)
33155 For shared mappings, we should conversely verify that changes get
33156 propagated back to all the places they're supposed to be.
33158 Grep wants private fixed already mapped.
33159 The main things grep needs to know about mmap are:
33160 * does it exist and is it safe to write into the mmap'd area
33161 * how to use it (BSD variants) */
33163 #include <fcntl.h>
33164 #include <sys/mman.h>
33166 #if !STDC_HEADERS && !HAVE_STDLIB_H
33167 char *malloc ();
33168 #endif
33170 /* This mess was copied from the GNU getpagesize.h. */
33171 #if !HAVE_GETPAGESIZE
33172 /* Assume that all systems that can run configure have sys/param.h. */
33173 # if !HAVE_SYS_PARAM_H
33174 # define HAVE_SYS_PARAM_H 1
33175 # endif
33177 # ifdef _SC_PAGESIZE
33178 # define getpagesize() sysconf(_SC_PAGESIZE)
33179 # else /* no _SC_PAGESIZE */
33180 # if HAVE_SYS_PARAM_H
33181 # include <sys/param.h>
33182 # ifdef EXEC_PAGESIZE
33183 # define getpagesize() EXEC_PAGESIZE
33184 # else /* no EXEC_PAGESIZE */
33185 # ifdef NBPG
33186 # define getpagesize() NBPG * CLSIZE
33187 # ifndef CLSIZE
33188 # define CLSIZE 1
33189 # endif /* no CLSIZE */
33190 # else /* no NBPG */
33191 # ifdef NBPC
33192 # define getpagesize() NBPC
33193 # else /* no NBPC */
33194 # ifdef PAGESIZE
33195 # define getpagesize() PAGESIZE
33196 # endif /* PAGESIZE */
33197 # endif /* no NBPC */
33198 # endif /* no NBPG */
33199 # endif /* no EXEC_PAGESIZE */
33200 # else /* no HAVE_SYS_PARAM_H */
33201 # define getpagesize() 8192 /* punt totally */
33202 # endif /* no HAVE_SYS_PARAM_H */
33203 # endif /* no _SC_PAGESIZE */
33205 #endif /* no HAVE_GETPAGESIZE */
33208 main ()
33210 char *data, *data2, *data3;
33211 int i, pagesize;
33212 int fd;
33214 pagesize = getpagesize ();
33216 /* First, make a file with some known garbage in it. */
33217 data = (char *) malloc (pagesize);
33218 if (!data)
33219 return 1;
33220 for (i = 0; i < pagesize; ++i)
33221 *(data + i) = rand ();
33222 umask (0);
33223 fd = creat ("conftest.mmap", 0600);
33224 if (fd < 0)
33225 return 1;
33226 if (write (fd, data, pagesize) != pagesize)
33227 return 1;
33228 close (fd);
33230 /* Next, try to mmap the file at a fixed address which already has
33231 something else allocated at it. If we can, also make sure that
33232 we see the same garbage. */
33233 fd = open ("conftest.mmap", O_RDWR);
33234 if (fd < 0)
33235 return 1;
33236 data2 = (char *) malloc (2 * pagesize);
33237 if (!data2)
33238 return 1;
33239 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33240 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33241 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33242 return 1;
33243 for (i = 0; i < pagesize; ++i)
33244 if (*(data + i) != *(data2 + i))
33245 return 1;
33247 /* Finally, make sure that changes to the mapped area do not
33248 percolate back to the file as seen by read(). (This is a bug on
33249 some variants of i386 svr4.0.) */
33250 for (i = 0; i < pagesize; ++i)
33251 *(data2 + i) = *(data2 + i) + 1;
33252 data3 = (char *) malloc (pagesize);
33253 if (!data3)
33254 return 1;
33255 if (read (fd, data3, pagesize) != pagesize)
33256 return 1;
33257 for (i = 0; i < pagesize; ++i)
33258 if (*(data + i) != *(data3 + i))
33259 return 1;
33260 close (fd);
33261 return 0;
33263 _ACEOF
33264 rm -f conftest$ac_exeext
33265 if { (ac_try="$ac_link"
33266 case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33269 esac
33270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_link") 2>&5
33272 ac_status=$?
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33275 { (case "(($ac_try" in
33276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277 *) ac_try_echo=$ac_try;;
33278 esac
33279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280 (eval "$ac_try") 2>&5
33281 ac_status=$?
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; }; then
33284 ac_cv_func_mmap_fixed_mapped=yes
33285 else
33286 echo "$as_me: program exited with status $ac_status" >&5
33287 echo "$as_me: failed program was:" >&5
33288 sed 's/^/| /' conftest.$ac_ext >&5
33290 ( exit $ac_status )
33291 ac_cv_func_mmap_fixed_mapped=no
33293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33298 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33299 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33300 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33302 cat >>confdefs.h <<\_ACEOF
33303 #define HAVE_MMAP 1
33304 _ACEOF
33307 rm -f conftest.mmap
33309 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33310 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33311 if test "${ac_cv_func_mmap_file+set}" = set; then
33312 echo $ECHO_N "(cached) $ECHO_C" >&6
33313 else
33314 ac_ext=c
33315 ac_cpp='$CPP $CPPFLAGS'
33316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33320 if test "$cross_compiling" = yes; then
33321 ac_cv_func_mmap_file=no
33322 else
33323 cat >conftest.$ac_ext <<_ACEOF
33325 /* confdefs.h. */
33326 _ACEOF
33327 cat confdefs.h >>conftest.$ac_ext
33328 cat >>conftest.$ac_ext <<_ACEOF
33329 /* end confdefs.h. */
33331 #include <sys/types.h>
33332 #include <sys/mman.h>
33333 #include <fcntl.h>
33336 main ()
33339 int fd;
33340 fd = creat ("foo",0777);
33341 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33342 unlink ("foo");
33343 return (fd != (int) MAP_FAILED);
33345 return 0;
33347 _ACEOF
33348 rm -f conftest$ac_exeext
33349 if { (ac_try="$ac_link"
33350 case "(($ac_try" in
33351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33352 *) ac_try_echo=$ac_try;;
33353 esac
33354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355 (eval "$ac_link") 2>&5
33356 ac_status=$?
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33359 { (case "(($ac_try" in
33360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361 *) ac_try_echo=$ac_try;;
33362 esac
33363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364 (eval "$ac_try") 2>&5
33365 ac_status=$?
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; }; then
33368 ac_cv_func_mmap_file=yes
33369 else
33370 echo "$as_me: program exited with status $ac_status" >&5
33371 echo "$as_me: failed program was:" >&5
33372 sed 's/^/| /' conftest.$ac_ext >&5
33374 ( exit $ac_status )
33375 ac_cv_func_mmap_file=no
33377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33381 ac_ext=c
33382 ac_cpp='$CPP $CPPFLAGS'
33383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33389 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33390 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33391 if test "$ac_cv_func_mmap_file" = yes; then
33393 cat >>confdefs.h <<\_ACEOF
33394 #define HAVE_MMAP_FILE
33395 _ACEOF
33397 MMAP_FILE=yes
33401 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33402 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33403 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33404 echo $ECHO_N "(cached) $ECHO_C" >&6
33405 else
33406 if test "$llvm_cv_os_type" = "Interix" ; then
33407 ac_cv_need_dev_zero_for_mmap=yes
33408 else
33409 ac_cv_need_dev_zero_for_mmap=no
33413 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33414 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33415 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33417 cat >>confdefs.h <<\_ACEOF
33418 #define NEED_DEV_ZERO_FOR_MMAP 1
33419 _ACEOF
33423 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33424 then
33425 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33426 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33428 if test "$ac_cv_func_mmap_file" = "no"
33429 then
33430 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33431 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33436 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33437 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33438 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33439 echo $ECHO_N "(cached) $ECHO_C" >&6
33440 else
33441 llvm_cv_llvmgcc_sanity="no"
33442 if test -x "$LLVMGCC" ; then
33443 cp /dev/null conftest.c
33444 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33445 grep 'target datalayout =' > /dev/null 2>&1
33446 if test $? -eq 0 ; then
33447 llvm_cv_llvmgcc_sanity="yes"
33449 rm conftest.c
33452 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33453 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33455 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33456 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33457 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33458 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33459 LLVMCC1=$llvmcc1path
33461 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33462 LLVMCC1PLUS=$llvmcc1pluspath
33464 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33465 LLVMGCCDIR=$llvmgccdir
33467 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33468 LLVMGCCLIBEXEC=$llvmgcclibexec
33470 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33471 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33472 LLVMGCC_VERSION=$llvmgccversion
33474 LLVMGCC_MAJVERS=$llvmgccmajvers
33476 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33477 LLVMGCC_LANGS=$llvmgcclangs
33479 { echo "$as_me:$LINENO: result: ok" >&5
33480 echo "${ECHO_T}ok" >&6; }
33483 SHLIBEXT=$libltdl_cv_shlibext
33486 # Translate the various configuration directories and other basic
33487 # information into substitutions that will end up in Makefile.config.in
33488 # that these configured values can be used by the makefiles
33489 if test "${prefix}" = "NONE" ; then
33490 prefix="/usr/local"
33492 eval LLVM_PREFIX="${prefix}";
33493 eval LLVM_BINDIR="${prefix}/bin";
33494 eval LLVM_LIBDIR="${prefix}/lib";
33495 eval LLVM_DATADIR="${prefix}/share/llvm";
33496 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33497 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33498 eval LLVM_INCLUDEDIR="${prefix}/include";
33499 eval LLVM_INFODIR="${prefix}/info";
33500 eval LLVM_MANDIR="${prefix}/man";
33501 LLVM_CONFIGTIME=`date`
33513 # Place the various directores into the config.h file as #defines so that we
33514 # can know about the installation paths within LLVM.
33516 cat >>confdefs.h <<_ACEOF
33517 #define LLVM_PREFIX "$LLVM_PREFIX"
33518 _ACEOF
33521 cat >>confdefs.h <<_ACEOF
33522 #define LLVM_BINDIR "$LLVM_BINDIR"
33523 _ACEOF
33526 cat >>confdefs.h <<_ACEOF
33527 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33528 _ACEOF
33531 cat >>confdefs.h <<_ACEOF
33532 #define LLVM_DATADIR "$LLVM_DATADIR"
33533 _ACEOF
33536 cat >>confdefs.h <<_ACEOF
33537 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33538 _ACEOF
33541 cat >>confdefs.h <<_ACEOF
33542 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33543 _ACEOF
33546 cat >>confdefs.h <<_ACEOF
33547 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33548 _ACEOF
33551 cat >>confdefs.h <<_ACEOF
33552 #define LLVM_INFODIR "$LLVM_INFODIR"
33553 _ACEOF
33556 cat >>confdefs.h <<_ACEOF
33557 #define LLVM_MANDIR "$LLVM_MANDIR"
33558 _ACEOF
33561 cat >>confdefs.h <<_ACEOF
33562 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33563 _ACEOF
33567 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33569 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33571 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33573 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33575 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33578 ac_config_files="$ac_config_files Makefile.config"
33581 ac_config_files="$ac_config_files llvm.spec"
33584 ac_config_files="$ac_config_files docs/doxygen.cfg"
33587 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33590 ac_config_commands="$ac_config_commands setup"
33592 ac_config_commands="$ac_config_commands Makefile"
33595 ac_config_commands="$ac_config_commands Makefile.common"
33598 ac_config_commands="$ac_config_commands examples/Makefile"
33601 ac_config_commands="$ac_config_commands lib/Makefile"
33604 ac_config_commands="$ac_config_commands runtime/Makefile"
33607 ac_config_commands="$ac_config_commands test/Makefile"
33610 ac_config_commands="$ac_config_commands test/Makefile.tests"
33613 ac_config_commands="$ac_config_commands tools/Makefile"
33616 ac_config_commands="$ac_config_commands utils/Makefile"
33619 ac_config_commands="$ac_config_commands projects/Makefile"
33623 cat >confcache <<\_ACEOF
33624 # This file is a shell script that caches the results of configure
33625 # tests run on this system so they can be shared between configure
33626 # scripts and configure runs, see configure's option --config-cache.
33627 # It is not useful on other systems. If it contains results you don't
33628 # want to keep, you may remove or edit it.
33630 # config.status only pays attention to the cache file if you give it
33631 # the --recheck option to rerun configure.
33633 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33634 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33635 # following values.
33637 _ACEOF
33639 # The following way of writing the cache mishandles newlines in values,
33640 # but we know of no workaround that is simple, portable, and efficient.
33641 # So, we kill variables containing newlines.
33642 # Ultrix sh set writes to stderr and can't be redirected directly,
33643 # and sets the high bit in the cache file unless we assign to the vars.
33645 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33646 eval ac_val=\$$ac_var
33647 case $ac_val in #(
33648 *${as_nl}*)
33649 case $ac_var in #(
33650 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33651 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33652 esac
33653 case $ac_var in #(
33654 _ | IFS | as_nl) ;; #(
33655 *) $as_unset $ac_var ;;
33656 esac ;;
33657 esac
33658 done
33660 (set) 2>&1 |
33661 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33662 *${as_nl}ac_space=\ *)
33663 # `set' does not quote correctly, so add quotes (double-quote
33664 # substitution turns \\\\ into \\, and sed turns \\ into \).
33665 sed -n \
33666 "s/'/'\\\\''/g;
33667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33668 ;; #(
33670 # `set' quotes correctly as required by POSIX, so do not add quotes.
33671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33673 esac |
33674 sort
33676 sed '
33677 /^ac_cv_env_/b end
33678 t clear
33679 :clear
33680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33681 t end
33682 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33683 :end' >>confcache
33684 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33685 if test -w "$cache_file"; then
33686 test "x$cache_file" != "x/dev/null" &&
33687 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33688 echo "$as_me: updating cache $cache_file" >&6;}
33689 cat confcache >$cache_file
33690 else
33691 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33692 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33695 rm -f confcache
33697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33698 # Let make expand exec_prefix.
33699 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33701 DEFS=-DHAVE_CONFIG_H
33703 ac_libobjs=
33704 ac_ltlibobjs=
33705 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33706 # 1. Remove the extension, and $U if already installed.
33707 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33708 ac_i=`echo "$ac_i" | sed "$ac_script"`
33709 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33710 # will be set to the directory where LIBOBJS objects are built.
33711 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33712 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33713 done
33714 LIBOBJS=$ac_libobjs
33716 LTLIBOBJS=$ac_ltlibobjs
33719 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33720 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33721 Usually this means the macro was only invoked conditionally." >&5
33722 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33723 Usually this means the macro was only invoked conditionally." >&2;}
33724 { (exit 1); exit 1; }; }
33726 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33727 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33728 Usually this means the macro was only invoked conditionally." >&5
33729 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33730 Usually this means the macro was only invoked conditionally." >&2;}
33731 { (exit 1); exit 1; }; }
33734 : ${CONFIG_STATUS=./config.status}
33735 ac_clean_files_save=$ac_clean_files
33736 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33737 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33738 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33739 cat >$CONFIG_STATUS <<_ACEOF
33740 #! $SHELL
33741 # Generated by $as_me.
33742 # Run this file to recreate the current configuration.
33743 # Compiler output produced by configure, useful for debugging
33744 # configure, is in config.log if it exists.
33746 debug=false
33747 ac_cs_recheck=false
33748 ac_cs_silent=false
33749 SHELL=\${CONFIG_SHELL-$SHELL}
33750 _ACEOF
33752 cat >>$CONFIG_STATUS <<\_ACEOF
33753 ## --------------------- ##
33754 ## M4sh Initialization. ##
33755 ## --------------------- ##
33757 # Be Bourne compatible
33758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33759 emulate sh
33760 NULLCMD=:
33761 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33762 # is contrary to our usage. Disable this feature.
33763 alias -g '${1+"$@"}'='"$@"'
33764 setopt NO_GLOB_SUBST
33765 else
33766 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33768 BIN_SH=xpg4; export BIN_SH # for Tru64
33769 DUALCASE=1; export DUALCASE # for MKS sh
33772 # PATH needs CR
33773 # Avoid depending upon Character Ranges.
33774 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33775 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33776 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33777 as_cr_digits='0123456789'
33778 as_cr_alnum=$as_cr_Letters$as_cr_digits
33780 # The user is always right.
33781 if test "${PATH_SEPARATOR+set}" != set; then
33782 echo "#! /bin/sh" >conf$$.sh
33783 echo "exit 0" >>conf$$.sh
33784 chmod +x conf$$.sh
33785 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33786 PATH_SEPARATOR=';'
33787 else
33788 PATH_SEPARATOR=:
33790 rm -f conf$$.sh
33793 # Support unset when possible.
33794 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33795 as_unset=unset
33796 else
33797 as_unset=false
33801 # IFS
33802 # We need space, tab and new line, in precisely that order. Quoting is
33803 # there to prevent editors from complaining about space-tab.
33804 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33805 # splitting by setting IFS to empty value.)
33806 as_nl='
33808 IFS=" "" $as_nl"
33810 # Find who we are. Look in the path if we contain no directory separator.
33811 case $0 in
33812 *[\\/]* ) as_myself=$0 ;;
33813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33814 for as_dir in $PATH
33816 IFS=$as_save_IFS
33817 test -z "$as_dir" && as_dir=.
33818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33819 done
33820 IFS=$as_save_IFS
33823 esac
33824 # We did not find ourselves, most probably we were run as `sh COMMAND'
33825 # in which case we are not to be found in the path.
33826 if test "x$as_myself" = x; then
33827 as_myself=$0
33829 if test ! -f "$as_myself"; then
33830 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33831 { (exit 1); exit 1; }
33834 # Work around bugs in pre-3.0 UWIN ksh.
33835 for as_var in ENV MAIL MAILPATH
33836 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33837 done
33838 PS1='$ '
33839 PS2='> '
33840 PS4='+ '
33842 # NLS nuisances.
33843 for as_var in \
33844 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33845 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33846 LC_TELEPHONE LC_TIME
33848 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33849 eval $as_var=C; export $as_var
33850 else
33851 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33853 done
33855 # Required to use basename.
33856 if expr a : '\(a\)' >/dev/null 2>&1 &&
33857 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33858 as_expr=expr
33859 else
33860 as_expr=false
33863 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33864 as_basename=basename
33865 else
33866 as_basename=false
33870 # Name of the executable.
33871 as_me=`$as_basename -- "$0" ||
33872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33873 X"$0" : 'X\(//\)$' \| \
33874 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33875 echo X/"$0" |
33876 sed '/^.*\/\([^/][^/]*\)\/*$/{
33877 s//\1/
33880 /^X\/\(\/\/\)$/{
33881 s//\1/
33884 /^X\/\(\/\).*/{
33885 s//\1/
33888 s/.*/./; q'`
33890 # CDPATH.
33891 $as_unset CDPATH
33895 as_lineno_1=$LINENO
33896 as_lineno_2=$LINENO
33897 test "x$as_lineno_1" != "x$as_lineno_2" &&
33898 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33900 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33901 # uniformly replaced by the line number. The first 'sed' inserts a
33902 # line-number line after each line using $LINENO; the second 'sed'
33903 # does the real work. The second script uses 'N' to pair each
33904 # line-number line with the line containing $LINENO, and appends
33905 # trailing '-' during substitution so that $LINENO is not a special
33906 # case at line end.
33907 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33908 # scripts with optimization help from Paolo Bonzini. Blame Lee
33909 # E. McMahon (1931-1989) for sed's syntax. :-)
33910 sed -n '
33912 /[$]LINENO/=
33913 ' <$as_myself |
33914 sed '
33915 s/[$]LINENO.*/&-/
33916 t lineno
33918 :lineno
33920 :loop
33921 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33922 t loop
33923 s/-\n.*//
33924 ' >$as_me.lineno &&
33925 chmod +x "$as_me.lineno" ||
33926 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33927 { (exit 1); exit 1; }; }
33929 # Don't try to exec as it changes $[0], causing all sort of problems
33930 # (the dirname of $[0] is not the place where we might find the
33931 # original and so on. Autoconf is especially sensitive to this).
33932 . "./$as_me.lineno"
33933 # Exit status is that of the last command.
33934 exit
33938 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33939 as_dirname=dirname
33940 else
33941 as_dirname=false
33944 ECHO_C= ECHO_N= ECHO_T=
33945 case `echo -n x` in
33946 -n*)
33947 case `echo 'x\c'` in
33948 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33949 *) ECHO_C='\c';;
33950 esac;;
33952 ECHO_N='-n';;
33953 esac
33955 if expr a : '\(a\)' >/dev/null 2>&1 &&
33956 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33957 as_expr=expr
33958 else
33959 as_expr=false
33962 rm -f conf$$ conf$$.exe conf$$.file
33963 if test -d conf$$.dir; then
33964 rm -f conf$$.dir/conf$$.file
33965 else
33966 rm -f conf$$.dir
33967 mkdir conf$$.dir
33969 echo >conf$$.file
33970 if ln -s conf$$.file conf$$ 2>/dev/null; then
33971 as_ln_s='ln -s'
33972 # ... but there are two gotchas:
33973 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33974 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33975 # In both cases, we have to default to `cp -p'.
33976 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33977 as_ln_s='cp -p'
33978 elif ln conf$$.file conf$$ 2>/dev/null; then
33979 as_ln_s=ln
33980 else
33981 as_ln_s='cp -p'
33983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33984 rmdir conf$$.dir 2>/dev/null
33986 if mkdir -p . 2>/dev/null; then
33987 as_mkdir_p=:
33988 else
33989 test -d ./-p && rmdir ./-p
33990 as_mkdir_p=false
33993 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
33994 # systems may use methods other than mode bits to determine executability.
33995 cat >conf$$.file <<_ASEOF
33996 #! /bin/sh
33997 exit 0
33998 _ASEOF
33999 chmod +x conf$$.file
34000 if test -x conf$$.file >/dev/null 2>&1; then
34001 as_executable_p="test -x"
34002 else
34003 as_executable_p=:
34005 rm -f conf$$.file
34007 # Sed expression to map a string onto a valid CPP name.
34008 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34010 # Sed expression to map a string onto a valid variable name.
34011 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34014 exec 6>&1
34016 # Save the log message, to keep $[0] and so on meaningful, and to
34017 # report actual input values of CONFIG_FILES etc. instead of their
34018 # values after options handling.
34019 ac_log="
34020 This file was extended by llvm $as_me 2.1cvs, which was
34021 generated by GNU Autoconf 2.60. Invocation command line was
34023 CONFIG_FILES = $CONFIG_FILES
34024 CONFIG_HEADERS = $CONFIG_HEADERS
34025 CONFIG_LINKS = $CONFIG_LINKS
34026 CONFIG_COMMANDS = $CONFIG_COMMANDS
34027 $ $0 $@
34029 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34032 _ACEOF
34034 cat >>$CONFIG_STATUS <<_ACEOF
34035 # Files that config.status was made for.
34036 config_files="$ac_config_files"
34037 config_headers="$ac_config_headers"
34038 config_commands="$ac_config_commands"
34040 _ACEOF
34042 cat >>$CONFIG_STATUS <<\_ACEOF
34043 ac_cs_usage="\
34044 \`$as_me' instantiates files from templates according to the
34045 current configuration.
34047 Usage: $0 [OPTIONS] [FILE]...
34049 -h, --help print this help, then exit
34050 -V, --version print version number, then exit
34051 -q, --quiet do not print progress messages
34052 -d, --debug don't remove temporary files
34053 --recheck update $as_me by reconfiguring in the same conditions
34054 --file=FILE[:TEMPLATE]
34055 instantiate the configuration file FILE
34056 --header=FILE[:TEMPLATE]
34057 instantiate the configuration header FILE
34059 Configuration files:
34060 $config_files
34062 Configuration headers:
34063 $config_headers
34065 Configuration commands:
34066 $config_commands
34068 Report bugs to <bug-autoconf@gnu.org>."
34070 _ACEOF
34071 cat >>$CONFIG_STATUS <<_ACEOF
34072 ac_cs_version="\\
34073 llvm config.status 2.1cvs
34074 configured by $0, generated by GNU Autoconf 2.60,
34075 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34077 Copyright (C) 2006 Free Software Foundation, Inc.
34078 This config.status script is free software; the Free Software Foundation
34079 gives unlimited permission to copy, distribute and modify it."
34081 ac_pwd='$ac_pwd'
34082 srcdir='$srcdir'
34083 INSTALL='$INSTALL'
34084 _ACEOF
34086 cat >>$CONFIG_STATUS <<\_ACEOF
34087 # If no file are specified by the user, then we need to provide default
34088 # value. By we need to know if files were specified by the user.
34089 ac_need_defaults=:
34090 while test $# != 0
34092 case $1 in
34093 --*=*)
34094 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34095 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34096 ac_shift=:
34099 ac_option=$1
34100 ac_optarg=$2
34101 ac_shift=shift
34103 esac
34105 case $ac_option in
34106 # Handling of the options.
34107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34108 ac_cs_recheck=: ;;
34109 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34110 echo "$ac_cs_version"; exit ;;
34111 --debug | --debu | --deb | --de | --d | -d )
34112 debug=: ;;
34113 --file | --fil | --fi | --f )
34114 $ac_shift
34115 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34116 ac_need_defaults=false;;
34117 --header | --heade | --head | --hea )
34118 $ac_shift
34119 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34120 ac_need_defaults=false;;
34121 --he | --h)
34122 # Conflict between --help and --header
34123 { echo "$as_me: error: ambiguous option: $1
34124 Try \`$0 --help' for more information." >&2
34125 { (exit 1); exit 1; }; };;
34126 --help | --hel | -h )
34127 echo "$ac_cs_usage"; exit ;;
34128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34129 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34130 ac_cs_silent=: ;;
34132 # This is an error.
34133 -*) { echo "$as_me: error: unrecognized option: $1
34134 Try \`$0 --help' for more information." >&2
34135 { (exit 1); exit 1; }; } ;;
34137 *) ac_config_targets="$ac_config_targets $1"
34138 ac_need_defaults=false ;;
34140 esac
34141 shift
34142 done
34144 ac_configure_extra_args=
34146 if $ac_cs_silent; then
34147 exec 6>/dev/null
34148 ac_configure_extra_args="$ac_configure_extra_args --silent"
34151 _ACEOF
34152 cat >>$CONFIG_STATUS <<_ACEOF
34153 if \$ac_cs_recheck; then
34154 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34155 CONFIG_SHELL=$SHELL
34156 export CONFIG_SHELL
34157 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34160 _ACEOF
34161 cat >>$CONFIG_STATUS <<\_ACEOF
34162 exec 5>>config.log
34164 echo
34165 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34166 ## Running $as_me. ##
34167 _ASBOX
34168 echo "$ac_log"
34169 } >&5
34171 _ACEOF
34172 cat >>$CONFIG_STATUS <<_ACEOF
34174 # INIT-COMMANDS
34176 llvm_src="${srcdir}"
34178 _ACEOF
34180 cat >>$CONFIG_STATUS <<\_ACEOF
34182 # Handling of arguments.
34183 for ac_config_target in $ac_config_targets
34185 case $ac_config_target in
34186 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34187 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34188 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34189 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34190 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34191 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34192 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34193 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34194 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34195 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34196 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34197 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34198 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34199 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34200 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34201 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34202 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34203 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34204 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34205 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34207 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34208 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34209 { (exit 1); exit 1; }; };;
34210 esac
34211 done
34214 # If the user did not use the arguments to specify the items to instantiate,
34215 # then the envvar interface is used. Set only those that are not.
34216 # We use the long form for the default assignment because of an extremely
34217 # bizarre bug on SunOS 4.1.3.
34218 if $ac_need_defaults; then
34219 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34220 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34221 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34224 # Have a temporary directory for convenience. Make it in the build tree
34225 # simply because there is no reason against having it here, and in addition,
34226 # creating and moving files from /tmp can sometimes cause problems.
34227 # Hook for its removal unless debugging.
34228 # Note that there is a small window in which the directory will not be cleaned:
34229 # after its creation but before its name has been assigned to `$tmp'.
34230 $debug ||
34232 tmp=
34233 trap 'exit_status=$?
34234 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34236 trap '{ (exit 1); exit 1; }' 1 2 13 15
34238 # Create a (secure) tmp directory for tmp files.
34241 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34242 test -n "$tmp" && test -d "$tmp"
34243 } ||
34245 tmp=./conf$$-$RANDOM
34246 (umask 077 && mkdir "$tmp")
34247 } ||
34249 echo "$me: cannot create a temporary directory in ." >&2
34250 { (exit 1); exit 1; }
34254 # Set up the sed scripts for CONFIG_FILES section.
34257 # No need to generate the scripts if there are no CONFIG_FILES.
34258 # This happens for instance when ./config.status config.h
34259 if test -n "$CONFIG_FILES"; then
34261 _ACEOF
34265 ac_delim='%!_!# '
34266 for ac_last_try in false false false false false :; do
34267 cat >conf$$subs.sed <<_ACEOF
34268 SHELL!$SHELL$ac_delim
34269 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34270 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34271 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34272 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34273 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34274 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34275 exec_prefix!$exec_prefix$ac_delim
34276 prefix!$prefix$ac_delim
34277 program_transform_name!$program_transform_name$ac_delim
34278 bindir!$bindir$ac_delim
34279 sbindir!$sbindir$ac_delim
34280 libexecdir!$libexecdir$ac_delim
34281 datarootdir!$datarootdir$ac_delim
34282 datadir!$datadir$ac_delim
34283 sysconfdir!$sysconfdir$ac_delim
34284 sharedstatedir!$sharedstatedir$ac_delim
34285 localstatedir!$localstatedir$ac_delim
34286 includedir!$includedir$ac_delim
34287 oldincludedir!$oldincludedir$ac_delim
34288 docdir!$docdir$ac_delim
34289 infodir!$infodir$ac_delim
34290 htmldir!$htmldir$ac_delim
34291 dvidir!$dvidir$ac_delim
34292 pdfdir!$pdfdir$ac_delim
34293 psdir!$psdir$ac_delim
34294 libdir!$libdir$ac_delim
34295 localedir!$localedir$ac_delim
34296 mandir!$mandir$ac_delim
34297 DEFS!$DEFS$ac_delim
34298 ECHO_C!$ECHO_C$ac_delim
34299 ECHO_N!$ECHO_N$ac_delim
34300 ECHO_T!$ECHO_T$ac_delim
34301 LIBS!$LIBS$ac_delim
34302 build_alias!$build_alias$ac_delim
34303 host_alias!$host_alias$ac_delim
34304 target_alias!$target_alias$ac_delim
34305 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34306 subdirs!$subdirs$ac_delim
34307 build!$build$ac_delim
34308 build_cpu!$build_cpu$ac_delim
34309 build_vendor!$build_vendor$ac_delim
34310 build_os!$build_os$ac_delim
34311 host!$host$ac_delim
34312 host_cpu!$host_cpu$ac_delim
34313 host_vendor!$host_vendor$ac_delim
34314 host_os!$host_os$ac_delim
34315 target!$target$ac_delim
34316 target_cpu!$target_cpu$ac_delim
34317 target_vendor!$target_vendor$ac_delim
34318 target_os!$target_os$ac_delim
34319 OS!$OS$ac_delim
34320 LINKALL!$LINKALL$ac_delim
34321 NOLINKALL!$NOLINKALL$ac_delim
34322 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34323 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34324 ARCH!$ARCH$ac_delim
34325 ENDIAN!$ENDIAN$ac_delim
34326 CC!$CC$ac_delim
34327 CFLAGS!$CFLAGS$ac_delim
34328 LDFLAGS!$LDFLAGS$ac_delim
34329 CPPFLAGS!$CPPFLAGS$ac_delim
34330 ac_ct_CC!$ac_ct_CC$ac_delim
34331 EXEEXT!$EXEEXT$ac_delim
34332 OBJEXT!$OBJEXT$ac_delim
34333 CPP!$CPP$ac_delim
34334 GREP!$GREP$ac_delim
34335 EGREP!$EGREP$ac_delim
34336 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34337 BUILD_CC!$BUILD_CC$ac_delim
34338 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34339 CVSBUILD!$CVSBUILD$ac_delim
34340 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34341 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34342 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34343 JIT!$JIT$ac_delim
34344 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34345 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34346 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34347 ENABLE_PIC!$ENABLE_PIC$ac_delim
34348 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34349 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34350 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34351 CXX!$CXX$ac_delim
34352 CXXFLAGS!$CXXFLAGS$ac_delim
34353 ac_ct_CXX!$ac_ct_CXX$ac_delim
34354 LEX!$LEX$ac_delim
34355 LEXLIB!$LEXLIB$ac_delim
34356 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34357 FLEX!$FLEX$ac_delim
34358 YACC!$YACC$ac_delim
34359 YFLAGS!$YFLAGS$ac_delim
34360 BISON!$BISON$ac_delim
34361 NM!$NM$ac_delim
34362 ifGNUmake!$ifGNUmake$ac_delim
34363 LN_S!$LN_S$ac_delim
34364 CMP!$CMP$ac_delim
34365 _ACEOF
34367 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34368 break
34369 elif $ac_last_try; then
34370 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34371 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34372 { (exit 1); exit 1; }; }
34373 else
34374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34376 done
34378 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34379 if test -n "$ac_eof"; then
34380 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34381 ac_eof=`expr $ac_eof + 1`
34384 cat >>$CONFIG_STATUS <<_ACEOF
34385 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34386 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34387 _ACEOF
34388 sed '
34389 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34390 s/^/s,@/; s/!/@,|#_!!_#|/
34393 s/'"$ac_delim"'$/,g/; t
34394 s/$/\\/; p
34395 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34396 ' >>$CONFIG_STATUS <conf$$subs.sed
34397 rm -f conf$$subs.sed
34398 cat >>$CONFIG_STATUS <<_ACEOF
34399 CEOF$ac_eof
34400 _ACEOF
34403 ac_delim='%!_!# '
34404 for ac_last_try in false false false false false :; do
34405 cat >conf$$subs.sed <<_ACEOF
34406 CP!$CP$ac_delim
34407 DATE!$DATE$ac_delim
34408 FIND!$FIND$ac_delim
34409 MKDIR!$MKDIR$ac_delim
34410 MV!$MV$ac_delim
34411 RANLIB!$RANLIB$ac_delim
34412 RM!$RM$ac_delim
34413 SED!$SED$ac_delim
34414 TAR!$TAR$ac_delim
34415 BINPWD!$BINPWD$ac_delim
34416 GRAPHVIZ!$GRAPHVIZ$ac_delim
34417 DOT!$DOT$ac_delim
34418 GV!$GV$ac_delim
34419 DOTTY!$DOTTY$ac_delim
34420 PERL!$PERL$ac_delim
34421 HAVE_PERL!$HAVE_PERL$ac_delim
34422 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34423 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34424 INSTALL_DATA!$INSTALL_DATA$ac_delim
34425 BZIP2!$BZIP2$ac_delim
34426 DOXYGEN!$DOXYGEN$ac_delim
34427 GROFF!$GROFF$ac_delim
34428 GZIP!$GZIP$ac_delim
34429 POD2HTML!$POD2HTML$ac_delim
34430 POD2MAN!$POD2MAN$ac_delim
34431 RUNTEST!$RUNTEST$ac_delim
34432 TCLSH!$TCLSH$ac_delim
34433 ZIP!$ZIP$ac_delim
34434 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34435 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34436 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34437 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34438 LIBADD_DL!$LIBADD_DL$ac_delim
34439 ECHO!$ECHO$ac_delim
34440 AR!$AR$ac_delim
34441 STRIP!$STRIP$ac_delim
34442 CXXCPP!$CXXCPP$ac_delim
34443 F77!$F77$ac_delim
34444 FFLAGS!$FFLAGS$ac_delim
34445 ac_ct_F77!$ac_ct_F77$ac_delim
34446 LIBTOOL!$LIBTOOL$ac_delim
34447 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34448 LLVMGCC!$LLVMGCC$ac_delim
34449 LLVMGXX!$LLVMGXX$ac_delim
34450 USE_UDIS86!$USE_UDIS86$ac_delim
34451 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34452 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34453 ALLOCA!$ALLOCA$ac_delim
34454 MMAP_FILE!$MMAP_FILE$ac_delim
34455 LLVMCC1!$LLVMCC1$ac_delim
34456 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34457 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34458 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34459 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34460 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34461 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34462 SHLIBEXT!$SHLIBEXT$ac_delim
34463 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34464 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34465 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34466 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34467 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34468 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34469 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34470 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34471 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34472 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34473 LIBOBJS!$LIBOBJS$ac_delim
34474 LTLIBOBJS!$LTLIBOBJS$ac_delim
34475 _ACEOF
34477 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
34478 break
34479 elif $ac_last_try; then
34480 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34481 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34482 { (exit 1); exit 1; }; }
34483 else
34484 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34486 done
34488 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34489 if test -n "$ac_eof"; then
34490 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34491 ac_eof=`expr $ac_eof + 1`
34494 cat >>$CONFIG_STATUS <<_ACEOF
34495 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34497 _ACEOF
34498 sed '
34499 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34500 s/^/s,@/; s/!/@,|#_!!_#|/
34503 s/'"$ac_delim"'$/,g/; t
34504 s/$/\\/; p
34505 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34506 ' >>$CONFIG_STATUS <conf$$subs.sed
34507 rm -f conf$$subs.sed
34508 cat >>$CONFIG_STATUS <<_ACEOF
34509 :end
34510 s/|#_!!_#|//g
34511 CEOF$ac_eof
34512 _ACEOF
34515 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34516 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34517 # trailing colons and then remove the whole line if VPATH becomes empty
34518 # (actually we leave an empty line to preserve line numbers).
34519 if test "x$srcdir" = x.; then
34520 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34521 s/:*\$(srcdir):*/:/
34522 s/:*\${srcdir}:*/:/
34523 s/:*@srcdir@:*/:/
34524 s/^\([^=]*=[ ]*\):*/\1/
34525 s/:*$//
34526 s/^[^=]*=[ ]*$//
34530 cat >>$CONFIG_STATUS <<\_ACEOF
34531 fi # test -n "$CONFIG_FILES"
34534 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34536 case $ac_tag in
34537 :[FHLC]) ac_mode=$ac_tag; continue;;
34538 esac
34539 case $ac_mode$ac_tag in
34540 :[FHL]*:*);;
34541 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34542 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34543 { (exit 1); exit 1; }; };;
34544 :[FH]-) ac_tag=-:-;;
34545 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34546 esac
34547 ac_save_IFS=$IFS
34548 IFS=:
34549 set x $ac_tag
34550 IFS=$ac_save_IFS
34551 shift
34552 ac_file=$1
34553 shift
34555 case $ac_mode in
34556 :L) ac_source=$1;;
34557 :[FH])
34558 ac_file_inputs=
34559 for ac_f
34561 case $ac_f in
34562 -) ac_f="$tmp/stdin";;
34563 *) # Look for the file first in the build tree, then in the source tree
34564 # (if the path is not absolute). The absolute path cannot be DOS-style,
34565 # because $ac_f cannot contain `:'.
34566 test -f "$ac_f" ||
34567 case $ac_f in
34568 [\\/$]*) false;;
34569 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34570 esac ||
34571 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34572 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34573 { (exit 1); exit 1; }; };;
34574 esac
34575 ac_file_inputs="$ac_file_inputs $ac_f"
34576 done
34578 # Let's still pretend it is `configure' which instantiates (i.e., don't
34579 # use $as_me), people would be surprised to read:
34580 # /* config.h. Generated by config.status. */
34581 configure_input="Generated from "`IFS=:
34582 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34583 if test x"$ac_file" != x-; then
34584 configure_input="$ac_file. $configure_input"
34585 { echo "$as_me:$LINENO: creating $ac_file" >&5
34586 echo "$as_me: creating $ac_file" >&6;}
34589 case $ac_tag in
34590 *:-:* | *:-) cat >"$tmp/stdin";;
34591 esac
34593 esac
34595 ac_dir=`$as_dirname -- "$ac_file" ||
34596 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34597 X"$ac_file" : 'X\(//\)[^/]' \| \
34598 X"$ac_file" : 'X\(//\)$' \| \
34599 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34600 echo X"$ac_file" |
34601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34602 s//\1/
34605 /^X\(\/\/\)[^/].*/{
34606 s//\1/
34609 /^X\(\/\/\)$/{
34610 s//\1/
34613 /^X\(\/\).*/{
34614 s//\1/
34617 s/.*/./; q'`
34618 { as_dir="$ac_dir"
34619 case $as_dir in #(
34620 -*) as_dir=./$as_dir;;
34621 esac
34622 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34623 as_dirs=
34624 while :; do
34625 case $as_dir in #(
34626 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34627 *) as_qdir=$as_dir;;
34628 esac
34629 as_dirs="'$as_qdir' $as_dirs"
34630 as_dir=`$as_dirname -- "$as_dir" ||
34631 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34632 X"$as_dir" : 'X\(//\)[^/]' \| \
34633 X"$as_dir" : 'X\(//\)$' \| \
34634 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34635 echo X"$as_dir" |
34636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34637 s//\1/
34640 /^X\(\/\/\)[^/].*/{
34641 s//\1/
34644 /^X\(\/\/\)$/{
34645 s//\1/
34648 /^X\(\/\).*/{
34649 s//\1/
34652 s/.*/./; q'`
34653 test -d "$as_dir" && break
34654 done
34655 test -z "$as_dirs" || eval "mkdir $as_dirs"
34656 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34657 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34658 { (exit 1); exit 1; }; }; }
34659 ac_builddir=.
34661 case "$ac_dir" in
34662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34664 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34665 # A ".." for each directory in $ac_dir_suffix.
34666 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34667 case $ac_top_builddir_sub in
34668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34670 esac ;;
34671 esac
34672 ac_abs_top_builddir=$ac_pwd
34673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34674 # for backward compatibility:
34675 ac_top_builddir=$ac_top_build_prefix
34677 case $srcdir in
34678 .) # We are building in place.
34679 ac_srcdir=.
34680 ac_top_srcdir=$ac_top_builddir_sub
34681 ac_abs_top_srcdir=$ac_pwd ;;
34682 [\\/]* | ?:[\\/]* ) # Absolute name.
34683 ac_srcdir=$srcdir$ac_dir_suffix;
34684 ac_top_srcdir=$srcdir
34685 ac_abs_top_srcdir=$srcdir ;;
34686 *) # Relative name.
34687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34688 ac_top_srcdir=$ac_top_build_prefix$srcdir
34689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34690 esac
34691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34694 case $ac_mode in
34697 # CONFIG_FILE
34700 case $INSTALL in
34701 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34702 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34703 esac
34704 _ACEOF
34706 cat >>$CONFIG_STATUS <<\_ACEOF
34707 # If the template does not know about datarootdir, expand it.
34708 # FIXME: This hack should be removed a few years after 2.60.
34709 ac_datarootdir_hack=; ac_datarootdir_seen=
34711 case `sed -n '/datarootdir/ {
34715 /@datadir@/p
34716 /@docdir@/p
34717 /@infodir@/p
34718 /@localedir@/p
34719 /@mandir@/p
34720 ' $ac_file_inputs` in
34721 *datarootdir*) ac_datarootdir_seen=yes;;
34722 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34723 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34724 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34725 _ACEOF
34726 cat >>$CONFIG_STATUS <<_ACEOF
34727 ac_datarootdir_hack='
34728 s&@datadir@&$datadir&g
34729 s&@docdir@&$docdir&g
34730 s&@infodir@&$infodir&g
34731 s&@localedir@&$localedir&g
34732 s&@mandir@&$mandir&g
34733 s&\\\${datarootdir}&$datarootdir&g' ;;
34734 esac
34735 _ACEOF
34737 # Neutralize VPATH when `$srcdir' = `.'.
34738 # Shell code in configure.ac might set extrasub.
34739 # FIXME: do we really want to maintain this feature?
34740 cat >>$CONFIG_STATUS <<_ACEOF
34741 sed "$ac_vpsub
34742 $extrasub
34743 _ACEOF
34744 cat >>$CONFIG_STATUS <<\_ACEOF
34746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34747 s&@configure_input@&$configure_input&;t t
34748 s&@top_builddir@&$ac_top_builddir_sub&;t t
34749 s&@srcdir@&$ac_srcdir&;t t
34750 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34751 s&@top_srcdir@&$ac_top_srcdir&;t t
34752 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34753 s&@builddir@&$ac_builddir&;t t
34754 s&@abs_builddir@&$ac_abs_builddir&;t t
34755 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34756 s&@INSTALL@&$ac_INSTALL&;t t
34757 $ac_datarootdir_hack
34758 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34760 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34761 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34762 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34763 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34764 which seems to be undefined. Please make sure it is defined." >&5
34765 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34766 which seems to be undefined. Please make sure it is defined." >&2;}
34768 rm -f "$tmp/stdin"
34769 case $ac_file in
34770 -) cat "$tmp/out"; rm -f "$tmp/out";;
34771 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34772 esac
34776 # CONFIG_HEADER
34778 _ACEOF
34780 # Transform confdefs.h into a sed script `conftest.defines', that
34781 # substitutes the proper values into config.h.in to produce config.h.
34782 rm -f conftest.defines conftest.tail
34783 # First, append a space to every undef/define line, to ease matching.
34784 echo 's/$/ /' >conftest.defines
34785 # Then, protect against being on the right side of a sed subst, or in
34786 # an unquoted here document, in config.status. If some macros were
34787 # called several times there might be several #defines for the same
34788 # symbol, which is useless. But do not sort them, since the last
34789 # AC_DEFINE must be honored.
34790 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34791 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34792 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34793 # PARAMS is the parameter list in the macro definition--in most cases, it's
34794 # just an empty string.
34795 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34796 ac_dB='\\)[ (].*,\\1define\\2'
34797 ac_dC=' '
34798 ac_dD=' ,'
34800 uniq confdefs.h |
34801 sed -n '
34802 t rset
34803 :rset
34804 s/^[ ]*#[ ]*define[ ][ ]*//
34805 t ok
34808 s/[\\&,]/\\&/g
34809 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34810 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34811 ' >>conftest.defines
34813 # Remove the space that was appended to ease matching.
34814 # Then replace #undef with comments. This is necessary, for
34815 # example, in the case of _POSIX_SOURCE, which is predefined and required
34816 # on some systems where configure will not decide to define it.
34817 # (The regexp can be short, since the line contains either #define or #undef.)
34818 echo 's/ $//
34819 s,^[ #]*u.*,/* & */,' >>conftest.defines
34821 # Break up conftest.defines:
34822 ac_max_sed_lines=50
34824 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34825 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34826 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34827 # et cetera.
34828 ac_in='$ac_file_inputs'
34829 ac_out='"$tmp/out1"'
34830 ac_nxt='"$tmp/out2"'
34832 while :
34834 # Write a here document:
34835 cat >>$CONFIG_STATUS <<_ACEOF
34836 # First, check the format of the line:
34837 cat >"\$tmp/defines.sed" <<\\CEOF
34838 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34839 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34841 :def
34842 _ACEOF
34843 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34844 echo 'CEOF
34845 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34846 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34847 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34848 grep . conftest.tail >/dev/null || break
34849 rm -f conftest.defines
34850 mv conftest.tail conftest.defines
34851 done
34852 rm -f conftest.defines conftest.tail
34854 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34855 cat >>$CONFIG_STATUS <<\_ACEOF
34856 if test x"$ac_file" != x-; then
34857 echo "/* $configure_input */" >"$tmp/config.h"
34858 cat "$ac_result" >>"$tmp/config.h"
34859 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34860 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34861 echo "$as_me: $ac_file is unchanged" >&6;}
34862 else
34863 rm -f $ac_file
34864 mv "$tmp/config.h" $ac_file
34866 else
34867 echo "/* $configure_input */"
34868 cat "$ac_result"
34870 rm -f "$tmp/out12"
34873 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34874 echo "$as_me: executing $ac_file commands" >&6;}
34876 esac
34879 case $ac_file$ac_mode in
34880 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34881 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34882 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34883 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34884 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34885 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34886 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34887 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34888 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34889 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34890 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34891 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34892 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34893 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34894 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34895 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34896 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34897 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34898 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34899 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34901 esac
34902 done # for ac_tag
34905 { (exit 0); exit 0; }
34906 _ACEOF
34907 chmod +x $CONFIG_STATUS
34908 ac_clean_files=$ac_clean_files_save
34911 # configure is writing to config.log, and then calls config.status.
34912 # config.status does its own redirection, appending to config.log.
34913 # Unfortunately, on DOS this fails, as config.log is still kept open
34914 # by configure, so config.status won't be able to write to it; its
34915 # output is simply discarded. So we exec the FD to /dev/null,
34916 # effectively closing config.log, so it can be properly (re)opened and
34917 # appended to by config.status. When coming back to configure, we
34918 # need to make the FD available again.
34919 if test "$no_create" != yes; then
34920 ac_cs_success=:
34921 ac_config_status_args=
34922 test "$silent" = yes &&
34923 ac_config_status_args="$ac_config_status_args --quiet"
34924 exec 5>/dev/null
34925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34926 exec 5>>config.log
34927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34928 # would make configure fail if this is the last instruction.
34929 $ac_cs_success || { (exit 1); exit 1; }
34933 # CONFIG_SUBDIRS section.
34935 if test "$no_recursion" != yes; then
34937 # Remove --cache-file and --srcdir arguments so they do not pile up.
34938 ac_sub_configure_args=
34939 ac_prev=
34940 eval "set x $ac_configure_args"
34941 shift
34942 for ac_arg
34944 if test -n "$ac_prev"; then
34945 ac_prev=
34946 continue
34948 case $ac_arg in
34949 -cache-file | --cache-file | --cache-fil | --cache-fi \
34950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34951 ac_prev=cache_file ;;
34952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34954 | --c=*)
34956 --config-cache | -C)
34958 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34959 ac_prev=srcdir ;;
34960 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34962 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34963 ac_prev=prefix ;;
34964 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34967 case $ac_arg in
34968 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34969 esac
34970 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34971 esac
34972 done
34974 # Always prepend --prefix to ensure using the same prefix
34975 # in subdir configurations.
34976 ac_arg="--prefix=$prefix"
34977 case $ac_arg in
34978 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34979 esac
34980 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
34982 ac_popdir=`pwd`
34983 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34985 # Do not complain, so a configure script can configure whichever
34986 # parts of a large source tree are present.
34987 test -d "$srcdir/$ac_dir" || continue
34989 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34990 echo "$as_me:$LINENO: $ac_msg" >&5
34991 echo "$ac_msg" >&6
34992 { as_dir="$ac_dir"
34993 case $as_dir in #(
34994 -*) as_dir=./$as_dir;;
34995 esac
34996 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34997 as_dirs=
34998 while :; do
34999 case $as_dir in #(
35000 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35001 *) as_qdir=$as_dir;;
35002 esac
35003 as_dirs="'$as_qdir' $as_dirs"
35004 as_dir=`$as_dirname -- "$as_dir" ||
35005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35006 X"$as_dir" : 'X\(//\)[^/]' \| \
35007 X"$as_dir" : 'X\(//\)$' \| \
35008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35009 echo X"$as_dir" |
35010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35011 s//\1/
35014 /^X\(\/\/\)[^/].*/{
35015 s//\1/
35018 /^X\(\/\/\)$/{
35019 s//\1/
35022 /^X\(\/\).*/{
35023 s//\1/
35026 s/.*/./; q'`
35027 test -d "$as_dir" && break
35028 done
35029 test -z "$as_dirs" || eval "mkdir $as_dirs"
35030 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35031 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35032 { (exit 1); exit 1; }; }; }
35033 ac_builddir=.
35035 case "$ac_dir" in
35036 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35039 # A ".." for each directory in $ac_dir_suffix.
35040 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35041 case $ac_top_builddir_sub in
35042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35044 esac ;;
35045 esac
35046 ac_abs_top_builddir=$ac_pwd
35047 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35048 # for backward compatibility:
35049 ac_top_builddir=$ac_top_build_prefix
35051 case $srcdir in
35052 .) # We are building in place.
35053 ac_srcdir=.
35054 ac_top_srcdir=$ac_top_builddir_sub
35055 ac_abs_top_srcdir=$ac_pwd ;;
35056 [\\/]* | ?:[\\/]* ) # Absolute name.
35057 ac_srcdir=$srcdir$ac_dir_suffix;
35058 ac_top_srcdir=$srcdir
35059 ac_abs_top_srcdir=$srcdir ;;
35060 *) # Relative name.
35061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35062 ac_top_srcdir=$ac_top_build_prefix$srcdir
35063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35064 esac
35065 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35068 cd "$ac_dir"
35070 # Check for guested configure; otherwise get Cygnus style configure.
35071 if test -f "$ac_srcdir/configure.gnu"; then
35072 ac_sub_configure=$ac_srcdir/configure.gnu
35073 elif test -f "$ac_srcdir/configure"; then
35074 ac_sub_configure=$ac_srcdir/configure
35075 elif test -f "$ac_srcdir/configure.in"; then
35076 # This should be Cygnus configure.
35077 ac_sub_configure=$ac_aux_dir/configure
35078 else
35079 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35080 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35081 ac_sub_configure=
35084 # The recursion is here.
35085 if test -n "$ac_sub_configure"; then
35086 # Make the cache file name correct relative to the subdirectory.
35087 case $cache_file in
35088 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35089 *) # Relative name.
35090 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35091 esac
35093 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35094 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35095 # The eval makes quoting arguments work.
35096 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35097 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35098 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35099 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35100 { (exit 1); exit 1; }; }
35103 cd "$ac_popdir"
35104 done