These rountines are now available as part of basic block utilities.
[llvm-complete.git] / configure
blob77e4cab20ea642704c1b117d27142e4329bb75c2
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 ENABLE_EXPENSIVE_CHECKS
834 EXPENSIVE_CHECKS
835 DEBUG_RUNTIME
837 TARGET_HAS_JIT
838 ENABLE_DOXYGEN
839 ENABLE_THREADS
840 ENABLE_PIC
841 TARGETS_TO_BUILD
842 ENABLE_CBE_PRINTF_A
843 EXTRA_OPTIONS
845 CXXFLAGS
846 ac_ct_CXX
848 LEXLIB
849 LEX_OUTPUT_ROOT
850 FLEX
851 YACC
852 YFLAGS
853 BISON
855 ifGNUmake
856 LN_S
859 DATE
860 FIND
861 MKDIR
863 RANLIB
867 BINPWD
868 GRAPHVIZ
871 DOTTY
872 PERL
873 HAVE_PERL
874 INSTALL_PROGRAM
875 INSTALL_SCRIPT
876 INSTALL_DATA
877 BZIP2
878 DOXYGEN
879 GROFF
880 GZIP
881 POD2HTML
882 POD2MAN
883 RUNTEST
884 TCLSH
886 INSTALL_LTDL_TRUE
887 INSTALL_LTDL_FALSE
888 CONVENIENCE_LTDL_TRUE
889 CONVENIENCE_LTDL_FALSE
890 LIBADD_DL
891 ECHO
893 STRIP
894 CXXCPP
896 FFLAGS
897 ac_ct_F77
898 LIBTOOL
899 ETAGSFLAGS
900 LLVMGCC
901 LLVMGXX
902 USE_UDIS86
903 HAVE_PTHREAD
904 HUGE_VAL_SANITY
905 ALLOCA
906 MMAP_FILE
907 LLVMCC1
908 LLVMCC1PLUS
909 LLVMGCCDIR
910 LLVMGCCLIBEXEC
911 LLVMGCC_VERSION
912 LLVMGCC_MAJVERS
913 LLVMGCC_LANGS
914 SHLIBEXT
915 LLVM_PREFIX
916 LLVM_BINDIR
917 LLVM_LIBDIR
918 LLVM_DATADIR
919 LLVM_DOCSDIR
920 LLVM_ETCDIR
921 LLVM_INCLUDEDIR
922 LLVM_INFODIR
923 LLVM_MANDIR
924 LLVM_CONFIGTIME
925 LIBOBJS
926 LTLIBOBJS'
927 ac_subst_files=''
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
932 CFLAGS
933 LDFLAGS
934 CPPFLAGS
937 CXXFLAGS
939 YACC
940 YFLAGS
941 CXXCPP
943 FFLAGS'
944 ac_subdirs_all='projects/sample
945 projects/privbracket
946 projects/llvm-stacker
947 projects/llvm-test
948 projects/llvm-reopt
949 projects/llvm-gcc
950 projects/llvm-java
951 projects/llvm-tv
952 projects/llvm-poolalloc
953 projects/llvm-kernel'
955 # Initialize some variables set by options.
956 ac_init_help=
957 ac_init_version=false
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
960 cache_file=/dev/null
961 exec_prefix=NONE
962 no_create=
963 no_recursion=
964 prefix=NONE
965 program_prefix=NONE
966 program_suffix=NONE
967 program_transform_name=s,x,x,
968 silent=
969 site=
970 srcdir=
971 verbose=
972 x_includes=NONE
973 x_libraries=NONE
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992 infodir='${datarootdir}/info'
993 htmldir='${docdir}'
994 dvidir='${docdir}'
995 pdfdir='${docdir}'
996 psdir='${docdir}'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1001 ac_prev=
1002 ac_dashdash=
1003 for ac_option
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\$ac_option
1008 ac_prev=
1009 continue
1012 case $ac_option in
1013 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 *) ac_optarg=yes ;;
1015 esac
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1021 ac_dashdash=yes ;;
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1055 -disable-* | --disable-*)
1056 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1059 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1060 { (exit 1); exit 1; }; }
1061 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1062 eval enable_$ac_feature=no ;;
1064 -docdir | --docdir | --docdi | --doc | --do)
1065 ac_prev=docdir ;;
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070 ac_prev=dvidir ;;
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1074 -enable-* | --enable-*)
1075 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1081 eval enable_$ac_feature=\$ac_optarg ;;
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir=$ac_optarg ;;
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1161 no_create=yes ;;
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
1230 sbindir=$ac_optarg ;;
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
1241 sharedstatedir=$ac_optarg ;;
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
1246 site=$ac_optarg ;;
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1271 -with-* | --with-*)
1272 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1275 { echo "$as_me: error: invalid package name: $ac_package" >&2
1276 { (exit 1); exit 1; }; }
1277 ac_package=`echo $ac_package| sed 's/-/_/g'`
1278 eval with_$ac_package=\$ac_optarg ;;
1280 -without-* | --without-*)
1281 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1284 { echo "$as_me: error: invalid package name: $ac_package" >&2
1285 { (exit 1); exit 1; }; }
1286 ac_package=`echo $ac_package | sed 's/-/_/g'`
1287 eval with_$ac_package=no ;;
1289 --x)
1290 # Obsolete; use --with-x.
1291 with_x=yes ;;
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1307 -*) { echo "$as_me: error: unrecognized option: $ac_option
1308 Try \`$0 --help' for more information." >&2
1309 { (exit 1); exit 1; }; }
1312 *=*)
1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1316 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1317 { (exit 1); exit 1; }; }
1318 eval $ac_envvar=\$ac_optarg
1319 export $ac_envvar ;;
1322 # FIXME: should be removed in autoconf 3.0.
1323 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329 esac
1330 done
1332 if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334 { echo "$as_me: error: missing argument to $ac_option" >&2
1335 { (exit 1); exit 1; }; }
1338 # Be sure to have absolute directory names.
1339 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir
1344 eval ac_val=\$$ac_var
1345 case $ac_val in
1346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348 esac
1349 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1350 { (exit 1); exit 1; }; }
1351 done
1353 # There might be people who depend on the old broken behavior: `$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1356 build=$build_alias
1357 host=$host_alias
1358 target=$target_alias
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x; then
1362 if test "x$build_alias" = x; then
1363 cross_compiling=maybe
1364 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1365 If a cross compiler is detected then cross compile mode will be used." >&2
1366 elif test "x$build_alias" != "x$host_alias"; then
1367 cross_compiling=yes
1371 ac_tool_prefix=
1372 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374 test "$silent" = yes && exec 6>/dev/null
1377 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1378 ac_ls_di=`ls -di .` &&
1379 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1380 { echo "$as_me: error: Working directory cannot be determined" >&2
1381 { (exit 1); exit 1; }; }
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 { echo "$as_me: error: pwd does not report name of working directory" >&2
1384 { (exit 1); exit 1; }; }
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir=`$as_dirname -- "$0" ||
1392 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$0" : 'X\(//\)[^/]' \| \
1394 X"$0" : 'X\(//\)$' \| \
1395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1396 echo X"$0" |
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 s//\1/
1401 /^X\(\/\/\)[^/].*/{
1402 s//\1/
1405 /^X\(\/\/\)$/{
1406 s//\1/
1409 /^X\(\/\).*/{
1410 s//\1/
1413 s/.*/./; q'`
1414 srcdir=$ac_confdir
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 srcdir=..
1418 else
1419 ac_srcdir_defaulted=no
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1424 { (exit 1); exit 1; }; }
1426 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 ac_abs_confdir=`(
1428 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1429 { (exit 1); exit 1; }; }
1430 pwd)`
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 srcdir=.
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1438 case $srcdir in
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 esac
1441 for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 done
1449 # Report the --help message.
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1454 cat <<_ACEOF
1455 \`configure' configures llvm 2.1cvs to adapt to many kinds of systems.
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1462 Defaults for the options are specified in brackets.
1464 Configuration:
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 [PREFIX]
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1486 For better control, use the options below.
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1508 _ACEOF
1510 cat <<\_ACEOF
1512 System types:
1513 --build=BUILD configure for building on BUILD [guessed]
1514 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1515 --target=TARGET configure for building compilers for TARGET [HOST]
1516 _ACEOF
1519 if test -n "$ac_init_help"; then
1520 case $ac_init_help in
1521 short | recursive ) echo "Configuration of llvm 2.1cvs:";;
1522 esac
1523 cat <<\_ACEOF
1525 Optional Features:
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1528 --enable-optimized
1529 --enable-assertions
1530 --enable-expensive-checks
1532 --enable-debug-runtime
1533 --enable-jit Enable Just In Time Compiling (default is YES)
1534 --enable-doxygen Build doxygen documentation (default is NO)
1535 --enable-threads Use threads if available (default is YES)
1536 --enable-pic Build LLVM with Position Independent Code (default
1537 is NO)
1538 --enable-targets Build specific host targets:
1539 all,host-only,{target-name} (default=all)
1540 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1541 %a (default is YES)
1542 --enable-ltdl-install install libltdl
1543 --enable-shared[=PKGS] build shared libraries
1544 [default=enable_shared_default]
1545 --enable-static[=PKGS] build static libraries
1546 [default=enable_static_default]
1547 --enable-fast-install[=PKGS]
1548 optimize for fast installation
1549 [default=enable_Fast_install_default]
1550 --disable-libtool-lock avoid locking (might break parallel builds)
1552 Optional Packages:
1553 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1554 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1555 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1556 searches PATH)
1557 --with-extra-options Specify addtional options to compile LLVM with
1558 --with-tclinclude directory where tcl headers are
1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1560 --with-pic try to use only PIC/non-PIC objects [default=use
1561 both]
1562 --with-tags[=TAGS] include additional configurations [automatic]
1563 --with-udis86=<path> Use udis86 external x86 disassembler library
1565 Some influential environment variables:
1566 CC C compiler command
1567 CFLAGS C compiler flags
1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1569 nonstandard directory <lib dir>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1572 CPP C preprocessor
1573 CXX C++ compiler command
1574 CXXFLAGS C++ compiler flags
1575 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1576 the first program found out of: `bison -y', `byacc', `yacc'.
1577 YFLAGS The list of arguments that will be passed by default to $YACC.
1578 This script will default YFLAGS to the empty string to avoid a
1579 default value of `-d' given by some make applications.
1580 CXXCPP C++ preprocessor
1581 F77 Fortran 77 compiler command
1582 FFLAGS Fortran 77 compiler flags
1584 Use these variables to override the choices made by `configure' or to help
1585 it to find libraries and programs with nonstandard names/locations.
1587 Report bugs to <llvmbugs@cs.uiuc.edu>.
1588 _ACEOF
1589 ac_status=$?
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595 test -d "$ac_dir" || continue
1596 ac_builddir=.
1598 case "$ac_dir" in
1599 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1602 # A ".." for each directory in $ac_dir_suffix.
1603 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1604 case $ac_top_builddir_sub in
1605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1607 esac ;;
1608 esac
1609 ac_abs_top_builddir=$ac_pwd
1610 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1611 # for backward compatibility:
1612 ac_top_builddir=$ac_top_build_prefix
1614 case $srcdir in
1615 .) # We are building in place.
1616 ac_srcdir=.
1617 ac_top_srcdir=$ac_top_builddir_sub
1618 ac_abs_top_srcdir=$ac_pwd ;;
1619 [\\/]* | ?:[\\/]* ) # Absolute name.
1620 ac_srcdir=$srcdir$ac_dir_suffix;
1621 ac_top_srcdir=$srcdir
1622 ac_abs_top_srcdir=$srcdir ;;
1623 *) # Relative name.
1624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1625 ac_top_srcdir=$ac_top_build_prefix$srcdir
1626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1627 esac
1628 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1630 cd "$ac_dir" || { ac_status=$?; continue; }
1631 # Check for guested configure.
1632 if test -f "$ac_srcdir/configure.gnu"; then
1633 echo &&
1634 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1635 elif test -f "$ac_srcdir/configure"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure" --help=recursive
1638 else
1639 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1640 fi || ac_status=$?
1641 cd "$ac_pwd" || { ac_status=$?; break; }
1642 done
1645 test -n "$ac_init_help" && exit $ac_status
1646 if $ac_init_version; then
1647 cat <<\_ACEOF
1648 llvm configure 2.1cvs
1649 generated by GNU Autoconf 2.60
1651 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1652 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1653 This configure script is free software; the Free Software Foundation
1654 gives unlimited permission to copy, distribute and modify it.
1656 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1657 _ACEOF
1658 exit
1660 cat >config.log <<_ACEOF
1661 This file contains any messages produced by compilers while
1662 running configure, to aid debugging if configure makes a mistake.
1664 It was created by llvm $as_me 2.1cvs, which was
1665 generated by GNU Autoconf 2.60. Invocation command line was
1667 $ $0 $@
1669 _ACEOF
1670 exec 5>>config.log
1672 cat <<_ASUNAME
1673 ## --------- ##
1674 ## Platform. ##
1675 ## --------- ##
1677 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1678 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1679 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1680 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1681 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1683 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1684 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1686 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1687 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1688 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1689 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1690 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1691 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1692 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1694 _ASUNAME
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 echo "PATH: $as_dir"
1702 done
1703 IFS=$as_save_IFS
1705 } >&5
1707 cat >&5 <<_ACEOF
1710 ## ----------- ##
1711 ## Core tests. ##
1712 ## ----------- ##
1714 _ACEOF
1717 # Keep a trace of the command line.
1718 # Strip out --no-create and --no-recursion so they do not pile up.
1719 # Strip out --silent because we don't want to record it for future runs.
1720 # Also quote any args containing shell meta-characters.
1721 # Make two passes to allow for proper duplicate-argument suppression.
1722 ac_configure_args=
1723 ac_configure_args0=
1724 ac_configure_args1=
1725 ac_must_keep_next=false
1726 for ac_pass in 1 2
1728 for ac_arg
1730 case $ac_arg in
1731 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1732 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1733 | -silent | --silent | --silen | --sile | --sil)
1734 continue ;;
1735 *\'*)
1736 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1737 esac
1738 case $ac_pass in
1739 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1741 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1742 if test $ac_must_keep_next = true; then
1743 ac_must_keep_next=false # Got value, back to normal.
1744 else
1745 case $ac_arg in
1746 *=* | --config-cache | -C | -disable-* | --disable-* \
1747 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1748 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1749 | -with-* | --with-* | -without-* | --without-* | --x)
1750 case "$ac_configure_args0 " in
1751 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1752 esac
1754 -* ) ac_must_keep_next=true ;;
1755 esac
1757 ac_configure_args="$ac_configure_args '$ac_arg'"
1759 esac
1760 done
1761 done
1762 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1763 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1765 # When interrupted or exit'd, cleanup temporary files, and complete
1766 # config.log. We remove comments because anyway the quotes in there
1767 # would cause problems or look ugly.
1768 # WARNING: Use '\'' to represent an apostrophe within the trap.
1769 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1770 trap 'exit_status=$?
1771 # Save into config.log some information that might help in debugging.
1773 echo
1775 cat <<\_ASBOX
1776 ## ---------------- ##
1777 ## Cache variables. ##
1778 ## ---------------- ##
1779 _ASBOX
1780 echo
1781 # The following way of writing the cache mishandles newlines in values,
1783 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1784 eval ac_val=\$$ac_var
1785 case $ac_val in #(
1786 *${as_nl}*)
1787 case $ac_var in #(
1788 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1789 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1790 esac
1791 case $ac_var in #(
1792 _ | IFS | as_nl) ;; #(
1793 *) $as_unset $ac_var ;;
1794 esac ;;
1795 esac
1796 done
1797 (set) 2>&1 |
1798 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1799 *${as_nl}ac_space=\ *)
1800 sed -n \
1801 "s/'\''/'\''\\\\'\'''\''/g;
1802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1803 ;; #(
1805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1807 esac |
1808 sort
1810 echo
1812 cat <<\_ASBOX
1813 ## ----------------- ##
1814 ## Output variables. ##
1815 ## ----------------- ##
1816 _ASBOX
1817 echo
1818 for ac_var in $ac_subst_vars
1820 eval ac_val=\$$ac_var
1821 case $ac_val in
1822 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823 esac
1824 echo "$ac_var='\''$ac_val'\''"
1825 done | sort
1826 echo
1828 if test -n "$ac_subst_files"; then
1829 cat <<\_ASBOX
1830 ## ------------------- ##
1831 ## File substitutions. ##
1832 ## ------------------- ##
1833 _ASBOX
1834 echo
1835 for ac_var in $ac_subst_files
1837 eval ac_val=\$$ac_var
1838 case $ac_val in
1839 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1840 esac
1841 echo "$ac_var='\''$ac_val'\''"
1842 done | sort
1843 echo
1846 if test -s confdefs.h; then
1847 cat <<\_ASBOX
1848 ## ----------- ##
1849 ## confdefs.h. ##
1850 ## ----------- ##
1851 _ASBOX
1852 echo
1853 cat confdefs.h
1854 echo
1856 test "$ac_signal" != 0 &&
1857 echo "$as_me: caught signal $ac_signal"
1858 echo "$as_me: exit $exit_status"
1859 } >&5
1860 rm -f core *.core core.conftest.* &&
1861 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1862 exit $exit_status
1864 for ac_signal in 1 2 13 15; do
1865 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1866 done
1867 ac_signal=0
1869 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1870 rm -f -r conftest* confdefs.h
1872 # Predefined preprocessor variables.
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_NAME "$PACKAGE_NAME"
1876 _ACEOF
1879 cat >>confdefs.h <<_ACEOF
1880 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1881 _ACEOF
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1886 _ACEOF
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_STRING "$PACKAGE_STRING"
1891 _ACEOF
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1896 _ACEOF
1899 # Let the site file select an alternate cache file if it wants to.
1900 # Prefer explicitly selected file to automatically selected ones.
1901 if test -n "$CONFIG_SITE"; then
1902 set x "$CONFIG_SITE"
1903 elif test "x$prefix" != xNONE; then
1904 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1905 else
1906 set x "$ac_default_prefix/share/config.site" \
1907 "$ac_default_prefix/etc/config.site"
1909 shift
1910 for ac_site_file
1912 if test -r "$ac_site_file"; then
1913 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1914 echo "$as_me: loading site script $ac_site_file" >&6;}
1915 sed 's/^/| /' "$ac_site_file" >&5
1916 . "$ac_site_file"
1918 done
1920 if test -r "$cache_file"; then
1921 # Some versions of bash will fail to source /dev/null (special
1922 # files actually), so we avoid doing that.
1923 if test -f "$cache_file"; then
1924 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1925 echo "$as_me: loading cache $cache_file" >&6;}
1926 case $cache_file in
1927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1928 *) . "./$cache_file";;
1929 esac
1931 else
1932 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1933 echo "$as_me: creating cache $cache_file" >&6;}
1934 >$cache_file
1937 # Check that the precious variables saved in the cache have kept the same
1938 # value.
1939 ac_cache_corrupted=false
1940 for ac_var in $ac_precious_vars; do
1941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1942 eval ac_new_set=\$ac_env_${ac_var}_set
1943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1944 eval ac_new_val=\$ac_env_${ac_var}_value
1945 case $ac_old_set,$ac_new_set in
1946 set,)
1947 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1948 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1949 ac_cache_corrupted=: ;;
1950 ,set)
1951 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1952 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1953 ac_cache_corrupted=: ;;
1954 ,);;
1956 if test "x$ac_old_val" != "x$ac_new_val"; then
1957 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1958 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1959 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1960 echo "$as_me: former value: $ac_old_val" >&2;}
1961 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1962 echo "$as_me: current value: $ac_new_val" >&2;}
1963 ac_cache_corrupted=:
1964 fi;;
1965 esac
1966 # Pass precious variables to config.status.
1967 if test "$ac_new_set" = set; then
1968 case $ac_new_val in
1969 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1970 *) ac_arg=$ac_var=$ac_new_val ;;
1971 esac
1972 case " $ac_configure_args " in
1973 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1974 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1975 esac
1977 done
1978 if $ac_cache_corrupted; then
1979 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1980 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1981 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1982 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1983 { (exit 1); exit 1; }; }
2010 ac_ext=c
2011 ac_cpp='$CPP $CPPFLAGS'
2012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2026 ac_aux_dir=
2027 for ac_dir in autoconf "$srcdir"/autoconf; do
2028 if 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/install.sh"; then
2033 ac_aux_dir=$ac_dir
2034 ac_install_sh="$ac_aux_dir/install.sh -c"
2035 break
2036 elif test -f "$ac_dir/shtool"; then
2037 ac_aux_dir=$ac_dir
2038 ac_install_sh="$ac_aux_dir/shtool install -c"
2039 break
2041 done
2042 if test -z "$ac_aux_dir"; then
2043 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2044 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2045 { (exit 1); exit 1; }; }
2048 # These three variables are undocumented and unsupported,
2049 # and are intended to be withdrawn in a future Autoconf release.
2050 # They can cause serious problems if a builder's source tree is in a directory
2051 # whose full name contains unusual characters.
2052 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2053 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2054 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2058 if test ${srcdir} != "." ; then
2059 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2060 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2061 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2062 { (exit 1); exit 1; }; }
2066 for i in `ls ${srcdir}/projects`
2068 if test -d ${srcdir}/projects/${i} ; then
2069 case ${i} in
2070 CVS) ;;
2071 sample) subdirs="$subdirs projects/sample"
2073 privbracket) subdirs="$subdirs projects/privbracket"
2075 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2077 llvm-test) subdirs="$subdirs projects/llvm-test"
2079 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2081 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2083 llvm-java) subdirs="$subdirs projects/llvm-java"
2085 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2087 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2089 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2092 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2093 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2095 esac
2097 done
2100 # Make sure we can run config.sub.
2101 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2102 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2103 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2104 { (exit 1); exit 1; }; }
2106 { echo "$as_me:$LINENO: checking build system type" >&5
2107 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2108 if test "${ac_cv_build+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 ac_build_alias=$build_alias
2112 test "x$ac_build_alias" = x &&
2113 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2114 test "x$ac_build_alias" = x &&
2115 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2116 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2117 { (exit 1); exit 1; }; }
2118 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2119 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2120 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2121 { (exit 1); exit 1; }; }
2124 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2125 echo "${ECHO_T}$ac_cv_build" >&6; }
2126 case $ac_cv_build in
2127 *-*-*) ;;
2128 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2129 echo "$as_me: error: invalid value of canonical build" >&2;}
2130 { (exit 1); exit 1; }; };;
2131 esac
2132 build=$ac_cv_build
2133 ac_save_IFS=$IFS; IFS='-'
2134 set x $ac_cv_build
2135 shift
2136 build_cpu=$1
2137 build_vendor=$2
2138 shift; shift
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2141 build_os=$*
2142 IFS=$ac_save_IFS
2143 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2146 { echo "$as_me:$LINENO: checking host system type" >&5
2147 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2148 if test "${ac_cv_host+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 if test "x$host_alias" = x; then
2152 ac_cv_host=$ac_cv_build
2153 else
2154 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2155 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2156 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2157 { (exit 1); exit 1; }; }
2161 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2162 echo "${ECHO_T}$ac_cv_host" >&6; }
2163 case $ac_cv_host in
2164 *-*-*) ;;
2165 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2166 echo "$as_me: error: invalid value of canonical host" >&2;}
2167 { (exit 1); exit 1; }; };;
2168 esac
2169 host=$ac_cv_host
2170 ac_save_IFS=$IFS; IFS='-'
2171 set x $ac_cv_host
2172 shift
2173 host_cpu=$1
2174 host_vendor=$2
2175 shift; shift
2176 # Remember, the first character of IFS is used to create $*,
2177 # except with old shells:
2178 host_os=$*
2179 IFS=$ac_save_IFS
2180 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2183 { echo "$as_me:$LINENO: checking target system type" >&5
2184 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2185 if test "${ac_cv_target+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 if test "x$target_alias" = x; then
2189 ac_cv_target=$ac_cv_host
2190 else
2191 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2192 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2193 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2194 { (exit 1); exit 1; }; }
2198 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2199 echo "${ECHO_T}$ac_cv_target" >&6; }
2200 case $ac_cv_target in
2201 *-*-*) ;;
2202 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2203 echo "$as_me: error: invalid value of canonical target" >&2;}
2204 { (exit 1); exit 1; }; };;
2205 esac
2206 target=$ac_cv_target
2207 ac_save_IFS=$IFS; IFS='-'
2208 set x $ac_cv_target
2209 shift
2210 target_cpu=$1
2211 target_vendor=$2
2212 shift; shift
2213 # Remember, the first character of IFS is used to create $*,
2214 # except with old shells:
2215 target_os=$*
2216 IFS=$ac_save_IFS
2217 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2220 # The aliases save the names the user supplied, while $host etc.
2221 # will get canonicalized.
2222 test -n "$target_alias" &&
2223 test "$program_prefix$program_suffix$program_transform_name" = \
2224 NONENONEs,x,x, &&
2225 program_prefix=${target_alias}-
2227 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2228 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2229 if test "${llvm_cv_os_type+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232 case $host in
2233 *-*-aix*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="AIX"
2237 llvm_cv_platform_type="Unix" ;;
2238 *-*-irix*)
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="IRIX"
2242 llvm_cv_platform_type="Unix" ;;
2243 *-*-cygwin*)
2244 llvm_cv_link_all_option="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2246 llvm_cv_os_type="Cygwin"
2247 llvm_cv_platform_type="Unix" ;;
2248 *-*-darwin*)
2249 llvm_cv_link_all_option="-Wl,-all_load"
2250 llvm_cv_link_all_option="-Wl,-noall_load"
2251 llvm_cv_os_type="Darwin"
2252 llvm_cv_platform_type="Unix" ;;
2253 *-*-freebsd*)
2254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256 llvm_cv_os_type="FreeBSD"
2257 llvm_cv_platform_type="Unix" ;;
2258 *-*-openbsd*)
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="OpenBSD"
2262 llvm_cv_platform_type="Unix" ;;
2263 *-*-netbsd*)
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="NetBSD"
2267 llvm_cv_platform_type="Unix" ;;
2268 *-*-hpux*)
2269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2271 llvm_cv_os_type="HP-UX"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-interix*)
2274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2276 llvm_cv_os_type="Interix"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-linux*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="Linux"
2282 llvm_cv_platform_type="Unix" ;;
2283 *-*-solaris*)
2284 llvm_cv_link_all_option="-Wl,-z,allextract"
2285 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2286 llvm_cv_os_type="SunOS"
2287 llvm_cv_platform_type="Unix" ;;
2288 *-*-win32*)
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="Win32"
2292 llvm_cv_platform_type="Win32" ;;
2293 *-*-mingw*)
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="MingW"
2297 llvm_cv_platform_type="Win32" ;;
2299 llvm_cv_link_all_option=""
2300 llvm_cv_no_link_all_option=""
2301 llvm_cv_os_type="Unknown"
2302 llvm_cv_platform_type="Unknown" ;;
2303 esac
2305 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2306 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2308 if test "$llvm_cv_os_type" = "Unknown" ; then
2309 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2310 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2311 { (exit 1); exit 1; }; }
2314 OS=$llvm_cv_os_type
2317 LINKALL=$llvm_cv_link_all_option
2319 NOLINKALL=$llvm_cv_no_link_all_option
2322 case $llvm_cv_platform_type in
2323 Unix)
2325 cat >>confdefs.h <<\_ACEOF
2326 #define LLVM_ON_UNIX 1
2327 _ACEOF
2329 LLVM_ON_UNIX=1
2331 LLVM_ON_WIN32=0
2334 Win32)
2336 cat >>confdefs.h <<\_ACEOF
2337 #define LLVM_ON_WIN32 1
2338 _ACEOF
2340 LLVM_ON_UNIX=0
2342 LLVM_ON_WIN32=1
2345 esac
2347 { echo "$as_me:$LINENO: checking target architecture" >&5
2348 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2349 if test "${llvm_cv_target_arch+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352 case $target in
2353 i?86-*) llvm_cv_target_arch="x86" ;;
2354 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2355 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2356 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2357 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2358 ia64-*) llvm_cv_target_arch="IA64" ;;
2359 arm-*) llvm_cv_target_arch="ARM" ;;
2360 *) llvm_cv_target_arch="Unknown" ;;
2361 esac
2363 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2364 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2366 if test "$llvm_cv_target_arch" = "Unknown" ; then
2367 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2368 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2371 ARCH=$llvm_cv_target_arch
2374 ac_ext=c
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2381 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 else
2387 if test -n "$CC"; then
2388 ac_cv_prog_CC="$CC" # Let the user override the test.
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2399 break 2
2401 done
2402 done
2403 IFS=$as_save_IFS
2407 CC=$ac_cv_prog_CC
2408 if test -n "$CC"; then
2409 { echo "$as_me:$LINENO: result: $CC" >&5
2410 echo "${ECHO_T}$CC" >&6; }
2411 else
2412 { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2418 if test -z "$ac_cv_prog_CC"; then
2419 ac_ct_CC=$CC
2420 # Extract the first word of "gcc", so it can be a program name with args.
2421 set dummy gcc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 if test -n "$ac_ct_CC"; then
2428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_ac_ct_CC="gcc"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2441 done
2442 done
2443 IFS=$as_save_IFS
2447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2448 if test -n "$ac_ct_CC"; then
2449 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2450 echo "${ECHO_T}$ac_ct_CC" >&6; }
2451 else
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2456 if test "x$ac_ct_CC" = x; then
2457 CC=""
2458 else
2459 case $cross_compiling:$ac_tool_warned in
2460 yes:)
2461 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2462 whose name does not start with the host triplet. If you think this
2463 configuration is useful to you, please write to autoconf@gnu.org." >&5
2464 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2465 whose name does not start with the host triplet. If you think this
2466 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2467 ac_tool_warned=yes ;;
2468 esac
2469 CC=$ac_ct_CC
2471 else
2472 CC="$ac_cv_prog_CC"
2475 if test -z "$CC"; then
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}cc; ac_word=$2
2479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2481 if test "${ac_cv_prog_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_CC="${ac_tool_prefix}cc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2498 done
2499 done
2500 IFS=$as_save_IFS
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506 { echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6; }
2508 else
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2516 if test -z "$CC"; then
2517 # Extract the first word of "cc", so it can be a program name with args.
2518 set dummy cc; ac_word=$2
2519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521 if test "${ac_cv_prog_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2526 else
2527 ac_prog_rejected=no
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2536 ac_prog_rejected=yes
2537 continue
2539 ac_cv_prog_CC="cc"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2543 done
2544 done
2545 IFS=$as_save_IFS
2547 if test $ac_prog_rejected = yes; then
2548 # We found a bogon in the path, so make sure we never use it.
2549 set dummy $ac_cv_prog_CC
2550 shift
2551 if test $# != 0; then
2552 # We chose a different compiler from the bogus one.
2553 # However, it has the same basename, so the bogon will be chosen
2554 # first if we set CC to just the basename; use the full file name.
2555 shift
2556 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2561 CC=$ac_cv_prog_CC
2562 if test -n "$CC"; then
2563 { echo "$as_me:$LINENO: result: $CC" >&5
2564 echo "${ECHO_T}$CC" >&6; }
2565 else
2566 { echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6; }
2572 if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
2574 for ac_prog in cl.exe
2576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2597 done
2598 done
2599 IFS=$as_save_IFS
2603 CC=$ac_cv_prog_CC
2604 if test -n "$CC"; then
2605 { echo "$as_me:$LINENO: result: $CC" >&5
2606 echo "${ECHO_T}$CC" >&6; }
2607 else
2608 { echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6; }
2613 test -n "$CC" && break
2614 done
2616 if test -z "$CC"; then
2617 ac_ct_CC=$CC
2618 for ac_prog in cl.exe
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627 if test -n "$ac_ct_CC"; then
2628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_ac_ct_CC="$ac_prog"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2641 done
2642 done
2643 IFS=$as_save_IFS
2647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648 if test -n "$ac_ct_CC"; then
2649 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2650 echo "${ECHO_T}$ac_ct_CC" >&6; }
2651 else
2652 { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2657 test -n "$ac_ct_CC" && break
2658 done
2660 if test "x$ac_ct_CC" = x; then
2661 CC=""
2662 else
2663 case $cross_compiling:$ac_tool_warned in
2664 yes:)
2665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet. If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&5
2668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet. If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2671 ac_tool_warned=yes ;;
2672 esac
2673 CC=$ac_ct_CC
2680 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2681 See \`config.log' for more details." >&5
2682 echo "$as_me: error: no acceptable C compiler found in \$PATH
2683 See \`config.log' for more details." >&2;}
2684 { (exit 1); exit 1; }; }
2686 # Provide some information about the compiler.
2687 echo "$as_me:$LINENO: checking for C compiler version" >&5
2688 ac_compiler=`set X $ac_compile; echo $2`
2689 { (ac_try="$ac_compiler --version >&5"
2690 case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compiler --version >&5") 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699 { (ac_try="$ac_compiler -v >&5"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compiler -v >&5") 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }
2709 { (ac_try="$ac_compiler -V >&5"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compiler -V >&5") 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }
2720 cat >conftest.$ac_ext <<_ACEOF
2721 /* confdefs.h. */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2728 main ()
2732 return 0;
2734 _ACEOF
2735 ac_clean_files_save=$ac_clean_files
2736 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2737 # Try to create an executable without -o first, disregard a.out.
2738 # It will help us diagnose broken compilers, and finding out an intuition
2739 # of exeext.
2740 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2741 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2742 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2744 # List of possible output files, starting from the most likely.
2745 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2746 # only as a last resort. b.out is created by i960 compilers.
2747 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2749 # The IRIX 6 linker writes into existing files which may not be
2750 # executable, retaining their permissions. Remove them first so a
2751 # subsequent execution test works.
2752 ac_rmfiles=
2753 for ac_file in $ac_files
2755 case $ac_file in
2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2757 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2758 esac
2759 done
2760 rm -f $ac_rmfiles
2762 if { (ac_try="$ac_link_default"
2763 case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766 esac
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_link_default") 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; then
2772 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2773 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2774 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2775 # so that the user can short-circuit this test for compilers unknown to
2776 # Autoconf.
2777 for ac_file in $ac_files
2779 test -f "$ac_file" || continue
2780 case $ac_file in
2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2783 [ab].out )
2784 # We found the default executable, but exeext='' is most
2785 # certainly right.
2786 break;;
2787 *.* )
2788 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2789 then :; else
2790 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2792 # We set ac_cv_exeext here because the later test for it is not
2793 # safe: cross compilers may not add the suffix if given an `-o'
2794 # argument, so we may need to know it at that point already.
2795 # Even if this section looks crufty: it has the advantage of
2796 # actually working.
2797 break;;
2799 break;;
2800 esac
2801 done
2802 test "$ac_cv_exeext" = no && ac_cv_exeext=
2804 else
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2808 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2809 See \`config.log' for more details." >&5
2810 echo "$as_me: error: C compiler cannot create executables
2811 See \`config.log' for more details." >&2;}
2812 { (exit 77); exit 77; }; }
2815 ac_exeext=$ac_cv_exeext
2816 { echo "$as_me:$LINENO: result: $ac_file" >&5
2817 echo "${ECHO_T}$ac_file" >&6; }
2819 # Check that the compiler produces executables we can run. If not, either
2820 # the compiler is broken, or we cross compile.
2821 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2822 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2823 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2824 # If not cross compiling, check that we can run a simple program.
2825 if test "$cross_compiling" != yes; then
2826 if { ac_try='./$ac_file'
2827 { (case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2830 esac
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_try") 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2836 cross_compiling=no
2837 else
2838 if test "$cross_compiling" = maybe; then
2839 cross_compiling=yes
2840 else
2841 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2842 If you meant to cross compile, use \`--host'.
2843 See \`config.log' for more details." >&5
2844 echo "$as_me: error: cannot run C compiled programs.
2845 If you meant to cross compile, use \`--host'.
2846 See \`config.log' for more details." >&2;}
2847 { (exit 1); exit 1; }; }
2851 { echo "$as_me:$LINENO: result: yes" >&5
2852 echo "${ECHO_T}yes" >&6; }
2854 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2855 ac_clean_files=$ac_clean_files_save
2856 # Check that the compiler produces executables we can run. If not, either
2857 # the compiler is broken, or we cross compile.
2858 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2859 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2860 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2861 echo "${ECHO_T}$cross_compiling" >&6; }
2863 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2864 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2865 if { (ac_try="$ac_link"
2866 case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869 esac
2870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871 (eval "$ac_link") 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; then
2875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2876 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2877 # work properly (i.e., refer to `conftest.exe'), while it won't with
2878 # `rm'.
2879 for ac_file in conftest.exe conftest conftest.*; do
2880 test -f "$ac_file" || continue
2881 case $ac_file in
2882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2884 break;;
2885 * ) break;;
2886 esac
2887 done
2888 else
2889 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2892 See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2896 rm -f conftest$ac_cv_exeext
2897 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2898 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2900 rm -f conftest.$ac_ext
2901 EXEEXT=$ac_cv_exeext
2902 ac_exeext=$EXEEXT
2903 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2904 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2905 if test "${ac_cv_objext+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h. */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2916 main ()
2920 return 0;
2922 _ACEOF
2923 rm -f conftest.o conftest.obj
2924 if { (ac_try="$ac_compile"
2925 case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_compile") 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
2934 for ac_file in conftest.o conftest.obj conftest.*; do
2935 test -f "$ac_file" || continue;
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2939 break;;
2940 esac
2941 done
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2947 See \`config.log' for more details." >&5
2948 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2949 See \`config.log' for more details." >&2;}
2950 { (exit 1); exit 1; }; }
2953 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2956 echo "${ECHO_T}$ac_cv_objext" >&6; }
2957 OBJEXT=$ac_cv_objext
2958 ac_objext=$OBJEXT
2959 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2960 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2961 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2972 main ()
2974 #ifndef __GNUC__
2975 choke me
2976 #endif
2979 return 0;
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (ac_try="$ac_compile"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2997 { (case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_try") 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_try") 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3016 ac_compiler_gnu=yes
3017 else
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3021 ac_compiler_gnu=no
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3028 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3029 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3030 GCC=`test $ac_compiler_gnu = yes && echo yes`
3031 ac_test_CFLAGS=${CFLAGS+set}
3032 ac_save_CFLAGS=$CFLAGS
3033 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3034 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3035 if test "${ac_cv_prog_cc_g+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038 ac_save_c_werror_flag=$ac_c_werror_flag
3039 ac_c_werror_flag=yes
3040 ac_cv_prog_cc_g=no
3041 CFLAGS="-g"
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h. */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3050 main ()
3054 return 0;
3056 _ACEOF
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3059 case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3072 { (case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_try") 2>&5
3078 ac_status=$?
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 ac_cv_prog_cc_g=yes
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 CFLAGS=""
3097 cat >conftest.$ac_ext <<_ACEOF
3098 /* confdefs.h. */
3099 _ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3105 main ()
3109 return 0;
3111 _ACEOF
3112 rm -f conftest.$ac_objext
3113 if { (ac_try="$ac_compile"
3114 case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3147 else
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3151 ac_c_werror_flag=$ac_save_c_werror_flag
3152 CFLAGS="-g"
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3161 main ()
3165 return 0;
3167 _ACEOF
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 ac_cv_prog_cc_g=yes
3203 else
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_c_werror_flag=$ac_save_c_werror_flag
3219 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3220 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3221 if test "$ac_test_CFLAGS" = set; then
3222 CFLAGS=$ac_save_CFLAGS
3223 elif test $ac_cv_prog_cc_g = yes; then
3224 if test "$GCC" = yes; then
3225 CFLAGS="-g -O2"
3226 else
3227 CFLAGS="-g"
3229 else
3230 if test "$GCC" = yes; then
3231 CFLAGS="-O2"
3232 else
3233 CFLAGS=
3236 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3237 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3238 if test "${ac_cv_prog_cc_c89+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241 ac_cv_prog_cc_c89=no
3242 ac_save_CC=$CC
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h. */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3249 #include <stdarg.h>
3250 #include <stdio.h>
3251 #include <sys/types.h>
3252 #include <sys/stat.h>
3253 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3254 struct buf { int x; };
3255 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3256 static char *e (p, i)
3257 char **p;
3258 int i;
3260 return p[i];
3262 static char *f (char * (*g) (char **, int), char **p, ...)
3264 char *s;
3265 va_list v;
3266 va_start (v,p);
3267 s = g (p, va_arg (v,int));
3268 va_end (v);
3269 return s;
3272 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3273 function prototypes and stuff, but not '\xHH' hex character constants.
3274 These don't provoke an error unfortunately, instead are silently treated
3275 as 'x'. The following induces an error, until -std is added to get
3276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3277 array size at least. It's necessary to write '\x00'==0 to get something
3278 that's true only with -std. */
3279 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3281 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3282 inside strings and character constants. */
3283 #define FOO(x) 'x'
3284 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3286 int test (int i, double x);
3287 struct s1 {int (*f) (int a);};
3288 struct s2 {int (*f) (double a);};
3289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3290 int argc;
3291 char **argv;
3293 main ()
3295 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3297 return 0;
3299 _ACEOF
3300 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3303 CC="$ac_save_CC $ac_arg"
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3306 case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309 esac
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3312 ac_status=$?
3313 grep -v '^ *+' conftest.er1 >conftest.err
3314 rm -f conftest.er1
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3319 { (case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_try") 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_try") 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3338 ac_cv_prog_cc_c89=$ac_arg
3339 else
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3346 rm -f core conftest.err conftest.$ac_objext
3347 test "x$ac_cv_prog_cc_c89" != "xno" && break
3348 done
3349 rm -f conftest.$ac_ext
3350 CC=$ac_save_CC
3353 # AC_CACHE_VAL
3354 case "x$ac_cv_prog_cc_c89" in
3356 { echo "$as_me:$LINENO: result: none needed" >&5
3357 echo "${ECHO_T}none needed" >&6; } ;;
3358 xno)
3359 { echo "$as_me:$LINENO: result: unsupported" >&5
3360 echo "${ECHO_T}unsupported" >&6; } ;;
3362 CC="$CC $ac_cv_prog_cc_c89"
3363 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3364 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3365 esac
3368 ac_ext=c
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 ac_ext=c
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3381 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3382 # On Suns, sometimes $CPP names a directory.
3383 if test -n "$CPP" && test -d "$CPP"; then
3384 CPP=
3386 if test -z "$CPP"; then
3387 if test "${ac_cv_prog_CPP+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390 # Double quotes because CPP needs to be expanded
3391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3393 ac_preproc_ok=false
3394 for ac_c_preproc_warn_flag in '' yes
3396 # Use a header file that comes with gcc, so configuring glibc
3397 # with a fresh cross-compiler works.
3398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 # <limits.h> exists even on freestanding compilers.
3400 # On the NeXT, cc -E runs the code through the compiler's parser,
3401 # not just through cpp. "Syntax error" is here to catch this case.
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 #ifdef __STDC__
3409 # include <limits.h>
3410 #else
3411 # include <assert.h>
3412 #endif
3413 Syntax error
3414 _ACEOF
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422 ac_status=$?
3423 grep -v '^ *+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_c_preproc_warn_flag
3430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3431 else
3432 ac_cpp_err=
3434 else
3435 ac_cpp_err=yes
3437 if test -z "$ac_cpp_err"; then
3439 else
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 # Broken: fails on valid input.
3444 continue
3447 rm -f conftest.err conftest.$ac_ext
3449 # OK, works on sane cases. Now check whether nonexistent headers
3450 # can be detected and how.
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #include <ac_nonexistent.h>
3458 _ACEOF
3459 if { (ac_try="$ac_cpp conftest.$ac_ext"
3460 case "(($ac_try" in
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3463 esac
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3466 ac_status=$?
3467 grep -v '^ *+' conftest.er1 >conftest.err
3468 rm -f conftest.er1
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } >/dev/null; then
3472 if test -s conftest.err; then
3473 ac_cpp_err=$ac_c_preproc_warn_flag
3474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3475 else
3476 ac_cpp_err=
3478 else
3479 ac_cpp_err=yes
3481 if test -z "$ac_cpp_err"; then
3482 # Broken: success on invalid input.
3483 continue
3484 else
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 # Passes both tests.
3489 ac_preproc_ok=:
3490 break
3493 rm -f conftest.err conftest.$ac_ext
3495 done
3496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497 rm -f conftest.err conftest.$ac_ext
3498 if $ac_preproc_ok; then
3499 break
3502 done
3503 ac_cv_prog_CPP=$CPP
3506 CPP=$ac_cv_prog_CPP
3507 else
3508 ac_cv_prog_CPP=$CPP
3510 { echo "$as_me:$LINENO: result: $CPP" >&5
3511 echo "${ECHO_T}$CPP" >&6; }
3512 ac_preproc_ok=false
3513 for ac_c_preproc_warn_flag in '' yes
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518 # <limits.h> exists even on freestanding compilers.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #ifdef __STDC__
3528 # include <limits.h>
3529 #else
3530 # include <assert.h>
3531 #endif
3532 Syntax error
3533 _ACEOF
3534 if { (ac_try="$ac_cpp conftest.$ac_ext"
3535 case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538 esac
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3541 ac_status=$?
3542 grep -v '^ *+' conftest.er1 >conftest.err
3543 rm -f conftest.er1
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } >/dev/null; then
3547 if test -s conftest.err; then
3548 ac_cpp_err=$ac_c_preproc_warn_flag
3549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3550 else
3551 ac_cpp_err=
3553 else
3554 ac_cpp_err=yes
3556 if test -z "$ac_cpp_err"; then
3558 else
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 # Broken: fails on valid input.
3563 continue
3566 rm -f conftest.err conftest.$ac_ext
3568 # OK, works on sane cases. Now check whether nonexistent headers
3569 # can be detected and how.
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #include <ac_nonexistent.h>
3577 _ACEOF
3578 if { (ac_try="$ac_cpp conftest.$ac_ext"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } >/dev/null; then
3591 if test -s conftest.err; then
3592 ac_cpp_err=$ac_c_preproc_warn_flag
3593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3594 else
3595 ac_cpp_err=
3597 else
3598 ac_cpp_err=yes
3600 if test -z "$ac_cpp_err"; then
3601 # Broken: success on invalid input.
3602 continue
3603 else
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 # Passes both tests.
3608 ac_preproc_ok=:
3609 break
3612 rm -f conftest.err conftest.$ac_ext
3614 done
3615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3616 rm -f conftest.err conftest.$ac_ext
3617 if $ac_preproc_ok; then
3619 else
3620 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3621 See \`config.log' for more details." >&5
3622 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3623 See \`config.log' for more details." >&2;}
3624 { (exit 1); exit 1; }; }
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3635 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3636 if test "${ac_cv_path_GREP+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639 # Extract the first word of "grep ggrep" to use in msg output
3640 if test -z "$GREP"; then
3641 set dummy grep ggrep; ac_prog_name=$2
3642 if test "${ac_cv_path_GREP+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645 ac_path_GREP_found=false
3646 # Loop through the user's path and test for each of PROGNAME-LIST
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_prog in grep ggrep; do
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3655 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3656 # Check for GNU ac_path_GREP and select it if it is found.
3657 # Check for GNU $ac_path_GREP
3658 case `"$ac_path_GREP" --version 2>&1` in
3659 *GNU*)
3660 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3662 ac_count=0
3663 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3664 while :
3666 cat "conftest.in" "conftest.in" >"conftest.tmp"
3667 mv "conftest.tmp" "conftest.in"
3668 cp "conftest.in" "conftest.nl"
3669 echo 'GREP' >> "conftest.nl"
3670 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3672 ac_count=`expr $ac_count + 1`
3673 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3674 # Best one so far, save it but keep looking for a better one
3675 ac_cv_path_GREP="$ac_path_GREP"
3676 ac_path_GREP_max=$ac_count
3678 # 10*(2^10) chars as input seems more than enough
3679 test $ac_count -gt 10 && break
3680 done
3681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3682 esac
3685 $ac_path_GREP_found && break 3
3686 done
3687 done
3689 done
3690 IFS=$as_save_IFS
3695 GREP="$ac_cv_path_GREP"
3696 if test -z "$GREP"; then
3697 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3698 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3699 { (exit 1); exit 1; }; }
3702 else
3703 ac_cv_path_GREP=$GREP
3708 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3709 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3710 GREP="$ac_cv_path_GREP"
3713 { echo "$as_me:$LINENO: checking for egrep" >&5
3714 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3715 if test "${ac_cv_path_EGREP+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3719 then ac_cv_path_EGREP="$GREP -E"
3720 else
3721 # Extract the first word of "egrep" to use in msg output
3722 if test -z "$EGREP"; then
3723 set dummy egrep; ac_prog_name=$2
3724 if test "${ac_cv_path_EGREP+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 ac_path_EGREP_found=false
3728 # Loop through the user's path and test for each of PROGNAME-LIST
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_prog in egrep; do
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3737 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3738 # Check for GNU ac_path_EGREP and select it if it is found.
3739 # Check for GNU $ac_path_EGREP
3740 case `"$ac_path_EGREP" --version 2>&1` in
3741 *GNU*)
3742 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3744 ac_count=0
3745 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3746 while :
3748 cat "conftest.in" "conftest.in" >"conftest.tmp"
3749 mv "conftest.tmp" "conftest.in"
3750 cp "conftest.in" "conftest.nl"
3751 echo 'EGREP' >> "conftest.nl"
3752 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3754 ac_count=`expr $ac_count + 1`
3755 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3756 # Best one so far, save it but keep looking for a better one
3757 ac_cv_path_EGREP="$ac_path_EGREP"
3758 ac_path_EGREP_max=$ac_count
3760 # 10*(2^10) chars as input seems more than enough
3761 test $ac_count -gt 10 && break
3762 done
3763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3764 esac
3767 $ac_path_EGREP_found && break 3
3768 done
3769 done
3771 done
3772 IFS=$as_save_IFS
3777 EGREP="$ac_cv_path_EGREP"
3778 if test -z "$EGREP"; then
3779 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3780 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3781 { (exit 1); exit 1; }; }
3784 else
3785 ac_cv_path_EGREP=$EGREP
3791 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3792 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3793 EGREP="$ac_cv_path_EGREP"
3796 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3797 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3798 if test "${ac_cv_header_stdc+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801 cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h. */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 #include <stdlib.h>
3808 #include <stdarg.h>
3809 #include <string.h>
3810 #include <float.h>
3813 main ()
3817 return 0;
3819 _ACEOF
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compile") 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3835 { (case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_try") 2>&5
3841 ac_status=$?
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_try") 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 ac_cv_header_stdc=yes
3855 else
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 ac_cv_header_stdc=no
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 if test $ac_cv_header_stdc = yes; then
3865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3866 cat >conftest.$ac_ext <<_ACEOF
3867 /* confdefs.h. */
3868 _ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3872 #include <string.h>
3874 _ACEOF
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876 $EGREP "memchr" >/dev/null 2>&1; then
3878 else
3879 ac_cv_header_stdc=no
3881 rm -f conftest*
3885 if test $ac_cv_header_stdc = yes; then
3886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 #include <stdlib.h>
3895 _ACEOF
3896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3897 $EGREP "free" >/dev/null 2>&1; then
3899 else
3900 ac_cv_header_stdc=no
3902 rm -f conftest*
3906 if test $ac_cv_header_stdc = yes; then
3907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3908 if test "$cross_compiling" = yes; then
3910 else
3911 cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h. */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3917 #include <ctype.h>
3918 #include <stdlib.h>
3919 #if ((' ' & 0x0FF) == 0x020)
3920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3922 #else
3923 # define ISLOWER(c) \
3924 (('a' <= (c) && (c) <= 'i') \
3925 || ('j' <= (c) && (c) <= 'r') \
3926 || ('s' <= (c) && (c) <= 'z'))
3927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3928 #endif
3930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3932 main ()
3934 int i;
3935 for (i = 0; i < 256; i++)
3936 if (XOR (islower (i), ISLOWER (i))
3937 || toupper (i) != TOUPPER (i))
3938 return 2;
3939 return 0;
3941 _ACEOF
3942 rm -f conftest$ac_exeext
3943 if { (ac_try="$ac_link"
3944 case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_link") 2>&5
3950 ac_status=$?
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3953 { (case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_try") 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3963 else
3964 echo "$as_me: program exited with status $ac_status" >&5
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3968 ( exit $ac_status )
3969 ac_cv_header_stdc=no
3971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3977 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3978 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3979 if test $ac_cv_header_stdc = yes; then
3981 cat >>confdefs.h <<\_ACEOF
3982 #define STDC_HEADERS 1
3983 _ACEOF
3987 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3997 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3998 inttypes.h stdint.h unistd.h
4000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 $ac_includes_default
4014 #include <$ac_header>
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (ac_try="$ac_compile"
4018 case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021 esac
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023 (eval "$ac_compile") 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4031 { (case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_try") 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; } &&
4040 { ac_try='test -s conftest.$ac_objext'
4041 { (case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044 esac
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_try") 2>&5
4047 ac_status=$?
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 eval "$as_ac_Header=yes"
4051 else
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4055 eval "$as_ac_Header=no"
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_res=`eval echo '${'$as_ac_Header'}'`
4061 { echo "$as_me:$LINENO: result: $ac_res" >&5
4062 echo "${ECHO_T}$ac_res" >&6; }
4063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4064 cat >>confdefs.h <<_ACEOF
4065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4066 _ACEOF
4070 done
4073 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4074 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4075 if test "${ac_cv_c_bigendian+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078 # See if sys/param.h defines the BYTE_ORDER macro.
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 #include <sys/types.h>
4086 #include <sys/param.h>
4089 main ()
4091 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4092 bogus endian macros
4093 #endif
4096 return 0;
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_compile") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4114 { (case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_try") 2>&5
4120 ac_status=$?
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127 esac
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_try") 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 # It does; now see whether it defined to BIG_ENDIAN or not.
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <sys/types.h>
4141 #include <sys/param.h>
4144 main ()
4146 #if BYTE_ORDER != BIG_ENDIAN
4147 not big endian
4148 #endif
4151 return 0;
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4156 case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182 esac
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 ac_cv_c_bigendian=yes
4189 else
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4193 ac_cv_c_bigendian=no
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 else
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 # It does not; compile a test program.
4202 if test "$cross_compiling" = yes; then
4203 # try to guess the endianness by grepping values into an object file
4204 ac_cv_c_bigendian=unknown
4205 cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h. */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4212 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4213 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4214 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4215 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4216 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4218 main ()
4220 _ascii (); _ebcdic ();
4222 return 0;
4224 _ACEOF
4225 rm -f conftest.$ac_objext
4226 if { (ac_try="$ac_compile"
4227 case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_compile") 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4240 { (case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243 esac
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_try") 2>&5
4246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253 esac
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_try") 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4260 ac_cv_c_bigendian=yes
4262 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4263 if test "$ac_cv_c_bigendian" = unknown; then
4264 ac_cv_c_bigendian=no
4265 else
4266 # finding both strings is unlikely to happen, but who knows?
4267 ac_cv_c_bigendian=unknown
4270 else
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278 else
4279 cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h. */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4285 $ac_includes_default
4287 main ()
4290 /* Are we little or big endian? From Harbison&Steele. */
4291 union
4293 long int l;
4294 char c[sizeof (long int)];
4295 } u;
4296 u.l = 1;
4297 return u.c[sizeof (long int) - 1] == 1;
4300 return 0;
4302 _ACEOF
4303 rm -f conftest$ac_exeext
4304 if { (ac_try="$ac_link"
4305 case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_link") 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317 esac
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 ac_cv_c_bigendian=no
4324 else
4325 echo "$as_me: program exited with status $ac_status" >&5
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 ( exit $ac_status )
4330 ac_cv_c_bigendian=yes
4332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4341 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4342 case $ac_cv_c_bigendian in
4343 yes)
4344 ENDIAN=big
4347 ENDIAN=little
4350 { { echo "$as_me:$LINENO: error: unknown endianness
4351 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4352 echo "$as_me: error: unknown endianness
4353 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4354 { (exit 1); exit 1; }; } ;;
4355 esac
4358 if test "$cross_compiling" = yes; then
4359 LLVM_CROSS_COMPILING=1
4362 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4363 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4364 if test "${ac_cv_build_exeext+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4368 ac_cv_build_exeext=.exe
4369 else
4370 ac_build_prefix=${build_alias}-
4372 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4373 set dummy ${ac_build_prefix}gcc; ac_word=$2
4374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 if test -n "$BUILD_CC"; then
4380 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4393 done
4394 done
4395 IFS=$as_save_IFS
4399 BUILD_CC=$ac_cv_prog_BUILD_CC
4400 if test -n "$BUILD_CC"; then
4401 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4402 echo "${ECHO_T}$BUILD_CC" >&6; }
4403 else
4404 { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4409 if test -z "$BUILD_CC"; then
4410 # Extract the first word of "gcc", so it can be a program name with args.
4411 set dummy gcc; ac_word=$2
4412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 if test -n "$BUILD_CC"; then
4418 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4427 ac_cv_prog_BUILD_CC="gcc"
4428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429 break 2
4431 done
4432 done
4433 IFS=$as_save_IFS
4437 BUILD_CC=$ac_cv_prog_BUILD_CC
4438 if test -n "$BUILD_CC"; then
4439 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4440 echo "${ECHO_T}$BUILD_CC" >&6; }
4441 else
4442 { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4447 if test -z "$BUILD_CC"; then
4448 # Extract the first word of "cc", so it can be a program name with args.
4449 set dummy cc; ac_word=$2
4450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4452 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455 if test -n "$BUILD_CC"; then
4456 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4457 else
4458 ac_prog_rejected=no
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4467 ac_prog_rejected=yes
4468 continue
4470 ac_cv_prog_BUILD_CC="cc"
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4474 done
4475 done
4476 IFS=$as_save_IFS
4478 if test $ac_prog_rejected = yes; then
4479 # We found a bogon in the path, so make sure we never use it.
4480 set dummy $ac_cv_prog_BUILD_CC
4481 shift
4482 if test $# != 0; then
4483 # We chose a different compiler from the bogus one.
4484 # However, it has the same basename, so the bogon will be chosen
4485 # first if we set BUILD_CC to just the basename; use the full file name.
4486 shift
4487 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4492 BUILD_CC=$ac_cv_prog_BUILD_CC
4493 if test -n "$BUILD_CC"; then
4494 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4495 echo "${ECHO_T}$BUILD_CC" >&6; }
4496 else
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4504 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4505 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4506 { (exit 1); exit 1; }; }
4507 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4508 rm -f conftest*
4509 echo 'int main () { return 0; }' > conftest.$ac_ext
4510 ac_cv_build_exeext=
4511 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4512 (eval $ac_build_link) 2>&5
4513 ac_status=$?
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; then
4516 for file in conftest.*; do
4517 case $file in
4518 *.c | *.o | *.obj) ;;
4519 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4520 esac
4521 done
4522 else
4523 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4524 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4525 { (exit 1); exit 1; }; }
4527 rm -f conftest*
4528 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4532 BUILD_EXEEXT=""
4533 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4534 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4535 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4536 ac_build_exeext=$BUILD_EXEEXT
4538 else
4539 LLVM_CROSS_COMPILING=0
4543 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4544 cvsbuild="yes"
4545 optimize="no"
4546 CVSBUILD=CVSBUILD=1
4548 else
4549 cvsbuild="no"
4550 optimize="yes"
4554 # Check whether --enable-optimized was given.
4555 if test "${enable_optimized+set}" = set; then
4556 enableval=$enable_optimized;
4557 else
4558 enableval=$optimize
4561 if test ${enableval} = "no" ; then
4562 ENABLE_OPTIMIZED=
4564 else
4565 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4569 # Check whether --enable-assertions was given.
4570 if test "${enable_assertions+set}" = set; then
4571 enableval=$enable_assertions;
4572 else
4573 enableval="yes"
4576 if test ${enableval} = "yes" ; then
4577 DISABLE_ASSERTIONS=
4579 else
4580 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4584 # Check whether --enable-expensive-checks was given.
4585 if test "${enable_expensive_checks+set}" = set; then
4586 enableval=$enable_expensive_checks;
4587 else
4588 enableval="no"
4591 if test ${enableval} = "yes" ; then
4592 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4594 EXPENSIVE_CHECKS=yes
4596 else
4597 ENABLE_EXPENSIVE_CHECKS=
4599 EXPENSIVE_CHECKS=no
4603 # Check whether --enable-debug-runtime was given.
4604 if test "${enable_debug_runtime+set}" = set; then
4605 enableval=$enable_debug_runtime;
4606 else
4607 enableval=no
4610 if test ${enableval} = "no" ; then
4611 DEBUG_RUNTIME=
4613 else
4614 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4618 # Check whether --enable-jit was given.
4619 if test "${enable_jit+set}" = set; then
4620 enableval=$enable_jit;
4621 else
4622 enableval=default
4625 if test ${enableval} = "no"
4626 then
4627 JIT=
4629 else
4630 case "$llvm_cv_target_arch" in
4631 x86) TARGET_HAS_JIT=1
4633 Sparc) TARGET_HAS_JIT=0
4635 PowerPC) TARGET_HAS_JIT=1
4637 x86_64) TARGET_HAS_JIT=1
4639 Alpha) TARGET_HAS_JIT=1
4641 IA64) TARGET_HAS_JIT=0
4643 ARM) TARGET_HAS_JIT=0
4645 *) TARGET_HAS_JIT=0
4647 esac
4650 # Check whether --enable-doxygen was given.
4651 if test "${enable_doxygen+set}" = set; then
4652 enableval=$enable_doxygen;
4653 else
4654 enableval=default
4657 case "$enableval" in
4658 yes) ENABLE_DOXYGEN=1
4660 no) ENABLE_DOXYGEN=0
4662 default) ENABLE_DOXYGEN=0
4664 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4665 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4666 { (exit 1); exit 1; }; } ;;
4667 esac
4669 # Check whether --enable-threads was given.
4670 if test "${enable_threads+set}" = set; then
4671 enableval=$enable_threads;
4672 else
4673 enableval=default
4676 case "$enableval" in
4677 yes) ENABLE_THREADS=1
4679 no) ENABLE_THREADS=0
4681 default) ENABLE_THREADS=1
4683 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4684 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4685 { (exit 1); exit 1; }; } ;;
4686 esac
4688 cat >>confdefs.h <<_ACEOF
4689 #define ENABLE_THREADS $ENABLE_THREADS
4690 _ACEOF
4693 # Check whether --enable-pic was given.
4694 if test "${enable_pic+set}" = set; then
4695 enableval=$enable_pic;
4696 else
4697 enableval=default
4700 case "$enableval" in
4701 yes) ENABLE_PIC=1
4703 no) ENABLE_PIC=0
4705 default) ENABLE_PIC=0
4707 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4708 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4709 { (exit 1); exit 1; }; } ;;
4710 esac
4712 cat >>confdefs.h <<_ACEOF
4713 #define ENABLE_PIC $ENABLE_PIC
4714 _ACEOF
4717 TARGETS_TO_BUILD=""
4718 # Check whether --enable-targets was given.
4719 if test "${enable_targets+set}" = set; then
4720 enableval=$enable_targets;
4721 else
4722 enableval=all
4725 case "$enableval" in
4726 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4727 host-only)
4728 case "$llvm_cv_target_arch" in
4729 x86) TARGETS_TO_BUILD="X86" ;;
4730 x86_64) TARGETS_TO_BUILD="X86" ;;
4731 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4732 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4733 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4734 IA64) TARGETS_TO_BUILD="IA64" ;;
4735 ARM) TARGETS_TO_BUILD="ARM" ;;
4736 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4737 echo "$as_me: error: Can not set target to build" >&2;}
4738 { (exit 1); exit 1; }; } ;;
4739 esac
4741 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4742 case "$a_target" in
4743 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4744 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4745 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4746 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4747 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4748 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4749 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4750 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4751 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4752 { (exit 1); exit 1; }; } ;;
4753 esac
4754 done
4756 esac
4757 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4758 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4761 # Check whether --enable-cbe-printf-a was given.
4762 if test "${enable_cbe_printf_a+set}" = set; then
4763 enableval=$enable_cbe_printf_a;
4764 else
4765 enableval=default
4768 case "$enableval" in
4769 yes) ENABLE_CBE_PRINTF_A=1
4771 no) ENABLE_CBE_PRINTF_A=0
4773 default) ENABLE_CBE_PRINTF_A=1
4775 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4776 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4777 { (exit 1); exit 1; }; } ;;
4778 esac
4780 cat >>confdefs.h <<_ACEOF
4781 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4782 _ACEOF
4786 # Check whether --with-llvmgccdir was given.
4787 if test "${with_llvmgccdir+set}" = set; then
4788 withval=$with_llvmgccdir;
4789 else
4790 withval=default
4793 case "$withval" in
4794 default) WITH_LLVMGCCDIR=default ;;
4795 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4796 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4797 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4798 { (exit 1); exit 1; }; } ;;
4799 esac
4802 # Check whether --with-extra-options was given.
4803 if test "${with_extra_options+set}" = set; then
4804 withval=$with_extra_options;
4805 else
4806 withval=default
4809 case "$withval" in
4810 default) EXTRA_OPTIONS= ;;
4811 *) EXTRA_OPTIONS=$withval ;;
4812 esac
4813 EXTRA_OPTIONS=$EXTRA_OPTIONS
4817 ac_ext=c
4818 ac_cpp='$CPP $CPPFLAGS'
4819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4823 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4824 # On Suns, sometimes $CPP names a directory.
4825 if test -n "$CPP" && test -d "$CPP"; then
4826 CPP=
4828 if test -z "$CPP"; then
4829 if test "${ac_cv_prog_CPP+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832 # Double quotes because CPP needs to be expanded
4833 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4835 ac_preproc_ok=false
4836 for ac_c_preproc_warn_flag in '' yes
4838 # Use a header file that comes with gcc, so configuring glibc
4839 # with a fresh cross-compiler works.
4840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4841 # <limits.h> exists even on freestanding compilers.
4842 # On the NeXT, cc -E runs the code through the compiler's parser,
4843 # not just through cpp. "Syntax error" is here to catch this case.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #ifdef __STDC__
4851 # include <limits.h>
4852 #else
4853 # include <assert.h>
4854 #endif
4855 Syntax error
4856 _ACEOF
4857 if { (ac_try="$ac_cpp conftest.$ac_ext"
4858 case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861 esac
4862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } >/dev/null; then
4870 if test -s conftest.err; then
4871 ac_cpp_err=$ac_c_preproc_warn_flag
4872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4873 else
4874 ac_cpp_err=
4876 else
4877 ac_cpp_err=yes
4879 if test -z "$ac_cpp_err"; then
4881 else
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4885 # Broken: fails on valid input.
4886 continue
4889 rm -f conftest.err conftest.$ac_ext
4891 # OK, works on sane cases. Now check whether nonexistent headers
4892 # can be detected and how.
4893 cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h. */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4899 #include <ac_nonexistent.h>
4900 _ACEOF
4901 if { (ac_try="$ac_cpp conftest.$ac_ext"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } >/dev/null; then
4914 if test -s conftest.err; then
4915 ac_cpp_err=$ac_c_preproc_warn_flag
4916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4917 else
4918 ac_cpp_err=
4920 else
4921 ac_cpp_err=yes
4923 if test -z "$ac_cpp_err"; then
4924 # Broken: success on invalid input.
4925 continue
4926 else
4927 echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4930 # Passes both tests.
4931 ac_preproc_ok=:
4932 break
4935 rm -f conftest.err conftest.$ac_ext
4937 done
4938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4939 rm -f conftest.err conftest.$ac_ext
4940 if $ac_preproc_ok; then
4941 break
4944 done
4945 ac_cv_prog_CPP=$CPP
4948 CPP=$ac_cv_prog_CPP
4949 else
4950 ac_cv_prog_CPP=$CPP
4952 { echo "$as_me:$LINENO: result: $CPP" >&5
4953 echo "${ECHO_T}$CPP" >&6; }
4954 ac_preproc_ok=false
4955 for ac_c_preproc_warn_flag in '' yes
4957 # Use a header file that comes with gcc, so configuring glibc
4958 # with a fresh cross-compiler works.
4959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4960 # <limits.h> exists even on freestanding compilers.
4961 # On the NeXT, cc -E runs the code through the compiler's parser,
4962 # not just through cpp. "Syntax error" is here to catch this case.
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #ifdef __STDC__
4970 # include <limits.h>
4971 #else
4972 # include <assert.h>
4973 #endif
4974 Syntax error
4975 _ACEOF
4976 if { (ac_try="$ac_cpp conftest.$ac_ext"
4977 case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4983 ac_status=$?
4984 grep -v '^ *+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } >/dev/null; then
4989 if test -s conftest.err; then
4990 ac_cpp_err=$ac_c_preproc_warn_flag
4991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4992 else
4993 ac_cpp_err=
4995 else
4996 ac_cpp_err=yes
4998 if test -z "$ac_cpp_err"; then
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5004 # Broken: fails on valid input.
5005 continue
5008 rm -f conftest.err conftest.$ac_ext
5010 # OK, works on sane cases. Now check whether nonexistent headers
5011 # can be detected and how.
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 #include <ac_nonexistent.h>
5019 _ACEOF
5020 if { (ac_try="$ac_cpp conftest.$ac_ext"
5021 case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024 esac
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } >/dev/null; then
5033 if test -s conftest.err; then
5034 ac_cpp_err=$ac_c_preproc_warn_flag
5035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5036 else
5037 ac_cpp_err=
5039 else
5040 ac_cpp_err=yes
5042 if test -z "$ac_cpp_err"; then
5043 # Broken: success on invalid input.
5044 continue
5045 else
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5049 # Passes both tests.
5050 ac_preproc_ok=:
5051 break
5054 rm -f conftest.err conftest.$ac_ext
5056 done
5057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5058 rm -f conftest.err conftest.$ac_ext
5059 if $ac_preproc_ok; then
5061 else
5062 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5063 See \`config.log' for more details." >&5
5064 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5065 See \`config.log' for more details." >&2;}
5066 { (exit 1); exit 1; }; }
5069 ac_ext=c
5070 ac_cpp='$CPP $CPPFLAGS'
5071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5075 ac_ext=c
5076 ac_cpp='$CPP $CPPFLAGS'
5077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5080 if test -n "$ac_tool_prefix"; then
5081 for ac_prog in gcc
5083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5087 if test "${ac_cv_prog_CC+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090 if test -n "$CC"; then
5091 ac_cv_prog_CC="$CC" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5104 done
5105 done
5106 IFS=$as_save_IFS
5110 CC=$ac_cv_prog_CC
5111 if test -n "$CC"; then
5112 { echo "$as_me:$LINENO: result: $CC" >&5
5113 echo "${ECHO_T}$CC" >&6; }
5114 else
5115 { echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6; }
5120 test -n "$CC" && break
5121 done
5123 if test -z "$CC"; then
5124 ac_ct_CC=$CC
5125 for ac_prog in gcc
5127 # Extract the first word of "$ac_prog", so it can be a program name with args.
5128 set dummy $ac_prog; ac_word=$2
5129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 if test -n "$ac_ct_CC"; then
5135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_ac_ct_CC="$ac_prog"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5150 IFS=$as_save_IFS
5154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5155 if test -n "$ac_ct_CC"; then
5156 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5157 echo "${ECHO_T}$ac_ct_CC" >&6; }
5158 else
5159 { echo "$as_me:$LINENO: result: no" >&5
5160 echo "${ECHO_T}no" >&6; }
5164 test -n "$ac_ct_CC" && break
5165 done
5167 if test "x$ac_ct_CC" = x; then
5168 CC=""
5169 else
5170 case $cross_compiling:$ac_tool_warned in
5171 yes:)
5172 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5173 whose name does not start with the host triplet. If you think this
5174 configuration is useful to you, please write to autoconf@gnu.org." >&5
5175 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5176 whose name does not start with the host triplet. If you think this
5177 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5178 ac_tool_warned=yes ;;
5179 esac
5180 CC=$ac_ct_CC
5185 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5186 See \`config.log' for more details." >&5
5187 echo "$as_me: error: no acceptable C compiler found in \$PATH
5188 See \`config.log' for more details." >&2;}
5189 { (exit 1); exit 1; }; }
5191 # Provide some information about the compiler.
5192 echo "$as_me:$LINENO: checking for C compiler version" >&5
5193 ac_compiler=`set X $ac_compile; echo $2`
5194 { (ac_try="$ac_compiler --version >&5"
5195 case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compiler --version >&5") 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }
5204 { (ac_try="$ac_compiler -v >&5"
5205 case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208 esac
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_compiler -v >&5") 2>&5
5211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }
5214 { (ac_try="$ac_compiler -V >&5"
5215 case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218 esac
5219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220 (eval "$ac_compiler -V >&5") 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }
5225 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5226 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5227 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5238 main ()
5240 #ifndef __GNUC__
5241 choke me
5242 #endif
5245 return 0;
5247 _ACEOF
5248 rm -f conftest.$ac_objext
5249 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5256 ac_status=$?
5257 grep -v '^ *+' conftest.er1 >conftest.err
5258 rm -f conftest.er1
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } &&
5262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5263 { (case "(($ac_try" in
5264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5265 *) ac_try_echo=$ac_try;;
5266 esac
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_try") 2>&5
5269 ac_status=$?
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try='test -s conftest.$ac_objext'
5273 { (case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5276 esac
5277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_try") 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
5282 ac_compiler_gnu=yes
5283 else
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5287 ac_compiler_gnu=no
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5294 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5295 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5296 GCC=`test $ac_compiler_gnu = yes && echo yes`
5297 ac_test_CFLAGS=${CFLAGS+set}
5298 ac_save_CFLAGS=$CFLAGS
5299 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5300 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5301 if test "${ac_cv_prog_cc_g+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 ac_save_c_werror_flag=$ac_c_werror_flag
5305 ac_c_werror_flag=yes
5306 ac_cv_prog_cc_g=no
5307 CFLAGS="-g"
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5316 main ()
5320 return 0;
5322 _ACEOF
5323 rm -f conftest.$ac_objext
5324 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5338 { (case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_try") 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_try") 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_prog_cc_g=yes
5358 else
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5362 CFLAGS=""
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5371 main ()
5375 return 0;
5377 _ACEOF
5378 rm -f conftest.$ac_objext
5379 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5386 ac_status=$?
5387 grep -v '^ *+' conftest.er1 >conftest.err
5388 rm -f conftest.er1
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5393 { (case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_try") 2>&5
5399 ac_status=$?
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; } &&
5402 { ac_try='test -s conftest.$ac_objext'
5403 { (case "(($ac_try" in
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405 *) ac_try_echo=$ac_try;;
5406 esac
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408 (eval "$ac_try") 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_c_werror_flag=$ac_save_c_werror_flag
5418 CFLAGS="-g"
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5427 main ()
5431 return 0;
5433 _ACEOF
5434 rm -f conftest.$ac_objext
5435 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5449 { (case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454 (eval "$ac_try") 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; } &&
5458 { ac_try='test -s conftest.$ac_objext'
5459 { (case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_try") 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 ac_cv_prog_cc_g=yes
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 ac_c_werror_flag=$ac_save_c_werror_flag
5485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5486 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5487 if test "$ac_test_CFLAGS" = set; then
5488 CFLAGS=$ac_save_CFLAGS
5489 elif test $ac_cv_prog_cc_g = yes; then
5490 if test "$GCC" = yes; then
5491 CFLAGS="-g -O2"
5492 else
5493 CFLAGS="-g"
5495 else
5496 if test "$GCC" = yes; then
5497 CFLAGS="-O2"
5498 else
5499 CFLAGS=
5502 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5503 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5504 if test "${ac_cv_prog_cc_c89+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 ac_cv_prog_cc_c89=no
5508 ac_save_CC=$CC
5509 cat >conftest.$ac_ext <<_ACEOF
5510 /* confdefs.h. */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515 #include <stdarg.h>
5516 #include <stdio.h>
5517 #include <sys/types.h>
5518 #include <sys/stat.h>
5519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5520 struct buf { int x; };
5521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5522 static char *e (p, i)
5523 char **p;
5524 int i;
5526 return p[i];
5528 static char *f (char * (*g) (char **, int), char **p, ...)
5530 char *s;
5531 va_list v;
5532 va_start (v,p);
5533 s = g (p, va_arg (v,int));
5534 va_end (v);
5535 return s;
5538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5539 function prototypes and stuff, but not '\xHH' hex character constants.
5540 These don't provoke an error unfortunately, instead are silently treated
5541 as 'x'. The following induces an error, until -std is added to get
5542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5543 array size at least. It's necessary to write '\x00'==0 to get something
5544 that's true only with -std. */
5545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5547 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5548 inside strings and character constants. */
5549 #define FOO(x) 'x'
5550 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5552 int test (int i, double x);
5553 struct s1 {int (*f) (int a);};
5554 struct s2 {int (*f) (double a);};
5555 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5556 int argc;
5557 char **argv;
5559 main ()
5561 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5563 return 0;
5565 _ACEOF
5566 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5567 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5569 CC="$ac_save_CC $ac_arg"
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5578 ac_status=$?
5579 grep -v '^ *+' conftest.er1 >conftest.err
5580 rm -f conftest.er1
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5585 { (case "(($ac_try" in
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5588 esac
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_try") 2>&5
5591 ac_status=$?
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); }; } &&
5594 { ac_try='test -s conftest.$ac_objext'
5595 { (case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598 esac
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_try") 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_cv_prog_cc_c89=$ac_arg
5605 else
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5612 rm -f core conftest.err conftest.$ac_objext
5613 test "x$ac_cv_prog_cc_c89" != "xno" && break
5614 done
5615 rm -f conftest.$ac_ext
5616 CC=$ac_save_CC
5619 # AC_CACHE_VAL
5620 case "x$ac_cv_prog_cc_c89" in
5622 { echo "$as_me:$LINENO: result: none needed" >&5
5623 echo "${ECHO_T}none needed" >&6; } ;;
5624 xno)
5625 { echo "$as_me:$LINENO: result: unsupported" >&5
5626 echo "${ECHO_T}unsupported" >&6; } ;;
5628 CC="$CC $ac_cv_prog_cc_c89"
5629 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5630 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5631 esac
5634 ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5640 ac_ext=cpp
5641 ac_cpp='$CXXCPP $CPPFLAGS'
5642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5645 if test -z "$CXX"; then
5646 if test -n "$CCC"; then
5647 CXX=$CCC
5648 else
5649 if test -n "$ac_tool_prefix"; then
5650 for ac_prog in g++
5652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5656 if test "${ac_cv_prog_CXX+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659 if test -n "$CXX"; then
5660 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5669 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5673 done
5674 done
5675 IFS=$as_save_IFS
5679 CXX=$ac_cv_prog_CXX
5680 if test -n "$CXX"; then
5681 { echo "$as_me:$LINENO: result: $CXX" >&5
5682 echo "${ECHO_T}$CXX" >&6; }
5683 else
5684 { echo "$as_me:$LINENO: result: no" >&5
5685 echo "${ECHO_T}no" >&6; }
5689 test -n "$CXX" && break
5690 done
5692 if test -z "$CXX"; then
5693 ac_ct_CXX=$CXX
5694 for ac_prog in g++
5696 # Extract the first word of "$ac_prog", so it can be a program name with args.
5697 set dummy $ac_prog; ac_word=$2
5698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5700 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703 if test -n "$ac_ct_CXX"; then
5704 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_prog_ac_ct_CXX="$ac_prog"
5714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5717 done
5718 done
5719 IFS=$as_save_IFS
5723 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5724 if test -n "$ac_ct_CXX"; then
5725 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5726 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5727 else
5728 { echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6; }
5733 test -n "$ac_ct_CXX" && break
5734 done
5736 if test "x$ac_ct_CXX" = x; then
5737 CXX="g++"
5738 else
5739 case $cross_compiling:$ac_tool_warned in
5740 yes:)
5741 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5742 whose name does not start with the host triplet. If you think this
5743 configuration is useful to you, please write to autoconf@gnu.org." >&5
5744 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5745 whose name does not start with the host triplet. If you think this
5746 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5747 ac_tool_warned=yes ;;
5748 esac
5749 CXX=$ac_ct_CXX
5755 # Provide some information about the compiler.
5756 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5757 ac_compiler=`set X $ac_compile; echo $2`
5758 { (ac_try="$ac_compiler --version >&5"
5759 case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762 esac
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compiler --version >&5") 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }
5768 { (ac_try="$ac_compiler -v >&5"
5769 case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772 esac
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compiler -v >&5") 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }
5778 { (ac_try="$ac_compiler -V >&5"
5779 case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5782 esac
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compiler -V >&5") 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }
5789 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5790 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5791 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5802 main ()
5804 #ifndef __GNUC__
5805 choke me
5806 #endif
5809 return 0;
5811 _ACEOF
5812 rm -f conftest.$ac_objext
5813 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } &&
5826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5827 { (case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830 esac
5831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_try") 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840 esac
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_try") 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 ac_compiler_gnu=yes
5847 else
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 ac_compiler_gnu=no
5854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5858 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5859 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5860 GXX=`test $ac_compiler_gnu = yes && echo yes`
5861 ac_test_CXXFLAGS=${CXXFLAGS+set}
5862 ac_save_CXXFLAGS=$CXXFLAGS
5863 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5864 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5865 if test "${ac_cv_prog_cxx_g+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5869 ac_cxx_werror_flag=yes
5870 ac_cv_prog_cxx_g=no
5871 CXXFLAGS="-g"
5872 cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h. */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5880 main ()
5884 return 0;
5886 _ACEOF
5887 rm -f conftest.$ac_objext
5888 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } &&
5901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5902 { (case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905 esac
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_try") 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_try") 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_prog_cxx_g=yes
5922 else
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 CXXFLAGS=""
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5935 main ()
5939 return 0;
5941 _ACEOF
5942 rm -f conftest.$ac_objext
5943 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5957 { (case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960 esac
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_try") 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_try") 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5977 else
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5982 CXXFLAGS="-g"
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5991 main ()
5995 return 0;
5997 _ACEOF
5998 rm -f conftest.$ac_objext
5999 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
6006 ac_status=$?
6007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); } &&
6012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6013 { (case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6016 esac
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6019 ac_status=$?
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; } &&
6022 { ac_try='test -s conftest.$ac_objext'
6023 { (case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026 esac
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_try") 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_prog_cxx_g=yes
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6049 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6050 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6051 if test "$ac_test_CXXFLAGS" = set; then
6052 CXXFLAGS=$ac_save_CXXFLAGS
6053 elif test $ac_cv_prog_cxx_g = yes; then
6054 if test "$GXX" = yes; then
6055 CXXFLAGS="-g -O2"
6056 else
6057 CXXFLAGS="-g"
6059 else
6060 if test "$GXX" = yes; then
6061 CXXFLAGS="-O2"
6062 else
6063 CXXFLAGS=
6066 ac_ext=c
6067 ac_cpp='$CPP $CPPFLAGS'
6068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6072 { echo "$as_me:$LINENO: checking " >&5
6073 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6074 if test "${ac_cv_has_flex+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077 for ac_prog in flex lex
6079 # Extract the first word of "$ac_prog", so it can be a program name with args.
6080 set dummy $ac_prog; ac_word=$2
6081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6083 if test "${ac_cv_prog_LEX+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 if test -n "$LEX"; then
6087 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_LEX="$ac_prog"
6097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6100 done
6101 done
6102 IFS=$as_save_IFS
6106 LEX=$ac_cv_prog_LEX
6107 if test -n "$LEX"; then
6108 { echo "$as_me:$LINENO: result: $LEX" >&5
6109 echo "${ECHO_T}$LEX" >&6; }
6110 else
6111 { echo "$as_me:$LINENO: result: no" >&5
6112 echo "${ECHO_T}no" >&6; }
6116 test -n "$LEX" && break
6117 done
6118 test -n "$LEX" || LEX=":"
6120 if test -z "$LEXLIB"
6121 then
6122 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6123 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6124 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127 ac_check_lib_save_LIBS=$LIBS
6128 LIBS="-lfl $LIBS"
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6136 /* Override any GCC internal prototype to avoid an error.
6137 Use char because int might match the return type of a GCC
6138 builtin and then its argument prototype would still apply. */
6139 #ifdef __cplusplus
6140 extern "C"
6141 #endif
6142 char yywrap ();
6144 main ()
6146 return yywrap ();
6148 return 0;
6150 _ACEOF
6151 rm -f conftest.$ac_objext conftest$ac_exeext
6152 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6166 { (case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169 esac
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_try") 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; } &&
6175 { ac_try='test -s conftest$ac_exeext'
6176 { (case "(($ac_try" in
6177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_try") 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_lib_fl_yywrap=yes
6186 else
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 ac_cv_lib_fl_yywrap=no
6193 rm -f core conftest.err conftest.$ac_objext \
6194 conftest$ac_exeext conftest.$ac_ext
6195 LIBS=$ac_check_lib_save_LIBS
6197 { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6198 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6199 if test $ac_cv_lib_fl_yywrap = yes; then
6200 LEXLIB="-lfl"
6201 else
6202 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6203 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6204 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207 ac_check_lib_save_LIBS=$LIBS
6208 LIBS="-ll $LIBS"
6209 cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h. */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6216 /* Override any GCC internal prototype to avoid an error.
6217 Use char because int might match the return type of a GCC
6218 builtin and then its argument prototype would still apply. */
6219 #ifdef __cplusplus
6220 extern "C"
6221 #endif
6222 char yywrap ();
6224 main ()
6226 return yywrap ();
6228 return 0;
6230 _ACEOF
6231 rm -f conftest.$ac_objext conftest$ac_exeext
6232 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6246 { (case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_try") 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; } &&
6255 { ac_try='test -s conftest$ac_exeext'
6256 { (case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259 esac
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_try") 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; }; then
6265 ac_cv_lib_l_yywrap=yes
6266 else
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6270 ac_cv_lib_l_yywrap=no
6273 rm -f core conftest.err conftest.$ac_objext \
6274 conftest$ac_exeext conftest.$ac_ext
6275 LIBS=$ac_check_lib_save_LIBS
6277 { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6278 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6279 if test $ac_cv_lib_l_yywrap = yes; then
6280 LEXLIB="-ll"
6287 if test "x$LEX" != "x:"; then
6288 { echo "$as_me:$LINENO: checking lex output file root" >&5
6289 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6290 if test "${ac_cv_prog_lex_root+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 # The minimal lex program is just a single line: %%. But some broken lexes
6294 # (Solaris, I think it was) want two %% lines, so accommodate them.
6295 cat >conftest.l <<_ACEOF
6298 _ACEOF
6299 { (ac_try="$LEX conftest.l"
6300 case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$LEX conftest.l") 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }
6309 if test -f lex.yy.c; then
6310 ac_cv_prog_lex_root=lex.yy
6311 elif test -f lexyy.c; then
6312 ac_cv_prog_lex_root=lexyy
6313 else
6314 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6315 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6316 { (exit 1); exit 1; }; }
6319 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6320 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6321 rm -f conftest.l
6322 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6324 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6325 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6326 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329 # POSIX says lex can declare yytext either as a pointer or an array; the
6330 # default is implementation-dependent. Figure out which it is, since
6331 # not all implementations provide the %pointer and %array declarations.
6332 ac_cv_prog_lex_yytext_pointer=no
6333 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6334 ac_save_LIBS=$LIBS
6335 LIBS="$LIBS $LEXLIB"
6336 cat >conftest.$ac_ext <<_ACEOF
6337 `cat $LEX_OUTPUT_ROOT.c`
6338 _ACEOF
6339 rm -f conftest.$ac_objext conftest$ac_exeext
6340 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
6347 ac_status=$?
6348 grep -v '^ *+' conftest.er1 >conftest.err
6349 rm -f conftest.er1
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } &&
6353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6354 { (case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_try") 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; } &&
6363 { ac_try='test -s conftest$ac_exeext'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367 esac
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_cv_prog_lex_yytext_pointer=yes
6374 else
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6381 rm -f core conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6383 LIBS=$ac_save_LIBS
6384 rm -f "${LEX_OUTPUT_ROOT}.c"
6387 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6388 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6389 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6391 cat >>confdefs.h <<\_ACEOF
6392 #define YYTEXT_POINTER 1
6393 _ACEOF
6400 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6401 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6402 if test "$LEX" != "flex"; then
6403 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6404 echo "$as_me: error: flex not found but required" >&2;}
6405 { (exit 1); exit 1; }; }
6406 else
6407 FLEX=flex
6411 { echo "$as_me:$LINENO: checking " >&5
6412 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6413 if test "${llvm_cv_has_bison+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416 for ac_prog in 'bison -y' byacc
6418 # Extract the first word of "$ac_prog", so it can be a program name with args.
6419 set dummy $ac_prog; ac_word=$2
6420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6422 if test "${ac_cv_prog_YACC+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425 if test -n "$YACC"; then
6426 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_YACC="$ac_prog"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6439 done
6440 done
6441 IFS=$as_save_IFS
6445 YACC=$ac_cv_prog_YACC
6446 if test -n "$YACC"; then
6447 { echo "$as_me:$LINENO: result: $YACC" >&5
6448 echo "${ECHO_T}$YACC" >&6; }
6449 else
6450 { echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6; }
6455 test -n "$YACC" && break
6456 done
6457 test -n "$YACC" || YACC="yacc"
6460 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6461 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6462 if test "$YACC" != "bison -y"; then
6464 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6465 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6466 else
6467 BISON=bison
6471 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6472 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6473 if test "${lt_cv_path_NM+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 else
6476 if test -n "$NM"; then
6477 # Let the user override the test.
6478 lt_cv_path_NM="$NM"
6479 else
6480 lt_nm_to_check="${ac_tool_prefix}nm"
6481 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6482 lt_nm_to_check="$lt_nm_to_check nm"
6484 for lt_tmp_nm in $lt_nm_to_check; do
6485 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6486 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6487 IFS="$lt_save_ifs"
6488 test -z "$ac_dir" && ac_dir=.
6489 tmp_nm="$ac_dir/$lt_tmp_nm"
6490 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6491 # Check to see if the nm accepts a BSD-compat flag.
6492 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6493 # nm: unknown option "B" ignored
6494 # Tru64's nm complains that /dev/null is an invalid object file
6495 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6496 */dev/null* | *'Invalid file or object type'*)
6497 lt_cv_path_NM="$tmp_nm -B"
6498 break
6501 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6502 */dev/null*)
6503 lt_cv_path_NM="$tmp_nm -p"
6504 break
6507 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6508 continue # so that we can try to find one that supports BSD flags
6510 esac
6512 esac
6514 done
6515 IFS="$lt_save_ifs"
6516 done
6517 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6520 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6521 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6522 NM="$lt_cv_path_NM"
6526 { echo "$as_me:$LINENO: checking for GNU make" >&5
6527 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6528 if test "${llvm_cv_gnu_make_command+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531 llvm_cv_gnu_make_command=''
6532 for a in "$MAKE" make gmake gnumake ; do
6533 if test -z "$a" ; then continue ; fi ;
6534 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6535 then
6536 llvm_cv_gnu_make_command=$a ;
6537 break;
6539 done
6541 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6542 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6543 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6544 ifGNUmake='' ;
6545 else
6546 ifGNUmake='#' ;
6547 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6548 echo "${ECHO_T}\"Not found\"" >&6; };
6552 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6554 LN_S=$as_ln_s
6555 if test "$LN_S" = "ln -s"; then
6556 { echo "$as_me:$LINENO: result: yes" >&5
6557 echo "${ECHO_T}yes" >&6; }
6558 else
6559 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6560 echo "${ECHO_T}no, using $LN_S" >&6; }
6563 # Extract the first word of "cmp", so it can be a program name with args.
6564 set dummy cmp; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_path_CMP+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570 case $CMP in
6571 [\\/]* | ?:[\\/]*)
6572 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6586 done
6587 done
6588 IFS=$as_save_IFS
6590 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6592 esac
6594 CMP=$ac_cv_path_CMP
6595 if test -n "$CMP"; then
6596 { echo "$as_me:$LINENO: result: $CMP" >&5
6597 echo "${ECHO_T}$CMP" >&6; }
6598 else
6599 { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6604 # Extract the first word of "cp", so it can be a program name with args.
6605 set dummy cp; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_CP+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611 case $CP in
6612 [\\/]* | ?:[\\/]*)
6613 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 for as_dir in $PATH
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 break 2
6627 done
6628 done
6629 IFS=$as_save_IFS
6631 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6633 esac
6635 CP=$ac_cv_path_CP
6636 if test -n "$CP"; then
6637 { echo "$as_me:$LINENO: result: $CP" >&5
6638 echo "${ECHO_T}$CP" >&6; }
6639 else
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6645 # Extract the first word of "date", so it can be a program name with args.
6646 set dummy date; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_DATE+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652 case $DATE in
6653 [\\/]* | ?:[\\/]*)
6654 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6668 done
6669 done
6670 IFS=$as_save_IFS
6672 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6674 esac
6676 DATE=$ac_cv_path_DATE
6677 if test -n "$DATE"; then
6678 { echo "$as_me:$LINENO: result: $DATE" >&5
6679 echo "${ECHO_T}$DATE" >&6; }
6680 else
6681 { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6686 # Extract the first word of "find", so it can be a program name with args.
6687 set dummy find; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_FIND+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 case $FIND in
6694 [\\/]* | ?:[\\/]*)
6695 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6709 done
6710 done
6711 IFS=$as_save_IFS
6713 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6715 esac
6717 FIND=$ac_cv_path_FIND
6718 if test -n "$FIND"; then
6719 { echo "$as_me:$LINENO: result: $FIND" >&5
6720 echo "${ECHO_T}$FIND" >&6; }
6721 else
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6727 # Extract the first word of "grep", so it can be a program name with args.
6728 set dummy grep; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_GREP+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 case $GREP in
6735 [\\/]* | ?:[\\/]*)
6736 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6750 done
6751 done
6752 IFS=$as_save_IFS
6754 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6756 esac
6758 GREP=$ac_cv_path_GREP
6759 if test -n "$GREP"; then
6760 { echo "$as_me:$LINENO: result: $GREP" >&5
6761 echo "${ECHO_T}$GREP" >&6; }
6762 else
6763 { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6768 # Extract the first word of "mkdir", so it can be a program name with args.
6769 set dummy mkdir; ac_word=$2
6770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6772 if test "${ac_cv_path_MKDIR+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 else
6775 case $MKDIR in
6776 [\\/]* | ?:[\\/]*)
6777 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6791 done
6792 done
6793 IFS=$as_save_IFS
6795 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6797 esac
6799 MKDIR=$ac_cv_path_MKDIR
6800 if test -n "$MKDIR"; then
6801 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6802 echo "${ECHO_T}$MKDIR" >&6; }
6803 else
6804 { echo "$as_me:$LINENO: result: no" >&5
6805 echo "${ECHO_T}no" >&6; }
6809 # Extract the first word of "mv", so it can be a program name with args.
6810 set dummy mv; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_path_MV+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 case $MV in
6817 [\\/]* | ?:[\\/]*)
6818 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6828 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6832 done
6833 done
6834 IFS=$as_save_IFS
6836 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6838 esac
6840 MV=$ac_cv_path_MV
6841 if test -n "$MV"; then
6842 { echo "$as_me:$LINENO: result: $MV" >&5
6843 echo "${ECHO_T}$MV" >&6; }
6844 else
6845 { echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6; }
6850 if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_prog_RANLIB+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858 if test -n "$RANLIB"; then
6859 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6872 done
6873 done
6874 IFS=$as_save_IFS
6878 RANLIB=$ac_cv_prog_RANLIB
6879 if test -n "$RANLIB"; then
6880 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6881 echo "${ECHO_T}$RANLIB" >&6; }
6882 else
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6889 if test -z "$ac_cv_prog_RANLIB"; then
6890 ac_ct_RANLIB=$RANLIB
6891 # Extract the first word of "ranlib", so it can be a program name with args.
6892 set dummy ranlib; ac_word=$2
6893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898 if test -n "$ac_ct_RANLIB"; then
6899 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_ac_ct_RANLIB="ranlib"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6912 done
6913 done
6914 IFS=$as_save_IFS
6918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6919 if test -n "$ac_ct_RANLIB"; then
6920 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6921 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6922 else
6923 { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6927 if test "x$ac_ct_RANLIB" = x; then
6928 RANLIB=":"
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931 yes:)
6932 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6933 whose name does not start with the host triplet. If you think this
6934 configuration is useful to you, please write to autoconf@gnu.org." >&5
6935 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet. If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6938 ac_tool_warned=yes ;;
6939 esac
6940 RANLIB=$ac_ct_RANLIB
6942 else
6943 RANLIB="$ac_cv_prog_RANLIB"
6946 # Extract the first word of "rm", so it can be a program name with args.
6947 set dummy rm; ac_word=$2
6948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950 if test "${ac_cv_path_RM+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953 case $RM in
6954 [\\/]* | ?:[\\/]*)
6955 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6969 done
6970 done
6971 IFS=$as_save_IFS
6973 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6975 esac
6977 RM=$ac_cv_path_RM
6978 if test -n "$RM"; then
6979 { echo "$as_me:$LINENO: result: $RM" >&5
6980 echo "${ECHO_T}$RM" >&6; }
6981 else
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6987 # Extract the first word of "sed", so it can be a program name with args.
6988 set dummy sed; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_path_SED+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994 case $SED in
6995 [\\/]* | ?:[\\/]*)
6996 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7010 done
7011 done
7012 IFS=$as_save_IFS
7014 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7016 esac
7018 SED=$ac_cv_path_SED
7019 if test -n "$SED"; then
7020 { echo "$as_me:$LINENO: result: $SED" >&5
7021 echo "${ECHO_T}$SED" >&6; }
7022 else
7023 { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7028 # Extract the first word of "tar", so it can be a program name with args.
7029 set dummy tar; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_path_TAR+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 case $TAR in
7036 [\\/]* | ?:[\\/]*)
7037 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7043 IFS=$as_save_IFS
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7047 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 break 2
7051 done
7052 done
7053 IFS=$as_save_IFS
7055 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7057 esac
7059 TAR=$ac_cv_path_TAR
7060 if test -n "$TAR"; then
7061 { echo "$as_me:$LINENO: result: $TAR" >&5
7062 echo "${ECHO_T}$TAR" >&6; }
7063 else
7064 { echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6; }
7069 # Extract the first word of "pwd", so it can be a program name with args.
7070 set dummy pwd; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_path_BINPWD+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076 case $BINPWD in
7077 [\\/]* | ?:[\\/]*)
7078 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7092 done
7093 done
7094 IFS=$as_save_IFS
7096 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7098 esac
7100 BINPWD=$ac_cv_path_BINPWD
7101 if test -n "$BINPWD"; then
7102 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7103 echo "${ECHO_T}$BINPWD" >&6; }
7104 else
7105 { echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6; }
7111 # Extract the first word of "Graphviz", so it can be a program name with args.
7112 set dummy Graphviz; ac_word=$2
7113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118 case $GRAPHVIZ in
7119 [\\/]* | ?:[\\/]*)
7120 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7130 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7134 done
7135 done
7136 IFS=$as_save_IFS
7138 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7140 esac
7142 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7143 if test -n "$GRAPHVIZ"; then
7144 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7145 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7146 else
7147 { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7152 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_GRAPHVIZ 1
7156 _ACEOF
7158 if test "$llvm_cv_os_type" = "MingW" ; then
7159 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7162 cat >>confdefs.h <<_ACEOF
7163 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7164 _ACEOF
7167 # Extract the first word of "dot", so it can be a program name with args.
7168 set dummy dot; ac_word=$2
7169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171 if test "${ac_cv_path_DOT+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 else
7174 case $DOT in
7175 [\\/]* | ?:[\\/]*)
7176 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7190 done
7191 done
7192 IFS=$as_save_IFS
7194 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7196 esac
7198 DOT=$ac_cv_path_DOT
7199 if test -n "$DOT"; then
7200 { echo "$as_me:$LINENO: result: $DOT" >&5
7201 echo "${ECHO_T}$DOT" >&6; }
7202 else
7203 { echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6; }
7208 if test "$DOT" != "echo dot" ; then
7210 cat >>confdefs.h <<\_ACEOF
7211 #define HAVE_DOT 1
7212 _ACEOF
7214 if test "$llvm_cv_os_type" = "MingW" ; then
7215 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7218 cat >>confdefs.h <<_ACEOF
7219 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7220 _ACEOF
7223 for ac_prog in gv gsview32
7225 # Extract the first word of "$ac_prog", so it can be a program name with args.
7226 set dummy $ac_prog; ac_word=$2
7227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229 if test "${ac_cv_path_GV+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232 case $GV in
7233 [\\/]* | ?:[\\/]*)
7234 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 break 2
7248 done
7249 done
7250 IFS=$as_save_IFS
7253 esac
7255 GV=$ac_cv_path_GV
7256 if test -n "$GV"; then
7257 { echo "$as_me:$LINENO: result: $GV" >&5
7258 echo "${ECHO_T}$GV" >&6; }
7259 else
7260 { echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6; }
7265 test -n "$GV" && break
7266 done
7267 test -n "$GV" || GV="echo gv"
7269 if test "$GV" != "echo gv" ; then
7271 cat >>confdefs.h <<\_ACEOF
7272 #define HAVE_GV 1
7273 _ACEOF
7275 if test "$llvm_cv_os_type" = "MingW" ; then
7276 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7279 cat >>confdefs.h <<_ACEOF
7280 #define LLVM_PATH_GV "$GV${EXEEXT}"
7281 _ACEOF
7284 # Extract the first word of "dotty", so it can be a program name with args.
7285 set dummy dotty; ac_word=$2
7286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288 if test "${ac_cv_path_DOTTY+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291 case $DOTTY in
7292 [\\/]* | ?:[\\/]*)
7293 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7303 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7307 done
7308 done
7309 IFS=$as_save_IFS
7311 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7313 esac
7315 DOTTY=$ac_cv_path_DOTTY
7316 if test -n "$DOTTY"; then
7317 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7318 echo "${ECHO_T}$DOTTY" >&6; }
7319 else
7320 { echo "$as_me:$LINENO: result: no" >&5
7321 echo "${ECHO_T}no" >&6; }
7325 if test "$DOTTY" != "echo dotty" ; then
7327 cat >>confdefs.h <<\_ACEOF
7328 #define HAVE_DOTTY 1
7329 _ACEOF
7331 if test "$llvm_cv_os_type" = "MingW" ; then
7332 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7335 cat >>confdefs.h <<_ACEOF
7336 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7337 _ACEOF
7342 # Extract the first word of "perl", so it can be a program name with args.
7343 set dummy perl; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_PERL+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349 case $PERL in
7350 [\\/]* | ?:[\\/]*)
7351 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7365 done
7366 done
7367 IFS=$as_save_IFS
7369 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7371 esac
7373 PERL=$ac_cv_path_PERL
7374 if test -n "$PERL"; then
7375 { echo "$as_me:$LINENO: result: $PERL" >&5
7376 echo "${ECHO_T}$PERL" >&6; }
7377 else
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7383 if test "$PERL" != "none"; then
7384 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7385 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7386 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7387 { echo "$as_me:$LINENO: result: yes" >&5
7388 echo "${ECHO_T}yes" >&6; }
7389 else
7390 PERL=none
7391 { echo "$as_me:$LINENO: result: not found" >&5
7392 echo "${ECHO_T}not found" >&6; }
7397 if test x"$PERL" = xnone; then
7398 HAVE_PERL=0
7400 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7401 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7402 { (exit 1); exit 1; }; }
7403 else
7404 HAVE_PERL=1
7408 # Find a good install program. We prefer a C program (faster),
7409 # so one script is as good as another. But avoid the broken or
7410 # incompatible versions:
7411 # SysV /etc/install, /usr/sbin/install
7412 # SunOS /usr/etc/install
7413 # IRIX /sbin/install
7414 # AIX /bin/install
7415 # AmigaOS /C/install, which installs bootblocks on floppy discs
7416 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7417 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7418 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7419 # OS/2's system install, which has a completely different semantic
7420 # ./install, which can be erroneously created by make from ./install.sh.
7421 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7422 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7423 if test -z "$INSTALL"; then
7424 if test "${ac_cv_path_install+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 # Account for people who put trailing slashes in PATH elements.
7433 case $as_dir/ in
7434 ./ | .// | /cC/* | \
7435 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7436 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7437 /usr/ucb/* ) ;;
7439 # OSF1 and SCO ODT 3.0 have their own names for install.
7440 # Don't use installbsd from OSF since it installs stuff as root
7441 # by default.
7442 for ac_prog in ginstall scoinst install; do
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7445 if test $ac_prog = install &&
7446 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7447 # AIX install. It has an incompatible calling convention.
7449 elif test $ac_prog = install &&
7450 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7451 # program-specific install script used by HP pwplus--don't use.
7453 else
7454 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7455 break 3
7458 done
7459 done
7461 esac
7462 done
7463 IFS=$as_save_IFS
7467 if test "${ac_cv_path_install+set}" = set; then
7468 INSTALL=$ac_cv_path_install
7469 else
7470 # As a last resort, use the slow shell script. Don't cache a
7471 # value for INSTALL within a source directory, because that will
7472 # break other packages using the cache if that directory is
7473 # removed, or if the value is a relative name.
7474 INSTALL=$ac_install_sh
7477 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7478 echo "${ECHO_T}$INSTALL" >&6; }
7480 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7481 # It thinks the first close brace ends the variable substitution.
7482 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7484 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7486 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7489 # Extract the first word of "bzip2", so it can be a program name with args.
7490 set dummy bzip2; ac_word=$2
7491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7493 if test "${ac_cv_path_BZIP2+set}" = set; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 else
7496 case $BZIP2 in
7497 [\\/]* | ?:[\\/]*)
7498 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7512 done
7513 done
7514 IFS=$as_save_IFS
7516 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7518 esac
7520 BZIP2=$ac_cv_path_BZIP2
7521 if test -n "$BZIP2"; then
7522 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7523 echo "${ECHO_T}$BZIP2" >&6; }
7524 else
7525 { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7530 # Extract the first word of "doxygen", so it can be a program name with args.
7531 set dummy doxygen; ac_word=$2
7532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7534 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537 case $DOXYGEN in
7538 [\\/]* | ?:[\\/]*)
7539 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7549 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7553 done
7554 done
7555 IFS=$as_save_IFS
7557 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7559 esac
7561 DOXYGEN=$ac_cv_path_DOXYGEN
7562 if test -n "$DOXYGEN"; then
7563 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7564 echo "${ECHO_T}$DOXYGEN" >&6; }
7565 else
7566 { echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6; }
7571 # Extract the first word of "groff", so it can be a program name with args.
7572 set dummy groff; ac_word=$2
7573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7575 if test "${ac_cv_path_GROFF+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 else
7578 case $GROFF in
7579 [\\/]* | ?:[\\/]*)
7580 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7590 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7594 done
7595 done
7596 IFS=$as_save_IFS
7598 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7600 esac
7602 GROFF=$ac_cv_path_GROFF
7603 if test -n "$GROFF"; then
7604 { echo "$as_me:$LINENO: result: $GROFF" >&5
7605 echo "${ECHO_T}$GROFF" >&6; }
7606 else
7607 { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7612 # Extract the first word of "gzip", so it can be a program name with args.
7613 set dummy gzip; ac_word=$2
7614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7616 if test "${ac_cv_path_GZIP+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619 case $GZIP in
7620 [\\/]* | ?:[\\/]*)
7621 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7631 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 break 2
7635 done
7636 done
7637 IFS=$as_save_IFS
7639 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7641 esac
7643 GZIP=$ac_cv_path_GZIP
7644 if test -n "$GZIP"; then
7645 { echo "$as_me:$LINENO: result: $GZIP" >&5
7646 echo "${ECHO_T}$GZIP" >&6; }
7647 else
7648 { echo "$as_me:$LINENO: result: no" >&5
7649 echo "${ECHO_T}no" >&6; }
7653 # Extract the first word of "pod2html", so it can be a program name with args.
7654 set dummy pod2html; ac_word=$2
7655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7657 if test "${ac_cv_path_POD2HTML+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660 case $POD2HTML in
7661 [\\/]* | ?:[\\/]*)
7662 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7668 IFS=$as_save_IFS
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7672 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 break 2
7676 done
7677 done
7678 IFS=$as_save_IFS
7680 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7682 esac
7684 POD2HTML=$ac_cv_path_POD2HTML
7685 if test -n "$POD2HTML"; then
7686 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7687 echo "${ECHO_T}$POD2HTML" >&6; }
7688 else
7689 { echo "$as_me:$LINENO: result: no" >&5
7690 echo "${ECHO_T}no" >&6; }
7694 # Extract the first word of "pod2man", so it can be a program name with args.
7695 set dummy pod2man; ac_word=$2
7696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7698 if test "${ac_cv_path_POD2MAN+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701 case $POD2MAN in
7702 [\\/]* | ?:[\\/]*)
7703 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7717 done
7718 done
7719 IFS=$as_save_IFS
7721 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7723 esac
7725 POD2MAN=$ac_cv_path_POD2MAN
7726 if test -n "$POD2MAN"; then
7727 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7728 echo "${ECHO_T}$POD2MAN" >&6; }
7729 else
7730 { echo "$as_me:$LINENO: result: no" >&5
7731 echo "${ECHO_T}no" >&6; }
7735 # Extract the first word of "runtest", so it can be a program name with args.
7736 set dummy runtest; ac_word=$2
7737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7739 if test "${ac_cv_path_RUNTEST+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 case $RUNTEST in
7743 [\\/]* | ?:[\\/]*)
7744 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7758 done
7759 done
7760 IFS=$as_save_IFS
7762 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7764 esac
7766 RUNTEST=$ac_cv_path_RUNTEST
7767 if test -n "$RUNTEST"; then
7768 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7769 echo "${ECHO_T}$RUNTEST" >&6; }
7770 else
7771 { echo "$as_me:$LINENO: result: no" >&5
7772 echo "${ECHO_T}no" >&6; }
7777 no_itcl=true
7778 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7779 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7781 # Check whether --with-tclinclude was given.
7782 if test "${with_tclinclude+set}" = set; then
7783 withval=$with_tclinclude; with_tclinclude=${withval}
7784 else
7785 with_tclinclude=''
7788 if test "${ac_cv_path_tclsh+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7792 if test x"${with_tclinclude}" != x ; then
7793 if test -f ${with_tclinclude}/tclsh ; then
7794 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7795 elif test -f ${with_tclinclude}/src/tclsh ; then
7796 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7797 else
7798 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7799 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7800 { (exit 1); exit 1; }; }
7804 if test x"${ac_cv_path_tclsh}" = x ; then
7805 { echo "$as_me:$LINENO: result: none" >&5
7806 echo "${ECHO_T}none" >&6; }
7807 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
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7813 if test "${ac_cv_path_TCLSH+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816 case $TCLSH in
7817 [\\/]* | ?:[\\/]*)
7818 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7832 done
7833 done
7834 IFS=$as_save_IFS
7837 esac
7839 TCLSH=$ac_cv_path_TCLSH
7840 if test -n "$TCLSH"; then
7841 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7842 echo "${ECHO_T}$TCLSH" >&6; }
7843 else
7844 { echo "$as_me:$LINENO: result: no" >&5
7845 echo "${ECHO_T}no" >&6; }
7849 test -n "$TCLSH" && break
7850 done
7852 if test x"${TCLSH}" = x ; then
7853 ac_cv_path_tclsh='';
7854 else
7855 ac_cv_path_tclsh="${TCLSH}";
7857 else
7858 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7859 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7860 TCLSH="${ac_cv_path_tclsh}"
7866 # Extract the first word of "zip", so it can be a program name with args.
7867 set dummy zip; ac_word=$2
7868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870 if test "${ac_cv_path_ZIP+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 case $ZIP in
7874 [\\/]* | ?:[\\/]*)
7875 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 for as_dir in $PATH
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 break 2
7889 done
7890 done
7891 IFS=$as_save_IFS
7893 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7895 esac
7897 ZIP=$ac_cv_path_ZIP
7898 if test -n "$ZIP"; then
7899 { echo "$as_me:$LINENO: result: $ZIP" >&5
7900 echo "${ECHO_T}$ZIP" >&6; }
7901 else
7902 { echo "$as_me:$LINENO: result: no" >&5
7903 echo "${ECHO_T}no" >&6; }
7908 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7909 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7910 if test "${llvm_cv_link_use_r+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913 ac_ext=c
7914 ac_cpp='$CPP $CPPFLAGS'
7915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919 oldcflags="$CFLAGS"
7920 CFLAGS="$CFLAGS -Wl,-R."
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7929 main ()
7931 int main() { return 0; }
7933 return 0;
7935 _ACEOF
7936 rm -f conftest.$ac_objext conftest$ac_exeext
7937 if { (ac_try="$ac_link"
7938 case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7941 esac
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_link") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } &&
7950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7951 { (case "(($ac_try" in
7952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953 *) ac_try_echo=$ac_try;;
7954 esac
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956 (eval "$ac_try") 2>&5
7957 ac_status=$?
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); }; } &&
7960 { ac_try='test -s conftest$ac_exeext'
7961 { (case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_try") 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 llvm_cv_link_use_r=yes
7971 else
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 llvm_cv_link_use_r=no
7978 rm -f core conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext conftest.$ac_ext
7980 CFLAGS="$oldcflags"
7981 ac_ext=c
7982 ac_cpp='$CPP $CPPFLAGS'
7983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7989 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7990 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7991 if test "$llvm_cv_link_use_r" = yes ; then
7993 cat >>confdefs.h <<\_ACEOF
7994 #define HAVE_LINK_R 1
7995 _ACEOF
8002 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8003 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8004 if test "${ac_cv_c_const+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h. */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8015 main ()
8017 /* FIXME: Include the comments suggested by Paul. */
8018 #ifndef __cplusplus
8019 /* Ultrix mips cc rejects this. */
8020 typedef int charset[2];
8021 const charset x;
8022 /* SunOS 4.1.1 cc rejects this. */
8023 char const *const *ccp;
8024 char **p;
8025 /* NEC SVR4.0.2 mips cc rejects this. */
8026 struct point {int x, y;};
8027 static struct point const zero = {0,0};
8028 /* AIX XL C 1.02.0.0 rejects this.
8029 It does not let you subtract one const X* pointer from another in
8030 an arm of an if-expression whose if-part is not a constant
8031 expression */
8032 const char *g = "string";
8033 ccp = &g + (g ? g-g : 0);
8034 /* HPUX 7.0 cc rejects these. */
8035 ++ccp;
8036 p = (char**) ccp;
8037 ccp = (char const *const *) p;
8038 { /* SCO 3.2v4 cc rejects this. */
8039 char *t;
8040 char const *s = 0 ? (char *) 0 : (char const *) 0;
8042 *t++ = 0;
8043 if (s) return 0;
8045 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8046 int x[] = {25, 17};
8047 const int *foo = &x[0];
8048 ++foo;
8050 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8051 typedef const int *iptr;
8052 iptr p = 0;
8053 ++p;
8055 { /* AIX XL C 1.02.0.0 rejects this saying
8056 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8057 struct s { int j; const int *ap[3]; };
8058 struct s *b; b->j = 5;
8060 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8061 const int foo = 10;
8062 if (!foo) return 0;
8064 return !x[0] && !zero.x;
8065 #endif
8068 return 0;
8070 _ACEOF
8071 rm -f conftest.$ac_objext
8072 if { (ac_try="$ac_compile"
8073 case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_compile") 2>conftest.er1
8079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086 { (case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_try") 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest.$ac_objext'
8096 { (case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8099 esac
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_try") 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 ac_cv_c_const=yes
8106 else
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 ac_cv_c_const=no
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8116 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8117 if test $ac_cv_c_const = no; then
8119 cat >>confdefs.h <<\_ACEOF
8120 #define const
8121 _ACEOF
8130 ac_header_dirent=no
8131 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8132 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8133 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8134 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138 cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h. */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8144 #include <sys/types.h>
8145 #include <$ac_hdr>
8148 main ()
8150 if ((DIR *) 0)
8151 return 0;
8153 return 0;
8155 _ACEOF
8156 rm -f conftest.$ac_objext
8157 if { (ac_try="$ac_compile"
8158 case "(($ac_try" in
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } &&
8170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8171 { (case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174 esac
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_try") 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest.$ac_objext'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 eval "$as_ac_Header=yes"
8191 else
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8195 eval "$as_ac_Header=no"
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 ac_res=`eval echo '${'$as_ac_Header'}'`
8201 { echo "$as_me:$LINENO: result: $ac_res" >&5
8202 echo "${ECHO_T}$ac_res" >&6; }
8203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8206 _ACEOF
8208 ac_header_dirent=$ac_hdr; break
8211 done
8212 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8213 if test $ac_header_dirent = dirent.h; then
8214 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8215 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8216 if test "${ac_cv_search_opendir+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 ac_func_search_save_LIBS=$LIBS
8220 cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h. */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8227 /* Override any GCC internal prototype to avoid an error.
8228 Use char because int might match the return type of a GCC
8229 builtin and then its argument prototype would still apply. */
8230 #ifdef __cplusplus
8231 extern "C"
8232 #endif
8233 char opendir ();
8235 main ()
8237 return opendir ();
8239 return 0;
8241 _ACEOF
8242 for ac_lib in '' dir; do
8243 if test -z "$ac_lib"; then
8244 ac_res="none required"
8245 else
8246 ac_res=-l$ac_lib
8247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (ac_try="$ac_link"
8251 case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254 esac
8255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_link") 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264 { (case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267 esac
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_try") 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest$ac_exeext'
8274 { (case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277 esac
8278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_try") 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_cv_search_opendir=$ac_res
8284 else
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8291 rm -f core conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext
8293 if test "${ac_cv_search_opendir+set}" = set; then
8294 break
8296 done
8297 if test "${ac_cv_search_opendir+set}" = set; then
8299 else
8300 ac_cv_search_opendir=no
8302 rm conftest.$ac_ext
8303 LIBS=$ac_func_search_save_LIBS
8305 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8306 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8307 ac_res=$ac_cv_search_opendir
8308 if test "$ac_res" != no; then
8309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8313 else
8314 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8315 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8316 if test "${ac_cv_search_opendir+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319 ac_func_search_save_LIBS=$LIBS
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h. */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8327 /* Override any GCC internal prototype to avoid an error.
8328 Use char because int might match the return type of a GCC
8329 builtin and then its argument prototype would still apply. */
8330 #ifdef __cplusplus
8331 extern "C"
8332 #endif
8333 char opendir ();
8335 main ()
8337 return opendir ();
8339 return 0;
8341 _ACEOF
8342 for ac_lib in '' x; do
8343 if test -z "$ac_lib"; then
8344 ac_res="none required"
8345 else
8346 ac_res=-l$ac_lib
8347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8349 rm -f conftest.$ac_objext conftest$ac_exeext
8350 if { (ac_try="$ac_link"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_link") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364 { (case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367 esac
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_try") 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; } &&
8373 { ac_try='test -s conftest$ac_exeext'
8374 { (case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377 esac
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_try") 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_cv_search_opendir=$ac_res
8384 else
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8391 rm -f core conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext
8393 if test "${ac_cv_search_opendir+set}" = set; then
8394 break
8396 done
8397 if test "${ac_cv_search_opendir+set}" = set; then
8399 else
8400 ac_cv_search_opendir=no
8402 rm conftest.$ac_ext
8403 LIBS=$ac_func_search_save_LIBS
8405 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8406 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8407 ac_res=$ac_cv_search_opendir
8408 if test "$ac_res" != no; then
8409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8416 for ac_header in dlfcn.h
8418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 ac_res=`eval echo '${'$as_ac_Header'}'`
8426 { echo "$as_me:$LINENO: result: $ac_res" >&5
8427 echo "${ECHO_T}$ac_res" >&6; }
8428 else
8429 # Is the header compilable?
8430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8432 cat >conftest.$ac_ext <<_ACEOF
8433 /* confdefs.h. */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 $ac_includes_default
8439 #include <$ac_header>
8440 _ACEOF
8441 rm -f conftest.$ac_objext
8442 if { (ac_try="$ac_compile"
8443 case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_compile") 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8456 { (case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_try") 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest.$ac_objext'
8466 { (case "(($ac_try" in
8467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468 *) ac_try_echo=$ac_try;;
8469 esac
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471 (eval "$ac_try") 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_header_compiler=yes
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 ac_header_compiler=no
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8484 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8485 echo "${ECHO_T}$ac_header_compiler" >&6; }
8487 # Is the header present?
8488 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h. */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 #include <$ac_header>
8497 _ACEOF
8498 if { (ac_try="$ac_cpp conftest.$ac_ext"
8499 case "(($ac_try" in
8500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501 *) ac_try_echo=$ac_try;;
8502 esac
8503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8505 ac_status=$?
8506 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -f conftest.er1
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } >/dev/null; then
8511 if test -s conftest.err; then
8512 ac_cpp_err=$ac_c_preproc_warn_flag
8513 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8514 else
8515 ac_cpp_err=
8517 else
8518 ac_cpp_err=yes
8520 if test -z "$ac_cpp_err"; then
8521 ac_header_preproc=yes
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8526 ac_header_preproc=no
8529 rm -f conftest.err conftest.$ac_ext
8530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8531 echo "${ECHO_T}$ac_header_preproc" >&6; }
8533 # So? What about this header?
8534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8535 yes:no: )
8536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8540 ac_header_preproc=yes
8542 no:yes:* )
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8555 ( cat <<\_ASBOX
8556 ## ----------------------------------- ##
8557 ## Report this to llvmbugs@cs.uiuc.edu ##
8558 ## ----------------------------------- ##
8559 _ASBOX
8560 ) | sed "s/^/$as_me: WARNING: /" >&2
8562 esac
8563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 else
8568 eval "$as_ac_Header=\$ac_header_preproc"
8570 ac_res=`eval echo '${'$as_ac_Header'}'`
8571 { echo "$as_me:$LINENO: result: $ac_res" >&5
8572 echo "${ECHO_T}$ac_res" >&6; }
8575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8576 cat >>confdefs.h <<_ACEOF
8577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8578 _ACEOF
8582 done
8584 # Check whether --enable-ltdl-install was given.
8585 if test "${enable_ltdl_install+set}" = set; then
8586 enableval=$enable_ltdl_install;
8592 if test x"${enable_ltdl_install-no}" != xno; then
8593 INSTALL_LTDL_TRUE=
8594 INSTALL_LTDL_FALSE='#'
8595 else
8596 INSTALL_LTDL_TRUE='#'
8597 INSTALL_LTDL_FALSE=
8602 if test x"${enable_ltdl_convenience-no}" != xno; then
8603 CONVENIENCE_LTDL_TRUE=
8604 CONVENIENCE_LTDL_FALSE='#'
8605 else
8606 CONVENIENCE_LTDL_TRUE='#'
8607 CONVENIENCE_LTDL_FALSE=
8611 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8612 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8613 library_names_spec=
8614 libname_spec='lib$name'
8615 soname_spec=
8616 shrext_cmds=".so"
8617 postinstall_cmds=
8618 postuninstall_cmds=
8619 finish_cmds=
8620 finish_eval=
8621 shlibpath_var=
8622 shlibpath_overrides_runpath=unknown
8623 version_type=none
8624 dynamic_linker="$host_os ld.so"
8625 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626 if test "$GCC" = yes; then
8627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8628 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8629 # if the path contains ";" then we assume it to be the separator
8630 # otherwise default to the standard path separator (i.e. ":") - it is
8631 # assumed that no part of a normal pathname contains ";" but that should
8632 # okay in the real world where ";" in dirpaths is itself problematic.
8633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8634 else
8635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8637 else
8638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8640 need_lib_prefix=unknown
8641 hardcode_into_libs=no
8643 # when you set need_version to no, make sure it does not cause -set_version
8644 # flags to be left without arguments
8645 need_version=unknown
8647 case $host_os in
8648 aix3*)
8649 version_type=linux
8650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8651 shlibpath_var=LIBPATH
8653 # AIX 3 has no versioning support, so we append a major version to the name.
8654 soname_spec='${libname}${release}${shared_ext}$major'
8657 aix4* | aix5*)
8658 version_type=linux
8659 need_lib_prefix=no
8660 need_version=no
8661 hardcode_into_libs=yes
8662 if test "$host_cpu" = ia64; then
8663 # AIX 5 supports IA64
8664 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8665 shlibpath_var=LD_LIBRARY_PATH
8666 else
8667 # With GCC up to 2.95.x, collect2 would create an import file
8668 # for dependence libraries. The import file would start with
8669 # the line `#! .'. This would cause the generated library to
8670 # depend on `.', always an invalid library. This was fixed in
8671 # development snapshots of GCC prior to 3.0.
8672 case $host_os in
8673 aix4 | aix4.[01] | aix4.[01].*)
8674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8675 echo ' yes '
8676 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8678 else
8679 can_build_shared=no
8682 esac
8683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8684 # soname into executable. Probably we can add versioning support to
8685 # collect2, so additional links can be useful in future.
8686 if test "$aix_use_runtimelinking" = yes; then
8687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8688 # instead of lib<name>.a to let people know that these are not
8689 # typical AIX shared libraries.
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691 else
8692 # We preserve .a as extension for shared libraries through AIX4.2
8693 # and later when we are not doing run time linking.
8694 library_names_spec='${libname}${release}.a $libname.a'
8695 soname_spec='${libname}${release}${shared_ext}$major'
8697 shlibpath_var=LIBPATH
8701 amigaos*)
8702 library_names_spec='$libname.ixlibrary $libname.a'
8703 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8704 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'
8707 beos*)
8708 library_names_spec='${libname}${shared_ext}'
8709 dynamic_linker="$host_os ld.so"
8710 shlibpath_var=LIBRARY_PATH
8713 bsdi[45]*)
8714 version_type=linux
8715 need_version=no
8716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717 soname_spec='${libname}${release}${shared_ext}$major'
8718 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8719 shlibpath_var=LD_LIBRARY_PATH
8720 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8721 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8722 # the default ld.so.conf also contains /usr/contrib/lib and
8723 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8724 # libtool to hard-code these into programs
8727 cygwin* | mingw* | pw32*)
8728 version_type=windows
8729 shrext_cmds=".dll"
8730 need_version=no
8731 need_lib_prefix=no
8733 case $GCC,$host_os in
8734 yes,cygwin* | yes,mingw* | yes,pw32*)
8735 library_names_spec='$libname.dll.a'
8736 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8737 postinstall_cmds='base_file=`basename \${file}`~
8738 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8739 dldir=$destdir/`dirname \$dlpath`~
8740 test -d \$dldir || mkdir -p \$dldir~
8741 $install_prog $dir/$dlname \$dldir/$dlname~
8742 chmod a+x \$dldir/$dlname'
8743 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8744 dlpath=$dir/\$dldll~
8745 $rm \$dlpath'
8746 shlibpath_overrides_runpath=yes
8748 case $host_os in
8749 cygwin*)
8750 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8751 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8754 mingw*)
8755 # MinGW DLLs use traditional 'lib' prefix
8756 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8758 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8759 # It is most probably a Windows format PATH printed by
8760 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8761 # path with ; separators, and with drive letters. We can handle the
8762 # drive letters (cygwin fileutils understands them), so leave them,
8763 # especially as we might pass files found there to a mingw objdump,
8764 # which wouldn't understand a cygwinified path. Ahh.
8765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766 else
8767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8770 pw32*)
8771 # pw32 DLLs use 'pw' prefix rather than 'lib'
8772 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8774 esac
8778 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8780 esac
8781 dynamic_linker='Win32 ld.exe'
8782 # FIXME: first we should search . and the directory the executable is in
8783 shlibpath_var=PATH
8786 darwin* | rhapsody*)
8787 dynamic_linker="$host_os dyld"
8788 version_type=darwin
8789 need_lib_prefix=no
8790 need_version=no
8791 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8792 soname_spec='${libname}${release}${major}$shared_ext'
8793 shlibpath_overrides_runpath=yes
8794 shlibpath_var=DYLD_LIBRARY_PATH
8795 shrext_cmds='.dylib'
8796 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8797 if test "$GCC" = yes; then
8798 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"`
8799 else
8800 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8802 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8805 dgux*)
8806 version_type=linux
8807 need_lib_prefix=no
8808 need_version=no
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 shlibpath_var=LD_LIBRARY_PATH
8814 freebsd1*)
8815 dynamic_linker=no
8818 kfreebsd*-gnu)
8819 version_type=linux
8820 need_lib_prefix=no
8821 need_version=no
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8823 soname_spec='${libname}${release}${shared_ext}$major'
8824 shlibpath_var=LD_LIBRARY_PATH
8825 shlibpath_overrides_runpath=no
8826 hardcode_into_libs=yes
8827 dynamic_linker='GNU ld.so'
8830 freebsd* | dragonfly*)
8831 # DragonFly does not have aout. When/if they implement a new
8832 # versioning mechanism, adjust this.
8833 if test -x /usr/bin/objformat; then
8834 objformat=`/usr/bin/objformat`
8835 else
8836 case $host_os in
8837 freebsd[123]*) objformat=aout ;;
8838 *) objformat=elf ;;
8839 esac
8841 version_type=freebsd-$objformat
8842 case $version_type in
8843 freebsd-elf*)
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8845 need_version=no
8846 need_lib_prefix=no
8848 freebsd-*)
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8850 need_version=yes
8852 esac
8853 shlibpath_var=LD_LIBRARY_PATH
8854 case $host_os in
8855 freebsd2*)
8856 shlibpath_overrides_runpath=yes
8858 freebsd3.[01]* | freebsdelf3.[01]*)
8859 shlibpath_overrides_runpath=yes
8860 hardcode_into_libs=yes
8862 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8863 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8864 shlibpath_overrides_runpath=no
8865 hardcode_into_libs=yes
8867 freebsd*) # from 4.6 on
8868 shlibpath_overrides_runpath=yes
8869 hardcode_into_libs=yes
8871 esac
8874 gnu*)
8875 version_type=linux
8876 need_lib_prefix=no
8877 need_version=no
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 shlibpath_var=LD_LIBRARY_PATH
8881 hardcode_into_libs=yes
8884 hpux9* | hpux10* | hpux11*)
8885 # Give a soname corresponding to the major version so that dld.sl refuses to
8886 # link against other versions.
8887 version_type=sunos
8888 need_lib_prefix=no
8889 need_version=no
8890 case $host_cpu in
8891 ia64*)
8892 shrext_cmds='.so'
8893 hardcode_into_libs=yes
8894 dynamic_linker="$host_os dld.so"
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 if test "X$HPUX_IA64_MODE" = X32; then
8900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8901 else
8902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8906 hppa*64*)
8907 shrext_cmds='.sl'
8908 hardcode_into_libs=yes
8909 dynamic_linker="$host_os dld.sl"
8910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8918 shrext_cmds='.sl'
8919 dynamic_linker="$host_os dld.sl"
8920 shlibpath_var=SHLIB_PATH
8921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8925 esac
8926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8927 postinstall_cmds='chmod 555 $lib'
8930 interix3*)
8931 version_type=linux
8932 need_lib_prefix=no
8933 need_version=no
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8935 soname_spec='${libname}${release}${shared_ext}$major'
8936 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=no
8939 hardcode_into_libs=yes
8942 irix5* | irix6* | nonstopux*)
8943 case $host_os in
8944 nonstopux*) version_type=nonstopux ;;
8946 if test "$lt_cv_prog_gnu_ld" = yes; then
8947 version_type=linux
8948 else
8949 version_type=irix
8950 fi ;;
8951 esac
8952 need_lib_prefix=no
8953 need_version=no
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8956 case $host_os in
8957 irix5* | nonstopux*)
8958 libsuff= shlibsuff=
8961 case $LD in # libtool.m4 will add one of these switches to LD
8962 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8963 libsuff= shlibsuff= libmagic=32-bit;;
8964 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8965 libsuff=32 shlibsuff=N32 libmagic=N32;;
8966 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8967 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8968 *) libsuff= shlibsuff= libmagic=never-match;;
8969 esac
8971 esac
8972 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8973 shlibpath_overrides_runpath=no
8974 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8975 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8976 hardcode_into_libs=yes
8979 # No shared lib support for Linux oldld, aout, or coff.
8980 linux*oldld* | linux*aout* | linux*coff*)
8981 dynamic_linker=no
8984 # This must be Linux ELF.
8985 linux*)
8986 version_type=linux
8987 need_lib_prefix=no
8988 need_version=no
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=no
8994 # This implies no fast_install, which is unacceptable.
8995 # Some rework will be needed to allow for fast_install
8996 # before this can be enabled.
8997 hardcode_into_libs=yes
8999 # Append ld.so.conf contents to the search path
9000 if test -f /etc/ld.so.conf; then
9001 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' ' '`
9002 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9005 # We used to test for /lib/ld.so.1 and disable shared libraries on
9006 # powerpc, because MkLinux only supported shared libraries with the
9007 # GNU dynamic linker. Since this was broken with cross compilers,
9008 # most powerpc-linux boxes support dynamic linking these days and
9009 # people can always --disable-shared, the test was removed, and we
9010 # assume the GNU/Linux dynamic linker is in use.
9011 dynamic_linker='GNU/Linux ld.so'
9014 knetbsd*-gnu)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 shlibpath_overrides_runpath=no
9022 hardcode_into_libs=yes
9023 dynamic_linker='GNU ld.so'
9026 netbsd*)
9027 version_type=sunos
9028 need_lib_prefix=no
9029 need_version=no
9030 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9033 dynamic_linker='NetBSD (a.out) ld.so'
9034 else
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 dynamic_linker='NetBSD ld.elf_so'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9041 hardcode_into_libs=yes
9044 newsos6)
9045 version_type=linux
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 shlibpath_overrides_runpath=yes
9051 nto-qnx*)
9052 version_type=linux
9053 need_lib_prefix=no
9054 need_version=no
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9061 openbsd*)
9062 version_type=sunos
9063 sys_lib_dlsearch_path_spec="/usr/lib"
9064 need_lib_prefix=no
9065 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9066 case $host_os in
9067 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9068 *) need_version=no ;;
9069 esac
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9074 case $host_os in
9075 openbsd2.[89] | openbsd2.[89].*)
9076 shlibpath_overrides_runpath=no
9079 shlibpath_overrides_runpath=yes
9081 esac
9082 else
9083 shlibpath_overrides_runpath=yes
9087 os2*)
9088 libname_spec='$name'
9089 shrext_cmds=".dll"
9090 need_lib_prefix=no
9091 library_names_spec='$libname${shared_ext} $libname.a'
9092 dynamic_linker='OS/2 ld.exe'
9093 shlibpath_var=LIBPATH
9096 osf3* | osf4* | osf5*)
9097 version_type=osf
9098 need_lib_prefix=no
9099 need_version=no
9100 soname_spec='${libname}${release}${shared_ext}$major'
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 shlibpath_var=LD_LIBRARY_PATH
9103 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9104 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9107 solaris*)
9108 version_type=linux
9109 need_lib_prefix=no
9110 need_version=no
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 soname_spec='${libname}${release}${shared_ext}$major'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=yes
9115 hardcode_into_libs=yes
9116 # ldd complains unless libraries are executable
9117 postinstall_cmds='chmod +x $lib'
9120 sunos4*)
9121 version_type=sunos
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9123 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=yes
9126 if test "$with_gnu_ld" = yes; then
9127 need_lib_prefix=no
9129 need_version=yes
9132 sysv4 | sysv4.3*)
9133 version_type=linux
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 case $host_vendor in
9138 sni)
9139 shlibpath_overrides_runpath=no
9140 need_lib_prefix=no
9141 export_dynamic_flag_spec='${wl}-Blargedynsym'
9142 runpath_var=LD_RUN_PATH
9144 siemens)
9145 need_lib_prefix=no
9147 motorola)
9148 need_lib_prefix=no
9149 need_version=no
9150 shlibpath_overrides_runpath=no
9151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9153 esac
9156 sysv4*MP*)
9157 if test -d /usr/nec ;then
9158 version_type=linux
9159 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9160 soname_spec='$libname${shared_ext}.$major'
9161 shlibpath_var=LD_LIBRARY_PATH
9165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9166 version_type=freebsd-elf
9167 need_lib_prefix=no
9168 need_version=no
9169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9170 soname_spec='${libname}${release}${shared_ext}$major'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 hardcode_into_libs=yes
9173 if test "$with_gnu_ld" = yes; then
9174 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9175 shlibpath_overrides_runpath=no
9176 else
9177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9178 shlibpath_overrides_runpath=yes
9179 case $host_os in
9180 sco3.2v5*)
9181 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9183 esac
9185 sys_lib_dlsearch_path_spec='/usr/lib'
9188 uts4*)
9189 version_type=linux
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 shlibpath_var=LD_LIBRARY_PATH
9196 dynamic_linker=no
9198 esac
9199 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9200 echo "${ECHO_T}$dynamic_linker" >&6; }
9201 test "$dynamic_linker" = no && can_build_shared=no
9203 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9204 if test "$GCC" = yes; then
9205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9209 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9210 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9211 if test "${libltdl_cv_shlibext+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9215 module=yes
9216 eval libltdl_cv_shlibext=$shrext_cmds
9219 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9220 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9221 if test -n "$libltdl_cv_shlibext"; then
9223 cat >>confdefs.h <<_ACEOF
9224 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9225 _ACEOF
9230 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9231 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9232 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235 libltdl_cv_shlibpath_var="$shlibpath_var"
9237 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9238 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9239 if test -n "$libltdl_cv_shlibpath_var"; then
9241 cat >>confdefs.h <<_ACEOF
9242 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9243 _ACEOF
9248 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9249 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9250 if test "${libltdl_cv_sys_search_path+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9255 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9256 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9257 if test -n "$libltdl_cv_sys_search_path"; then
9258 sys_search_path=
9259 for dir in $libltdl_cv_sys_search_path; do
9260 if test -z "$sys_search_path"; then
9261 sys_search_path="$dir"
9262 else
9263 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9265 done
9267 cat >>confdefs.h <<_ACEOF
9268 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9269 _ACEOF
9273 { echo "$as_me:$LINENO: checking for objdir" >&5
9274 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9275 if test "${libltdl_cv_objdir+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278 libltdl_cv_objdir="$objdir"
9279 if test -n "$objdir"; then
9281 else
9282 rm -f .libs 2>/dev/null
9283 mkdir .libs 2>/dev/null
9284 if test -d .libs; then
9285 libltdl_cv_objdir=.libs
9286 else
9287 # MS-DOS does not allow filenames that begin with a dot.
9288 libltdl_cv_objdir=_libs
9290 rmdir .libs 2>/dev/null
9294 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9295 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9297 cat >>confdefs.h <<_ACEOF
9298 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9299 _ACEOF
9306 # Check for command to grab the raw symbol name followed by C symbol from nm.
9307 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9308 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9309 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9313 # These are sane defaults that work on at least a few old systems.
9314 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9316 # Character class describing NM global symbol codes.
9317 symcode='[BCDEGRST]'
9319 # Regexp to match symbols that can be accessed directly from C.
9320 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9322 # Transform an extracted symbol line into a proper C declaration
9323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9325 # Transform an extracted symbol line into symbol name and symbol address
9326 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'"
9328 # Define system-specific variables.
9329 case $host_os in
9330 aix*)
9331 symcode='[BCDT]'
9333 cygwin* | mingw* | pw32*)
9334 symcode='[ABCDGISTW]'
9336 hpux*) # Its linker distinguishes data from code symbols
9337 if test "$host_cpu" = ia64; then
9338 symcode='[ABCDEGRST]'
9340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9341 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'"
9343 linux*)
9344 if test "$host_cpu" = ia64; then
9345 symcode='[ABCDGIRSTW]'
9346 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9347 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'"
9350 irix* | nonstopux*)
9351 symcode='[BCDEGRST]'
9353 osf*)
9354 symcode='[BCDEGQRST]'
9356 solaris*)
9357 symcode='[BDRT]'
9359 sco3.2v5*)
9360 symcode='[DT]'
9362 sysv4.2uw2*)
9363 symcode='[DT]'
9365 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9366 symcode='[ABDT]'
9368 sysv4)
9369 symcode='[DFNSTU]'
9371 esac
9373 # Handle CRLF in mingw tool chain
9374 opt_cr=
9375 case $build_os in
9376 mingw*)
9377 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9379 esac
9381 # If we're using GNU nm, then use its standard symbol codes.
9382 case `$NM -V 2>&1` in
9383 *GNU* | *'with BFD'*)
9384 symcode='[ABCDGIRSTW]' ;;
9385 esac
9387 # Try without a prefix undercore, then with it.
9388 for ac_symprfx in "" "_"; do
9390 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9391 symxfrm="\\1 $ac_symprfx\\2 \\2"
9393 # Write the raw and C identifiers.
9394 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9396 # Check to see that the pipe works correctly.
9397 pipe_works=no
9399 rm -f conftest*
9400 cat > conftest.$ac_ext <<EOF
9401 #ifdef __cplusplus
9402 extern "C" {
9403 #endif
9404 char nm_test_var;
9405 void nm_test_func(){}
9406 #ifdef __cplusplus
9408 #endif
9409 int main(){nm_test_var='a';nm_test_func();return(0);}
9412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413 (eval $ac_compile) 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; then
9417 # Now try to grab the symbols.
9418 nlist=conftest.nm
9419 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9420 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } && test -s "$nlist"; then
9424 # Try sorting and uniquifying the output.
9425 if sort "$nlist" | uniq > "$nlist"T; then
9426 mv -f "$nlist"T "$nlist"
9427 else
9428 rm -f "$nlist"T
9431 # Make sure that we snagged all the symbols we need.
9432 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9433 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9434 cat <<EOF > conftest.$ac_ext
9435 #ifdef __cplusplus
9436 extern "C" {
9437 #endif
9440 # Now generate the symbol file.
9441 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9443 cat <<EOF >> conftest.$ac_ext
9444 #if defined (__STDC__) && __STDC__
9445 # define lt_ptr_t void *
9446 #else
9447 # define lt_ptr_t char *
9448 # define const
9449 #endif
9451 /* The mapping between symbol names and symbols. */
9452 const struct {
9453 const char *name;
9454 lt_ptr_t address;
9456 lt_preloaded_symbols[] =
9459 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9460 cat <<\EOF >> conftest.$ac_ext
9461 {0, (lt_ptr_t) 0}
9464 #ifdef __cplusplus
9466 #endif
9468 # Now try linking the two files.
9469 mv conftest.$ac_objext conftstm.$ac_objext
9470 lt_save_LIBS="$LIBS"
9471 lt_save_CFLAGS="$CFLAGS"
9472 LIBS="conftstm.$ac_objext"
9473 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475 (eval $ac_link) 2>&5
9476 ac_status=$?
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9479 pipe_works=yes
9481 LIBS="$lt_save_LIBS"
9482 CFLAGS="$lt_save_CFLAGS"
9483 else
9484 echo "cannot find nm_test_func in $nlist" >&5
9486 else
9487 echo "cannot find nm_test_var in $nlist" >&5
9489 else
9490 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9492 else
9493 echo "$progname: failed program was:" >&5
9494 cat conftest.$ac_ext >&5
9496 rm -f conftest* conftst*
9498 # Do not use the global_symbol_pipe unless it works.
9499 if test "$pipe_works" = yes; then
9500 break
9501 else
9502 lt_cv_sys_global_symbol_pipe=
9504 done
9508 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9509 lt_cv_sys_global_symbol_to_cdecl=
9511 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9512 { echo "$as_me:$LINENO: result: failed" >&5
9513 echo "${ECHO_T}failed" >&6; }
9514 else
9515 { echo "$as_me:$LINENO: result: ok" >&5
9516 echo "${ECHO_T}ok" >&6; }
9520 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9521 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9522 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 else
9525 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9526 libltdl_cv_preloaded_symbols=yes
9527 else
9528 libltdl_cv_preloaded_symbols=no
9532 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9533 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9534 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9536 cat >>confdefs.h <<\_ACEOF
9537 #define HAVE_PRELOADED_SYMBOLS 1
9538 _ACEOF
9542 LIBADD_DL=
9544 ac_ext=c
9545 ac_cpp='$CPP $CPPFLAGS'
9546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9551 { echo "$as_me:$LINENO: checking for shl_load" >&5
9552 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9553 if test "${ac_cv_func_shl_load+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h. */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9564 #define shl_load innocuous_shl_load
9566 /* System header to define __stub macros and hopefully few prototypes,
9567 which can conflict with char shl_load (); below.
9568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9569 <limits.h> exists even on freestanding compilers. */
9571 #ifdef __STDC__
9572 # include <limits.h>
9573 #else
9574 # include <assert.h>
9575 #endif
9577 #undef shl_load
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 char shl_load ();
9586 /* The GNU C library defines this for functions which it implements
9587 to always fail with ENOSYS. Some functions are actually named
9588 something starting with __ and the normal name is an alias. */
9589 #if defined __stub_shl_load || defined __stub___shl_load
9590 choke me
9591 #endif
9594 main ()
9596 return shl_load ();
9598 return 0;
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9603 case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } &&
9615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9616 { (case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_try") 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_try") 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; }; then
9635 ac_cv_func_shl_load=yes
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 ac_cv_func_shl_load=no
9643 rm -f core conftest.err conftest.$ac_objext \
9644 conftest$ac_exeext conftest.$ac_ext
9646 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9647 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9648 if test $ac_cv_func_shl_load = yes; then
9650 cat >>confdefs.h <<\_ACEOF
9651 #define HAVE_SHL_LOAD 1
9652 _ACEOF
9654 else
9655 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9656 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9657 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660 ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-ldld $LIBS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9669 /* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
9672 #ifdef __cplusplus
9673 extern "C"
9674 #endif
9675 char shl_load ();
9677 main ()
9679 return shl_load ();
9681 return 0;
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9686 case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_link") 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9699 { (case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9702 esac
9703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704 (eval "$ac_try") 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9712 esac
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_try") 2>&5
9715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_lib_dld_shl_load=yes
9719 else
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9723 ac_cv_lib_dld_shl_load=no
9726 rm -f core conftest.err conftest.$ac_objext \
9727 conftest$ac_exeext conftest.$ac_ext
9728 LIBS=$ac_check_lib_save_LIBS
9730 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9731 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9732 if test $ac_cv_lib_dld_shl_load = yes; then
9734 cat >>confdefs.h <<\_ACEOF
9735 #define HAVE_SHL_LOAD 1
9736 _ACEOF
9738 LIBADD_DL="$LIBADD_DL -ldld"
9739 else
9740 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9741 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9742 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744 else
9745 ac_check_lib_save_LIBS=$LIBS
9746 LIBS="-ldl $LIBS"
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h. */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9754 /* Override any GCC internal prototype to avoid an error.
9755 Use char because int might match the return type of a GCC
9756 builtin and then its argument prototype would still apply. */
9757 #ifdef __cplusplus
9758 extern "C"
9759 #endif
9760 char dlopen ();
9762 main ()
9764 return dlopen ();
9766 return 0;
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9771 case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_link") 2>conftest.er1
9777 ac_status=$?
9778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784 { (case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_try") 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 ac_cv_lib_dl_dlopen=yes
9804 else
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_cv_lib_dl_dlopen=no
9811 rm -f core conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9813 LIBS=$ac_check_lib_save_LIBS
9815 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9816 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9817 if test $ac_cv_lib_dl_dlopen = yes; then
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_LIBDL 1
9821 _ACEOF
9823 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9824 else
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 #if HAVE_DLFCN_H
9832 # include <dlfcn.h>
9833 #endif
9836 main ()
9838 dlopen(0, 0);
9840 return 0;
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9845 case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9858 { (case "(($ac_try" in
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9861 esac
9862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9863 (eval "$ac_try") 2>&5
9864 ac_status=$?
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try='test -s conftest$ac_exeext'
9868 { (case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871 esac
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_try") 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9878 cat >>confdefs.h <<\_ACEOF
9879 #define HAVE_LIBDL 1
9880 _ACEOF
9881 libltdl_cv_func_dlopen="yes"
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9887 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9888 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 else
9891 ac_check_lib_save_LIBS=$LIBS
9892 LIBS="-lsvld $LIBS"
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h. */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9900 /* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
9903 #ifdef __cplusplus
9904 extern "C"
9905 #endif
9906 char dlopen ();
9908 main ()
9910 return dlopen ();
9912 return 0;
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9917 case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
9923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
9929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9930 { (case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933 esac
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_try") 2>&5
9936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try='test -s conftest$ac_exeext'
9940 { (case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_try") 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_lib_svld_dlopen=yes
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_cv_lib_svld_dlopen=no
9957 rm -f core conftest.err conftest.$ac_objext \
9958 conftest$ac_exeext conftest.$ac_ext
9959 LIBS=$ac_check_lib_save_LIBS
9961 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9962 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9963 if test $ac_cv_lib_svld_dlopen = yes; then
9965 cat >>confdefs.h <<\_ACEOF
9966 #define HAVE_LIBDL 1
9967 _ACEOF
9969 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9970 else
9971 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9972 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9973 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976 ac_check_lib_save_LIBS=$LIBS
9977 LIBS="-ldld $LIBS"
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9985 /* Override any GCC internal prototype to avoid an error.
9986 Use char because int might match the return type of a GCC
9987 builtin and then its argument prototype would still apply. */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 char dld_link ();
9993 main ()
9995 return dld_link ();
9997 return 0;
9999 _ACEOF
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_link") 2>conftest.er1
10008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10015 { (case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10018 esac
10019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_try") 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest$ac_exeext'
10025 { (case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_lib_dld_dld_link=yes
10035 else
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10039 ac_cv_lib_dld_dld_link=no
10042 rm -f core conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10046 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10047 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10048 if test $ac_cv_lib_dld_dld_link = yes; then
10050 cat >>confdefs.h <<\_ACEOF
10051 #define HAVE_DLD 1
10052 _ACEOF
10054 LIBADD_DL="$LIBADD_DL -ldld"
10055 else
10056 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10057 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10058 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h. */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10069 #define _dyld_func_lookup innocuous__dyld_func_lookup
10071 /* System header to define __stub macros and hopefully few prototypes,
10072 which can conflict with char _dyld_func_lookup (); below.
10073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10074 <limits.h> exists even on freestanding compilers. */
10076 #ifdef __STDC__
10077 # include <limits.h>
10078 #else
10079 # include <assert.h>
10080 #endif
10082 #undef _dyld_func_lookup
10084 /* Override any GCC internal prototype to avoid an error.
10085 Use char because int might match the return type of a GCC
10086 builtin and then its argument prototype would still apply. */
10087 #ifdef __cplusplus
10088 extern "C"
10089 #endif
10090 char _dyld_func_lookup ();
10091 /* The GNU C library defines this for functions which it implements
10092 to always fail with ENOSYS. Some functions are actually named
10093 something starting with __ and the normal name is an alias. */
10094 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10095 choke me
10096 #endif
10099 main ()
10101 return _dyld_func_lookup ();
10103 return 0;
10105 _ACEOF
10106 rm -f conftest.$ac_objext conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>conftest.er1
10114 ac_status=$?
10115 grep -v '^ *+' conftest.er1 >conftest.err
10116 rm -f conftest.er1
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10121 { (case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_try") 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_try") 2>&5
10137 ac_status=$?
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_func__dyld_func_lookup=yes
10141 else
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10145 ac_cv_func__dyld_func_lookup=no
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10151 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10152 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10153 if test $ac_cv_func__dyld_func_lookup = yes; then
10155 cat >>confdefs.h <<\_ACEOF
10156 #define HAVE_DYLD 1
10157 _ACEOF
10170 rm -f core conftest.err conftest.$ac_objext \
10171 conftest$ac_exeext conftest.$ac_ext
10182 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10183 then
10184 lt_save_LIBS="$LIBS"
10185 LIBS="$LIBS $LIBADD_DL"
10187 for ac_func in dlerror
10189 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10190 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10191 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10192 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195 cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h. */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10203 #define $ac_func innocuous_$ac_func
10205 /* System header to define __stub macros and hopefully few prototypes,
10206 which can conflict with char $ac_func (); below.
10207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10208 <limits.h> exists even on freestanding compilers. */
10210 #ifdef __STDC__
10211 # include <limits.h>
10212 #else
10213 # include <assert.h>
10214 #endif
10216 #undef $ac_func
10218 /* Override any GCC internal prototype to avoid an error.
10219 Use char because int might match the return type of a GCC
10220 builtin and then its argument prototype would still apply. */
10221 #ifdef __cplusplus
10222 extern "C"
10223 #endif
10224 char $ac_func ();
10225 /* The GNU C library defines this for functions which it implements
10226 to always fail with ENOSYS. Some functions are actually named
10227 something starting with __ and the normal name is an alias. */
10228 #if defined __stub_$ac_func || defined __stub___$ac_func
10229 choke me
10230 #endif
10233 main ()
10235 return $ac_func ();
10237 return 0;
10239 _ACEOF
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (ac_try="$ac_link"
10242 case "(($ac_try" in
10243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10245 esac
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_link") 2>conftest.er1
10248 ac_status=$?
10249 grep -v '^ *+' conftest.er1 >conftest.err
10250 rm -f conftest.er1
10251 cat conftest.err >&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10255 { (case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_try") 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
10265 { (case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_try") 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 eval "$as_ac_var=yes"
10275 else
10276 echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10279 eval "$as_ac_var=no"
10282 rm -f core conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10285 ac_res=`eval echo '${'$as_ac_var'}'`
10286 { echo "$as_me:$LINENO: result: $ac_res" >&5
10287 echo "${ECHO_T}$ac_res" >&6; }
10288 if test `eval echo '${'$as_ac_var'}'` = yes; then
10289 cat >>confdefs.h <<_ACEOF
10290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10291 _ACEOF
10294 done
10296 LIBS="$lt_save_LIBS"
10298 ac_ext=c
10299 ac_cpp='$CPP $CPPFLAGS'
10300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10306 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10307 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10308 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311 ac_cv_sys_symbol_underscore=no
10312 cat > conftest.$ac_ext <<EOF
10313 void nm_test_func(){}
10314 int main(){nm_test_func;return 0;}
10316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10317 (eval $ac_compile) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; then
10321 # Now try to grab the symbols.
10322 ac_nlist=conftest.nm
10323 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10324 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10325 ac_status=$?
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } && test -s "$ac_nlist"; then
10328 # See whether the symbols have a leading underscore.
10329 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10330 ac_cv_sys_symbol_underscore=yes
10331 else
10332 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10334 else
10335 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10338 else
10339 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10341 else
10342 echo "configure: failed program was:" >&5
10343 cat conftest.c >&5
10345 rm -rf conftest*
10348 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10349 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10352 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10353 if test x"$libltdl_cv_func_dlopen" = xyes ||
10354 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10355 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10356 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10357 if test "${libltdl_cv_need_uscore+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360 libltdl_cv_need_uscore=unknown
10361 save_LIBS="$LIBS"
10362 LIBS="$LIBS $LIBADD_DL"
10363 if test "$cross_compiling" = yes; then :
10364 libltdl_cv_need_uscore=cross
10365 else
10366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10367 lt_status=$lt_dlunknown
10368 cat > conftest.$ac_ext <<EOF
10369 #line 10369 "configure"
10370 #include "confdefs.h"
10372 #if HAVE_DLFCN_H
10373 #include <dlfcn.h>
10374 #endif
10376 #include <stdio.h>
10378 #ifdef RTLD_GLOBAL
10379 # define LT_DLGLOBAL RTLD_GLOBAL
10380 #else
10381 # ifdef DL_GLOBAL
10382 # define LT_DLGLOBAL DL_GLOBAL
10383 # else
10384 # define LT_DLGLOBAL 0
10385 # endif
10386 #endif
10388 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10389 find out it does not work in some platform. */
10390 #ifndef LT_DLLAZY_OR_NOW
10391 # ifdef RTLD_LAZY
10392 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10393 # else
10394 # ifdef DL_LAZY
10395 # define LT_DLLAZY_OR_NOW DL_LAZY
10396 # else
10397 # ifdef RTLD_NOW
10398 # define LT_DLLAZY_OR_NOW RTLD_NOW
10399 # else
10400 # ifdef DL_NOW
10401 # define LT_DLLAZY_OR_NOW DL_NOW
10402 # else
10403 # define LT_DLLAZY_OR_NOW 0
10404 # endif
10405 # endif
10406 # endif
10407 # endif
10408 #endif
10410 #ifdef __cplusplus
10411 extern "C" void exit (int);
10412 #endif
10414 void fnord() { int i=42;}
10415 int main ()
10417 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10418 int status = $lt_dlunknown;
10420 if (self)
10422 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10423 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10424 /* dlclose (self); */
10426 else
10427 puts (dlerror ());
10429 exit (status);
10432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10433 (eval $ac_link) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10437 (./conftest; exit; ) >&5 2>/dev/null
10438 lt_status=$?
10439 case x$lt_status in
10440 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10441 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10442 x$lt_dlunknown|x*) ;;
10443 esac
10444 else :
10445 # compilation failed
10449 rm -fr conftest*
10451 LIBS="$save_LIBS"
10454 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10455 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10459 if test x"$libltdl_cv_need_uscore" = xyes; then
10461 cat >>confdefs.h <<\_ACEOF
10462 #define NEED_USCORE 1
10463 _ACEOF
10468 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10469 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10470 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473 # PORTME does your system automatically load deplibs for dlopen?
10474 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10475 # For now, we just catch OSes we know something about -- in the
10476 # future, we'll try test this programmatically.
10477 libltdl_cv_sys_dlopen_deplibs=unknown
10478 case "$host_os" in
10479 aix3*|aix4.1.*|aix4.2.*)
10480 # Unknown whether this is true for these versions of AIX, but
10481 # we want this `case' here to explicitly catch those versions.
10482 libltdl_cv_sys_dlopen_deplibs=unknown
10484 aix[45]*)
10485 libltdl_cv_sys_dlopen_deplibs=yes
10487 darwin*)
10488 # Assuming the user has installed a libdl from somewhere, this is true
10489 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10490 libltdl_cv_sys_dlopen_deplibs=yes
10492 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10493 # GNU and its variants, using gnu ld.so (Glibc)
10494 libltdl_cv_sys_dlopen_deplibs=yes
10496 hpux10*|hpux11*)
10497 libltdl_cv_sys_dlopen_deplibs=yes
10499 interix*)
10500 libltdl_cv_sys_dlopen_deplibs=yes
10502 irix[12345]*|irix6.[01]*)
10503 # Catch all versions of IRIX before 6.2, and indicate that we don't
10504 # know how it worked for any of those versions.
10505 libltdl_cv_sys_dlopen_deplibs=unknown
10507 irix*)
10508 # The case above catches anything before 6.2, and it's known that
10509 # at 6.2 and later dlopen does load deplibs.
10510 libltdl_cv_sys_dlopen_deplibs=yes
10512 netbsd*)
10513 libltdl_cv_sys_dlopen_deplibs=yes
10515 openbsd*)
10516 libltdl_cv_sys_dlopen_deplibs=yes
10518 osf[1234]*)
10519 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10520 # it did *not* use an RPATH in a shared library to find objects the
10521 # library depends on, so we explictly say `no'.
10522 libltdl_cv_sys_dlopen_deplibs=no
10524 osf5.0|osf5.0a|osf5.1)
10525 # dlopen *does* load deplibs and with the right loader patch applied
10526 # it even uses RPATH in a shared library to search for shared objects
10527 # that the library depends on, but there's no easy way to know if that
10528 # patch is installed. Since this is the case, all we can really
10529 # say is unknown -- it depends on the patch being installed. If
10530 # it is, this changes to `yes'. Without it, it would be `no'.
10531 libltdl_cv_sys_dlopen_deplibs=unknown
10533 osf*)
10534 # the two cases above should catch all versions of osf <= 5.1. Read
10535 # the comments above for what we know about them.
10536 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10537 # is used to find them so we can finally say `yes'.
10538 libltdl_cv_sys_dlopen_deplibs=yes
10540 solaris*)
10541 libltdl_cv_sys_dlopen_deplibs=yes
10543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10544 libltdl_cv_sys_dlopen_deplibs=yes
10546 esac
10549 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10550 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10551 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10553 cat >>confdefs.h <<\_ACEOF
10554 #define LTDL_DLOPEN_DEPLIBS 1
10555 _ACEOF
10560 for ac_header in argz.h
10562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 ac_res=`eval echo '${'$as_ac_Header'}'`
10570 { echo "$as_me:$LINENO: result: $ac_res" >&5
10571 echo "${ECHO_T}$ac_res" >&6; }
10572 else
10573 # Is the header compilable?
10574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 $ac_includes_default
10583 #include <$ac_header>
10584 _ACEOF
10585 rm -f conftest.$ac_objext
10586 if { (ac_try="$ac_compile"
10587 case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10590 esac
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_compile") 2>conftest.er1
10593 ac_status=$?
10594 grep -v '^ *+' conftest.er1 >conftest.err
10595 rm -f conftest.er1
10596 cat conftest.err >&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); } &&
10599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600 { (case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10603 esac
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605 (eval "$ac_try") 2>&5
10606 ac_status=$?
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); }; } &&
10609 { ac_try='test -s conftest.$ac_objext'
10610 { (case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10613 esac
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_try") 2>&5
10616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
10619 ac_header_compiler=yes
10620 else
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 ac_header_compiler=no
10627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10629 echo "${ECHO_T}$ac_header_compiler" >&6; }
10631 # Is the header present?
10632 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h. */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h. */
10640 #include <$ac_header>
10641 _ACEOF
10642 if { (ac_try="$ac_cpp conftest.$ac_ext"
10643 case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } >/dev/null; then
10655 if test -s conftest.err; then
10656 ac_cpp_err=$ac_c_preproc_warn_flag
10657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10658 else
10659 ac_cpp_err=
10661 else
10662 ac_cpp_err=yes
10664 if test -z "$ac_cpp_err"; then
10665 ac_header_preproc=yes
10666 else
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 ac_header_preproc=no
10673 rm -f conftest.err conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675 echo "${ECHO_T}$ac_header_preproc" >&6; }
10677 # So? What about this header?
10678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10679 yes:no: )
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10684 ac_header_preproc=yes
10686 no:yes:* )
10687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10699 ( cat <<\_ASBOX
10700 ## ----------------------------------- ##
10701 ## Report this to llvmbugs@cs.uiuc.edu ##
10702 ## ----------------------------------- ##
10703 _ASBOX
10704 ) | sed "s/^/$as_me: WARNING: /" >&2
10706 esac
10707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712 eval "$as_ac_Header=\$ac_header_preproc"
10714 ac_res=`eval echo '${'$as_ac_Header'}'`
10715 { echo "$as_me:$LINENO: result: $ac_res" >&5
10716 echo "${ECHO_T}$ac_res" >&6; }
10719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10720 cat >>confdefs.h <<_ACEOF
10721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10722 _ACEOF
10726 done
10729 { echo "$as_me:$LINENO: checking for error_t" >&5
10730 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10731 if test "${ac_cv_type_error_t+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734 cat >conftest.$ac_ext <<_ACEOF
10735 /* confdefs.h. */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 #if HAVE_ARGZ_H
10741 # include <argz.h>
10742 #endif
10744 typedef error_t ac__type_new_;
10746 main ()
10748 if ((ac__type_new_ *) 0)
10749 return 0;
10750 if (sizeof (ac__type_new_))
10751 return 0;
10753 return 0;
10755 _ACEOF
10756 rm -f conftest.$ac_objext
10757 if { (ac_try="$ac_compile"
10758 case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10761 esac
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_compile") 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10771 { (case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774 esac
10775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10776 (eval "$ac_try") 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest.$ac_objext'
10781 { (case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_try") 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_cv_type_error_t=yes
10791 else
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_cv_type_error_t=no
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10800 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10801 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10802 if test $ac_cv_type_error_t = yes; then
10804 cat >>confdefs.h <<_ACEOF
10805 #define HAVE_ERROR_T 1
10806 _ACEOF
10809 else
10811 cat >>confdefs.h <<\_ACEOF
10812 #define error_t int
10813 _ACEOF
10823 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h. */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10839 #define $ac_func innocuous_$ac_func
10841 /* System header to define __stub macros and hopefully few prototypes,
10842 which can conflict with char $ac_func (); below.
10843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844 <limits.h> exists even on freestanding compilers. */
10846 #ifdef __STDC__
10847 # include <limits.h>
10848 #else
10849 # include <assert.h>
10850 #endif
10852 #undef $ac_func
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char $ac_func ();
10861 /* The GNU C library defines this for functions which it implements
10862 to always fail with ENOSYS. Some functions are actually named
10863 something starting with __ and the normal name is an alias. */
10864 #if defined __stub_$ac_func || defined __stub___$ac_func
10865 choke me
10866 #endif
10869 main ()
10871 return $ac_func ();
10873 return 0;
10875 _ACEOF
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_link") 2>conftest.er1
10884 ac_status=$?
10885 grep -v '^ *+' conftest.er1 >conftest.err
10886 rm -f conftest.er1
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
10890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; } &&
10900 { ac_try='test -s conftest$ac_exeext'
10901 { (case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10904 esac
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_try") 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 eval "$as_ac_var=yes"
10911 else
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 eval "$as_ac_var=no"
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10921 ac_res=`eval echo '${'$as_ac_var'}'`
10922 { echo "$as_me:$LINENO: result: $ac_res" >&5
10923 echo "${ECHO_T}$ac_res" >&6; }
10924 if test `eval echo '${'$as_ac_var'}'` = yes; then
10925 cat >>confdefs.h <<_ACEOF
10926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10927 _ACEOF
10930 done
10959 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10960 stdio.h unistd.h
10962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 ac_res=`eval echo '${'$as_ac_Header'}'`
10970 { echo "$as_me:$LINENO: result: $ac_res" >&5
10971 echo "${ECHO_T}$ac_res" >&6; }
10972 else
10973 # Is the header compilable?
10974 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10976 cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h. */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h. */
10982 $ac_includes_default
10983 #include <$ac_header>
10984 _ACEOF
10985 rm -f conftest.$ac_objext
10986 if { (ac_try="$ac_compile"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_compile") 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11000 { (case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_try") 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; } &&
11009 { ac_try='test -s conftest.$ac_objext'
11010 { (case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_try") 2>&5
11016 ac_status=$?
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 ac_header_compiler=yes
11020 else
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11024 ac_header_compiler=no
11027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029 echo "${ECHO_T}$ac_header_compiler" >&6; }
11031 # Is the header present?
11032 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11034 cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h. */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11040 #include <$ac_header>
11041 _ACEOF
11042 if { (ac_try="$ac_cpp conftest.$ac_ext"
11043 case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11049 ac_status=$?
11050 grep -v '^ *+' conftest.er1 >conftest.err
11051 rm -f conftest.er1
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } >/dev/null; then
11055 if test -s conftest.err; then
11056 ac_cpp_err=$ac_c_preproc_warn_flag
11057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11058 else
11059 ac_cpp_err=
11061 else
11062 ac_cpp_err=yes
11064 if test -z "$ac_cpp_err"; then
11065 ac_header_preproc=yes
11066 else
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11070 ac_header_preproc=no
11073 rm -f conftest.err conftest.$ac_ext
11074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11075 echo "${ECHO_T}$ac_header_preproc" >&6; }
11077 # So? What about this header?
11078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11079 yes:no: )
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11084 ac_header_preproc=yes
11086 no:yes:* )
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11099 ( cat <<\_ASBOX
11100 ## ----------------------------------- ##
11101 ## Report this to llvmbugs@cs.uiuc.edu ##
11102 ## ----------------------------------- ##
11103 _ASBOX
11104 ) | sed "s/^/$as_me: WARNING: /" >&2
11106 esac
11107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11112 eval "$as_ac_Header=\$ac_header_preproc"
11114 ac_res=`eval echo '${'$as_ac_Header'}'`
11115 { echo "$as_me:$LINENO: result: $ac_res" >&5
11116 echo "${ECHO_T}$ac_res" >&6; }
11119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11122 _ACEOF
11126 done
11132 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 ac_res=`eval echo '${'$as_ac_Header'}'`
11142 { echo "$as_me:$LINENO: result: $ac_res" >&5
11143 echo "${ECHO_T}$ac_res" >&6; }
11144 else
11145 # Is the header compilable?
11146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11148 cat >conftest.$ac_ext <<_ACEOF
11149 /* confdefs.h. */
11150 _ACEOF
11151 cat confdefs.h >>conftest.$ac_ext
11152 cat >>conftest.$ac_ext <<_ACEOF
11153 /* end confdefs.h. */
11154 $ac_includes_default
11155 #include <$ac_header>
11156 _ACEOF
11157 rm -f conftest.$ac_objext
11158 if { (ac_try="$ac_compile"
11159 case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11162 esac
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_compile") 2>conftest.er1
11165 ac_status=$?
11166 grep -v '^ *+' conftest.er1 >conftest.err
11167 rm -f conftest.er1
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11172 { (case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11175 esac
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_try") 2>&5
11178 ac_status=$?
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); }; } &&
11181 { ac_try='test -s conftest.$ac_objext'
11182 { (case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_try") 2>&5
11188 ac_status=$?
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_header_compiler=yes
11192 else
11193 echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11196 ac_header_compiler=no
11199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11201 echo "${ECHO_T}$ac_header_compiler" >&6; }
11203 # Is the header present?
11204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h. */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h. */
11212 #include <$ac_header>
11213 _ACEOF
11214 if { (ac_try="$ac_cpp conftest.$ac_ext"
11215 case "(($ac_try" in
11216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217 *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } >/dev/null; then
11227 if test -s conftest.err; then
11228 ac_cpp_err=$ac_c_preproc_warn_flag
11229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11230 else
11231 ac_cpp_err=
11233 else
11234 ac_cpp_err=yes
11236 if test -z "$ac_cpp_err"; then
11237 ac_header_preproc=yes
11238 else
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11242 ac_header_preproc=no
11245 rm -f conftest.err conftest.$ac_ext
11246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11247 echo "${ECHO_T}$ac_header_preproc" >&6; }
11249 # So? What about this header?
11250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11251 yes:no: )
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11256 ac_header_preproc=yes
11258 no:yes:* )
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11271 ( cat <<\_ASBOX
11272 ## ----------------------------------- ##
11273 ## Report this to llvmbugs@cs.uiuc.edu ##
11274 ## ----------------------------------- ##
11275 _ASBOX
11276 ) | sed "s/^/$as_me: WARNING: /" >&2
11278 esac
11279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284 eval "$as_ac_Header=\$ac_header_preproc"
11286 ac_res=`eval echo '${'$as_ac_Header'}'`
11287 { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11292 cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11294 _ACEOF
11298 done
11302 for ac_header in string.h strings.h
11304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 ac_res=`eval echo '${'$as_ac_Header'}'`
11312 { echo "$as_me:$LINENO: result: $ac_res" >&5
11313 echo "${ECHO_T}$ac_res" >&6; }
11314 else
11315 # Is the header compilable?
11316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h. */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324 $ac_includes_default
11325 #include <$ac_header>
11326 _ACEOF
11327 rm -f conftest.$ac_objext
11328 if { (ac_try="$ac_compile"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
11341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; } &&
11351 { ac_try='test -s conftest.$ac_objext'
11352 { (case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11355 esac
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_try") 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_header_compiler=yes
11362 else
11363 echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11366 ac_header_compiler=no
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11371 echo "${ECHO_T}$ac_header_compiler" >&6; }
11373 # Is the header present?
11374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h. */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 #include <$ac_header>
11383 _ACEOF
11384 if { (ac_try="$ac_cpp conftest.$ac_ext"
11385 case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11388 esac
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev/null; then
11397 if test -s conftest.err; then
11398 ac_cpp_err=$ac_c_preproc_warn_flag
11399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11400 else
11401 ac_cpp_err=
11403 else
11404 ac_cpp_err=yes
11406 if test -z "$ac_cpp_err"; then
11407 ac_header_preproc=yes
11408 else
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 ac_header_preproc=no
11415 rm -f conftest.err conftest.$ac_ext
11416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11417 echo "${ECHO_T}$ac_header_preproc" >&6; }
11419 # So? What about this header?
11420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421 yes:no: )
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11426 ac_header_preproc=yes
11428 no:yes:* )
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11441 ( cat <<\_ASBOX
11442 ## ----------------------------------- ##
11443 ## Report this to llvmbugs@cs.uiuc.edu ##
11444 ## ----------------------------------- ##
11445 _ASBOX
11446 ) | sed "s/^/$as_me: WARNING: /" >&2
11448 esac
11449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454 eval "$as_ac_Header=\$ac_header_preproc"
11456 ac_res=`eval echo '${'$as_ac_Header'}'`
11457 { echo "$as_me:$LINENO: result: $ac_res" >&5
11458 echo "${ECHO_T}$ac_res" >&6; }
11461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11464 _ACEOF
11465 break
11468 done
11473 for ac_func in strchr index
11475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481 cat >conftest.$ac_ext <<_ACEOF
11482 /* confdefs.h. */
11483 _ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11489 #define $ac_func innocuous_$ac_func
11491 /* System header to define __stub macros and hopefully few prototypes,
11492 which can conflict with char $ac_func (); below.
11493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494 <limits.h> exists even on freestanding compilers. */
11496 #ifdef __STDC__
11497 # include <limits.h>
11498 #else
11499 # include <assert.h>
11500 #endif
11502 #undef $ac_func
11504 /* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
11507 #ifdef __cplusplus
11508 extern "C"
11509 #endif
11510 char $ac_func ();
11511 /* The GNU C library defines this for functions which it implements
11512 to always fail with ENOSYS. Some functions are actually named
11513 something starting with __ and the normal name is an alias. */
11514 #if defined __stub_$ac_func || defined __stub___$ac_func
11515 choke me
11516 #endif
11519 main ()
11521 return $ac_func ();
11523 return 0;
11525 _ACEOF
11526 rm -f conftest.$ac_objext conftest$ac_exeext
11527 if { (ac_try="$ac_link"
11528 case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531 esac
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_link") 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541 { (case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11544 esac
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_try") 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest$ac_exeext'
11551 { (case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_try") 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 eval "$as_ac_var=yes"
11561 else
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 eval "$as_ac_var=no"
11568 rm -f core conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11571 ac_res=`eval echo '${'$as_ac_var'}'`
11572 { echo "$as_me:$LINENO: result: $ac_res" >&5
11573 echo "${ECHO_T}$ac_res" >&6; }
11574 if test `eval echo '${'$as_ac_var'}'` = yes; then
11575 cat >>confdefs.h <<_ACEOF
11576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11577 _ACEOF
11578 break
11580 done
11584 for ac_func in strrchr rindex
11586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592 cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h. */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11600 #define $ac_func innocuous_$ac_func
11602 /* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11607 #ifdef __STDC__
11608 # include <limits.h>
11609 #else
11610 # include <assert.h>
11611 #endif
11613 #undef $ac_func
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char $ac_func ();
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined __stub_$ac_func || defined __stub___$ac_func
11626 choke me
11627 #endif
11630 main ()
11632 return $ac_func ();
11634 return 0;
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (ac_try="$ac_link"
11639 case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642 esac
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_link") 2>conftest.er1
11645 ac_status=$?
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652 { (case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655 esac
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_try") 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest$ac_exeext'
11662 { (case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11665 esac
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_try") 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 eval "$as_ac_var=yes"
11672 else
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 eval "$as_ac_var=no"
11679 rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11682 ac_res=`eval echo '${'$as_ac_var'}'`
11683 { echo "$as_me:$LINENO: result: $ac_res" >&5
11684 echo "${ECHO_T}$ac_res" >&6; }
11685 if test `eval echo '${'$as_ac_var'}'` = yes; then
11686 cat >>confdefs.h <<_ACEOF
11687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11688 _ACEOF
11689 break
11691 done
11695 for ac_func in memcpy bcopy
11697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703 cat >conftest.$ac_ext <<_ACEOF
11704 /* confdefs.h. */
11705 _ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11711 #define $ac_func innocuous_$ac_func
11713 /* System header to define __stub macros and hopefully few prototypes,
11714 which can conflict with char $ac_func (); below.
11715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11716 <limits.h> exists even on freestanding compilers. */
11718 #ifdef __STDC__
11719 # include <limits.h>
11720 #else
11721 # include <assert.h>
11722 #endif
11724 #undef $ac_func
11726 /* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 char $ac_func ();
11733 /* The GNU C library defines this for functions which it implements
11734 to always fail with ENOSYS. Some functions are actually named
11735 something starting with __ and the normal name is an alias. */
11736 #if defined __stub_$ac_func || defined __stub___$ac_func
11737 choke me
11738 #endif
11741 main ()
11743 return $ac_func ();
11745 return 0;
11747 _ACEOF
11748 rm -f conftest.$ac_objext conftest$ac_exeext
11749 if { (ac_try="$ac_link"
11750 case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_link") 2>conftest.er1
11756 ac_status=$?
11757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11763 { (case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11766 esac
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_try") 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11776 esac
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_try") 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 eval "$as_ac_var=yes"
11783 else
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 eval "$as_ac_var=no"
11790 rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11793 ac_res=`eval echo '${'$as_ac_var'}'`
11794 { echo "$as_me:$LINENO: result: $ac_res" >&5
11795 echo "${ECHO_T}$ac_res" >&6; }
11796 if test `eval echo '${'$as_ac_var'}'` = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799 _ACEOF
11800 break
11802 done
11806 for ac_func in memmove strcmp
11808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11822 #define $ac_func innocuous_$ac_func
11824 /* System header to define __stub macros and hopefully few prototypes,
11825 which can conflict with char $ac_func (); below.
11826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11827 <limits.h> exists even on freestanding compilers. */
11829 #ifdef __STDC__
11830 # include <limits.h>
11831 #else
11832 # include <assert.h>
11833 #endif
11835 #undef $ac_func
11837 /* Override any GCC internal prototype to avoid an error.
11838 Use char because int might match the return type of a GCC
11839 builtin and then its argument prototype would still apply. */
11840 #ifdef __cplusplus
11841 extern "C"
11842 #endif
11843 char $ac_func ();
11844 /* The GNU C library defines this for functions which it implements
11845 to always fail with ENOSYS. Some functions are actually named
11846 something starting with __ and the normal name is an alias. */
11847 #if defined __stub_$ac_func || defined __stub___$ac_func
11848 choke me
11849 #endif
11852 main ()
11854 return $ac_func ();
11856 return 0;
11858 _ACEOF
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (ac_try="$ac_link"
11861 case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864 esac
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_link") 2>conftest.er1
11867 ac_status=$?
11868 grep -v '^ *+' conftest.er1 >conftest.err
11869 rm -f conftest.er1
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
11873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11874 { (case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11877 esac
11878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_try") 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest$ac_exeext'
11884 { (case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887 esac
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_try") 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; }; then
11893 eval "$as_ac_var=yes"
11894 else
11895 echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11898 eval "$as_ac_var=no"
11901 rm -f core conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11904 ac_res=`eval echo '${'$as_ac_var'}'`
11905 { echo "$as_me:$LINENO: result: $ac_res" >&5
11906 echo "${ECHO_T}$ac_res" >&6; }
11907 if test `eval echo '${'$as_ac_var'}'` = yes; then
11908 cat >>confdefs.h <<_ACEOF
11909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11910 _ACEOF
11913 done
11918 for ac_func in closedir opendir readdir
11920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h. */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11934 #define $ac_func innocuous_$ac_func
11936 /* System header to define __stub macros and hopefully few prototypes,
11937 which can conflict with char $ac_func (); below.
11938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11939 <limits.h> exists even on freestanding compilers. */
11941 #ifdef __STDC__
11942 # include <limits.h>
11943 #else
11944 # include <assert.h>
11945 #endif
11947 #undef $ac_func
11949 /* Override any GCC internal prototype to avoid an error.
11950 Use char because int might match the return type of a GCC
11951 builtin and then its argument prototype would still apply. */
11952 #ifdef __cplusplus
11953 extern "C"
11954 #endif
11955 char $ac_func ();
11956 /* The GNU C library defines this for functions which it implements
11957 to always fail with ENOSYS. Some functions are actually named
11958 something starting with __ and the normal name is an alias. */
11959 #if defined __stub_$ac_func || defined __stub___$ac_func
11960 choke me
11961 #endif
11964 main ()
11966 return $ac_func ();
11968 return 0;
11970 _ACEOF
11971 rm -f conftest.$ac_objext conftest$ac_exeext
11972 if { (ac_try="$ac_link"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_link") 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11986 { (case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989 esac
11990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_try") 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; } &&
11995 { ac_try='test -s conftest$ac_exeext'
11996 { (case "(($ac_try" in
11997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998 *) ac_try_echo=$ac_try;;
11999 esac
12000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12001 (eval "$ac_try") 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 eval "$as_ac_var=yes"
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 eval "$as_ac_var=no"
12013 rm -f core conftest.err conftest.$ac_objext \
12014 conftest$ac_exeext conftest.$ac_ext
12016 ac_res=`eval echo '${'$as_ac_var'}'`
12017 { echo "$as_me:$LINENO: result: $ac_res" >&5
12018 echo "${ECHO_T}$ac_res" >&6; }
12019 if test `eval echo '${'$as_ac_var'}'` = yes; then
12020 cat >>confdefs.h <<_ACEOF
12021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12022 _ACEOF
12025 done
12028 # Check whether --enable-shared was given.
12029 if test "${enable_shared+set}" = set; then
12030 enableval=$enable_shared; p=${PACKAGE-default}
12031 case $enableval in
12032 yes) enable_shared=yes ;;
12033 no) enable_shared=no ;;
12035 enable_shared=no
12036 # Look at the argument we got. We use all the common list separators.
12037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12038 for pkg in $enableval; do
12039 IFS="$lt_save_ifs"
12040 if test "X$pkg" = "X$p"; then
12041 enable_shared=yes
12043 done
12044 IFS="$lt_save_ifs"
12046 esac
12047 else
12048 enable_shared=yes
12052 # Check whether --enable-static was given.
12053 if test "${enable_static+set}" = set; then
12054 enableval=$enable_static; p=${PACKAGE-default}
12055 case $enableval in
12056 yes) enable_static=yes ;;
12057 no) enable_static=no ;;
12059 enable_static=no
12060 # Look at the argument we got. We use all the common list separators.
12061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12062 for pkg in $enableval; do
12063 IFS="$lt_save_ifs"
12064 if test "X$pkg" = "X$p"; then
12065 enable_static=yes
12067 done
12068 IFS="$lt_save_ifs"
12070 esac
12071 else
12072 enable_static=yes
12076 # Check whether --enable-fast-install was given.
12077 if test "${enable_fast_install+set}" = set; then
12078 enableval=$enable_fast_install; p=${PACKAGE-default}
12079 case $enableval in
12080 yes) enable_fast_install=yes ;;
12081 no) enable_fast_install=no ;;
12083 enable_fast_install=no
12084 # Look at the argument we got. We use all the common list separators.
12085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12086 for pkg in $enableval; do
12087 IFS="$lt_save_ifs"
12088 if test "X$pkg" = "X$p"; then
12089 enable_fast_install=yes
12091 done
12092 IFS="$lt_save_ifs"
12094 esac
12095 else
12096 enable_fast_install=yes
12100 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12101 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
12102 if test "${lt_cv_path_SED+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104 else
12105 # Loop through the user's path and test for sed and gsed.
12106 # Then use that list of sed's as ones to test for truncation.
12107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12108 for as_dir in $PATH
12110 IFS=$as_save_IFS
12111 test -z "$as_dir" && as_dir=.
12112 for lt_ac_prog in sed gsed; do
12113 for ac_exec_ext in '' $ac_executable_extensions; do
12114 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12115 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12117 done
12118 done
12119 done
12120 lt_ac_max=0
12121 lt_ac_count=0
12122 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12123 # along with /bin/sed that truncates output.
12124 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12125 test ! -f $lt_ac_sed && continue
12126 cat /dev/null > conftest.in
12127 lt_ac_count=0
12128 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12129 # Check for GNU sed and select it if it is found.
12130 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12131 lt_cv_path_SED=$lt_ac_sed
12132 break
12134 while true; do
12135 cat conftest.in conftest.in >conftest.tmp
12136 mv conftest.tmp conftest.in
12137 cp conftest.in conftest.nl
12138 echo >>conftest.nl
12139 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12140 cmp -s conftest.out conftest.nl || break
12141 # 10000 chars as input seems more than enough
12142 test $lt_ac_count -gt 10 && break
12143 lt_ac_count=`expr $lt_ac_count + 1`
12144 if test $lt_ac_count -gt $lt_ac_max; then
12145 lt_ac_max=$lt_ac_count
12146 lt_cv_path_SED=$lt_ac_sed
12148 done
12149 done
12153 SED=$lt_cv_path_SED
12154 { echo "$as_me:$LINENO: result: $SED" >&5
12155 echo "${ECHO_T}$SED" >&6; }
12158 # Check whether --with-gnu-ld was given.
12159 if test "${with_gnu_ld+set}" = set; then
12160 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12161 else
12162 with_gnu_ld=no
12165 ac_prog=ld
12166 if test "$GCC" = yes; then
12167 # Check if gcc -print-prog-name=ld gives a path.
12168 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12169 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12170 case $host in
12171 *-*-mingw*)
12172 # gcc leaves a trailing carriage return which upsets mingw
12173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12176 esac
12177 case $ac_prog in
12178 # Accept absolute paths.
12179 [\\/]* | ?:[\\/]*)
12180 re_direlt='/[^/][^/]*/\.\./'
12181 # Canonicalize the pathname of ld
12182 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12183 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12184 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12185 done
12186 test -z "$LD" && LD="$ac_prog"
12189 # If it fails, then pretend we aren't using GCC.
12190 ac_prog=ld
12193 # If it is relative, then search for the first ld in PATH.
12194 with_gnu_ld=unknown
12196 esac
12197 elif test "$with_gnu_ld" = yes; then
12198 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12199 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12200 else
12201 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12202 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12204 if test "${lt_cv_path_LD+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207 if test -z "$LD"; then
12208 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12209 for ac_dir in $PATH; do
12210 IFS="$lt_save_ifs"
12211 test -z "$ac_dir" && ac_dir=.
12212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12213 lt_cv_path_LD="$ac_dir/$ac_prog"
12214 # Check to see if the program is GNU ld. I'd rather use --version,
12215 # but apparently some variants of GNU ld only accept -v.
12216 # Break only if it was the GNU/non-GNU ld that we prefer.
12217 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12218 *GNU* | *'with BFD'*)
12219 test "$with_gnu_ld" != no && break
12222 test "$with_gnu_ld" != yes && break
12224 esac
12226 done
12227 IFS="$lt_save_ifs"
12228 else
12229 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12233 LD="$lt_cv_path_LD"
12234 if test -n "$LD"; then
12235 { echo "$as_me:$LINENO: result: $LD" >&5
12236 echo "${ECHO_T}$LD" >&6; }
12237 else
12238 { echo "$as_me:$LINENO: result: no" >&5
12239 echo "${ECHO_T}no" >&6; }
12241 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12242 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12243 { (exit 1); exit 1; }; }
12244 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12245 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12246 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 else
12249 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12250 case `$LD -v 2>&1 </dev/null` in
12251 *GNU* | *'with BFD'*)
12252 lt_cv_prog_gnu_ld=yes
12255 lt_cv_prog_gnu_ld=no
12257 esac
12259 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12260 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12261 with_gnu_ld=$lt_cv_prog_gnu_ld
12264 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12265 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12266 if test "${lt_cv_ld_reload_flag+set}" = set; then
12267 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 else
12269 lt_cv_ld_reload_flag='-r'
12271 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12272 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12273 reload_flag=$lt_cv_ld_reload_flag
12274 case $reload_flag in
12275 "" | " "*) ;;
12276 *) reload_flag=" $reload_flag" ;;
12277 esac
12278 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12279 case $host_os in
12280 darwin*)
12281 if test "$GCC" = yes; then
12282 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
12283 else
12284 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12287 esac
12289 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12290 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
12291 if test "${lt_cv_deplibs_check_method+set}" = set; then
12292 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294 lt_cv_file_magic_cmd='$MAGIC_CMD'
12295 lt_cv_file_magic_test_file=
12296 lt_cv_deplibs_check_method='unknown'
12297 # Need to set the preceding variable on all platforms that support
12298 # interlibrary dependencies.
12299 # 'none' -- dependencies not supported.
12300 # `unknown' -- same as none, but documents that we really don't know.
12301 # 'pass_all' -- all dependencies passed with no checks.
12302 # 'test_compile' -- check by making test program.
12303 # 'file_magic [[regex]]' -- check by looking for files in library path
12304 # which responds to the $file_magic_cmd with a given extended regex.
12305 # If you have `file' or equivalent on your system and you're not sure
12306 # whether `pass_all' will *always* work, you probably want this one.
12308 case $host_os in
12309 aix4* | aix5*)
12310 lt_cv_deplibs_check_method=pass_all
12313 beos*)
12314 lt_cv_deplibs_check_method=pass_all
12317 bsdi[45]*)
12318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12319 lt_cv_file_magic_cmd='/usr/bin/file -L'
12320 lt_cv_file_magic_test_file=/shlib/libc.so
12323 cygwin*)
12324 # func_win32_libid is a shell function defined in ltmain.sh
12325 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12326 lt_cv_file_magic_cmd='func_win32_libid'
12329 mingw* | pw32*)
12330 # Base MSYS/MinGW do not provide the 'file' command needed by
12331 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12332 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12333 lt_cv_file_magic_cmd='$OBJDUMP -f'
12336 darwin* | rhapsody*)
12337 lt_cv_deplibs_check_method=pass_all
12340 freebsd* | kfreebsd*-gnu | dragonfly*)
12341 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12342 case $host_cpu in
12343 i*86 )
12344 # Not sure whether the presence of OpenBSD here was a mistake.
12345 # Let's accept both of them until this is cleared up.
12346 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12347 lt_cv_file_magic_cmd=/usr/bin/file
12348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12350 esac
12351 else
12352 lt_cv_deplibs_check_method=pass_all
12356 gnu*)
12357 lt_cv_deplibs_check_method=pass_all
12360 hpux10.20* | hpux11*)
12361 lt_cv_file_magic_cmd=/usr/bin/file
12362 case $host_cpu in
12363 ia64*)
12364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12365 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12367 hppa*64*)
12368 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]'
12369 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12373 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12375 esac
12378 interix3*)
12379 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12383 irix5* | irix6* | nonstopux*)
12384 case $LD in
12385 *-32|*"-32 ") libmagic=32-bit;;
12386 *-n32|*"-n32 ") libmagic=N32;;
12387 *-64|*"-64 ") libmagic=64-bit;;
12388 *) libmagic=never-match;;
12389 esac
12390 lt_cv_deplibs_check_method=pass_all
12393 # This must be Linux ELF.
12394 linux*)
12395 lt_cv_deplibs_check_method=pass_all
12398 netbsd*)
12399 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12401 else
12402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12406 newos6*)
12407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12408 lt_cv_file_magic_cmd=/usr/bin/file
12409 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12412 nto-qnx*)
12413 lt_cv_deplibs_check_method=unknown
12416 openbsd*)
12417 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12419 else
12420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12424 osf3* | osf4* | osf5*)
12425 lt_cv_deplibs_check_method=pass_all
12428 solaris*)
12429 lt_cv_deplibs_check_method=pass_all
12432 sysv4 | sysv4.3*)
12433 case $host_vendor in
12434 motorola)
12435 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]'
12436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12438 ncr)
12439 lt_cv_deplibs_check_method=pass_all
12441 sequent)
12442 lt_cv_file_magic_cmd='/bin/file'
12443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12445 sni)
12446 lt_cv_file_magic_cmd='/bin/file'
12447 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12448 lt_cv_file_magic_test_file=/lib/libc.so
12450 siemens)
12451 lt_cv_deplibs_check_method=pass_all
12454 lt_cv_deplibs_check_method=pass_all
12456 esac
12459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12460 lt_cv_deplibs_check_method=pass_all
12462 esac
12465 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12466 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12467 file_magic_cmd=$lt_cv_file_magic_cmd
12468 deplibs_check_method=$lt_cv_deplibs_check_method
12469 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12473 # If no C compiler was specified, use CC.
12474 LTCC=${LTCC-"$CC"}
12476 # If no C compiler flags were specified, use CFLAGS.
12477 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12479 # Allow CC to be a program name with arguments.
12480 compiler=$CC
12482 # Check whether --enable-libtool-lock was given.
12483 if test "${enable_libtool_lock+set}" = set; then
12484 enableval=$enable_libtool_lock;
12487 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12489 # Some flags need to be propagated to the compiler or linker for good
12490 # libtool support.
12491 case $host in
12492 ia64-*-hpux*)
12493 # Find out which ABI we are using.
12494 echo 'int i;' > conftest.$ac_ext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12496 (eval $ac_compile) 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; then
12500 case `/usr/bin/file conftest.$ac_objext` in
12501 *ELF-32*)
12502 HPUX_IA64_MODE="32"
12504 *ELF-64*)
12505 HPUX_IA64_MODE="64"
12507 esac
12509 rm -rf conftest*
12511 *-*-irix6*)
12512 # Find out which ABI we are using.
12513 echo '#line 12513 "configure"' > conftest.$ac_ext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515 (eval $ac_compile) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; then
12519 if test "$lt_cv_prog_gnu_ld" = yes; then
12520 case `/usr/bin/file conftest.$ac_objext` in
12521 *32-bit*)
12522 LD="${LD-ld} -melf32bsmip"
12524 *N32*)
12525 LD="${LD-ld} -melf32bmipn32"
12527 *64-bit*)
12528 LD="${LD-ld} -melf64bmip"
12530 esac
12531 else
12532 case `/usr/bin/file conftest.$ac_objext` in
12533 *32-bit*)
12534 LD="${LD-ld} -32"
12536 *N32*)
12537 LD="${LD-ld} -n32"
12539 *64-bit*)
12540 LD="${LD-ld} -64"
12542 esac
12545 rm -rf conftest*
12548 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12549 # Find out which ABI we are using.
12550 echo 'int i;' > conftest.$ac_ext
12551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12552 (eval $ac_compile) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; then
12556 case `/usr/bin/file conftest.o` in
12557 *32-bit*)
12558 case $host in
12559 x86_64-*linux*)
12560 LD="${LD-ld} -m elf_i386"
12562 ppc64-*linux*|powerpc64-*linux*)
12563 LD="${LD-ld} -m elf32ppclinux"
12565 s390x-*linux*)
12566 LD="${LD-ld} -m elf_s390"
12568 sparc64-*linux*)
12569 LD="${LD-ld} -m elf32_sparc"
12571 esac
12573 *64-bit*)
12574 case $host in
12575 x86_64-*linux*)
12576 LD="${LD-ld} -m elf_x86_64"
12578 ppc*-*linux*|powerpc*-*linux*)
12579 LD="${LD-ld} -m elf64ppc"
12581 s390*-*linux*)
12582 LD="${LD-ld} -m elf64_s390"
12584 sparc*-*linux*)
12585 LD="${LD-ld} -m elf64_sparc"
12587 esac
12589 esac
12591 rm -rf conftest*
12594 *-*-sco3.2v5*)
12595 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12596 SAVE_CFLAGS="$CFLAGS"
12597 CFLAGS="$CFLAGS -belf"
12598 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12599 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12600 if test "${lt_cv_cc_needs_belf+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603 ac_ext=c
12604 ac_cpp='$CPP $CPPFLAGS'
12605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h. */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12617 main ()
12621 return 0;
12623 _ACEOF
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (ac_try="$ac_link"
12626 case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_link") 2>conftest.er1
12632 ac_status=$?
12633 grep -v '^ *+' conftest.er1 >conftest.err
12634 rm -f conftest.er1
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12639 { (case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12642 esac
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_try") 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest$ac_exeext'
12649 { (case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654 (eval "$ac_try") 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 lt_cv_cc_needs_belf=yes
12659 else
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12663 lt_cv_cc_needs_belf=no
12666 rm -f core conftest.err conftest.$ac_objext \
12667 conftest$ac_exeext conftest.$ac_ext
12668 ac_ext=c
12669 ac_cpp='$CPP $CPPFLAGS'
12670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12675 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12676 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12677 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12678 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12679 CFLAGS="$SAVE_CFLAGS"
12682 sparc*-*solaris*)
12683 # Find out which ABI we are using.
12684 echo 'int i;' > conftest.$ac_ext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686 (eval $ac_compile) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; then
12690 case `/usr/bin/file conftest.o` in
12691 *64-bit*)
12692 case $lt_cv_prog_gnu_ld in
12693 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12694 *) LD="${LD-ld} -64" ;;
12695 esac
12697 esac
12699 rm -rf conftest*
12703 esac
12705 need_locks="$enable_libtool_lock"
12710 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12711 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12712 (test "X$CXX" != "Xg++"))) ; then
12713 ac_ext=cpp
12714 ac_cpp='$CXXCPP $CPPFLAGS'
12715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12718 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12719 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12720 if test -z "$CXXCPP"; then
12721 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 else
12724 # Double quotes because CXXCPP needs to be expanded
12725 for CXXCPP in "$CXX -E" "/lib/cpp"
12727 ac_preproc_ok=false
12728 for ac_cxx_preproc_warn_flag in '' yes
12730 # Use a header file that comes with gcc, so configuring glibc
12731 # with a fresh cross-compiler works.
12732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12733 # <limits.h> exists even on freestanding compilers.
12734 # On the NeXT, cc -E runs the code through the compiler's parser,
12735 # not just through cpp. "Syntax error" is here to catch this case.
12736 cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h. */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12742 #ifdef __STDC__
12743 # include <limits.h>
12744 #else
12745 # include <assert.h>
12746 #endif
12747 Syntax error
12748 _ACEOF
12749 if { (ac_try="$ac_cpp conftest.$ac_ext"
12750 case "(($ac_try" in
12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12752 *) ac_try_echo=$ac_try;;
12753 esac
12754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12756 ac_status=$?
12757 grep -v '^ *+' conftest.er1 >conftest.err
12758 rm -f conftest.er1
12759 cat conftest.err >&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); } >/dev/null; then
12762 if test -s conftest.err; then
12763 ac_cpp_err=$ac_cxx_preproc_warn_flag
12764 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12765 else
12766 ac_cpp_err=
12768 else
12769 ac_cpp_err=yes
12771 if test -z "$ac_cpp_err"; then
12773 else
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 # Broken: fails on valid input.
12778 continue
12781 rm -f conftest.err conftest.$ac_ext
12783 # OK, works on sane cases. Now check whether nonexistent headers
12784 # can be detected and how.
12785 cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h. */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 #include <ac_nonexistent.h>
12792 _ACEOF
12793 if { (ac_try="$ac_cpp conftest.$ac_ext"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12800 ac_status=$?
12801 grep -v '^ *+' conftest.er1 >conftest.err
12802 rm -f conftest.er1
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } >/dev/null; then
12806 if test -s conftest.err; then
12807 ac_cpp_err=$ac_cxx_preproc_warn_flag
12808 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12809 else
12810 ac_cpp_err=
12812 else
12813 ac_cpp_err=yes
12815 if test -z "$ac_cpp_err"; then
12816 # Broken: success on invalid input.
12817 continue
12818 else
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12822 # Passes both tests.
12823 ac_preproc_ok=:
12824 break
12827 rm -f conftest.err conftest.$ac_ext
12829 done
12830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12831 rm -f conftest.err conftest.$ac_ext
12832 if $ac_preproc_ok; then
12833 break
12836 done
12837 ac_cv_prog_CXXCPP=$CXXCPP
12840 CXXCPP=$ac_cv_prog_CXXCPP
12841 else
12842 ac_cv_prog_CXXCPP=$CXXCPP
12844 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12845 echo "${ECHO_T}$CXXCPP" >&6; }
12846 ac_preproc_ok=false
12847 for ac_cxx_preproc_warn_flag in '' yes
12849 # Use a header file that comes with gcc, so configuring glibc
12850 # with a fresh cross-compiler works.
12851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12852 # <limits.h> exists even on freestanding compilers.
12853 # On the NeXT, cc -E runs the code through the compiler's parser,
12854 # not just through cpp. "Syntax error" is here to catch this case.
12855 cat >conftest.$ac_ext <<_ACEOF
12856 /* confdefs.h. */
12857 _ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12861 #ifdef __STDC__
12862 # include <limits.h>
12863 #else
12864 # include <assert.h>
12865 #endif
12866 Syntax error
12867 _ACEOF
12868 if { (ac_try="$ac_cpp conftest.$ac_ext"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } >/dev/null; then
12881 if test -s conftest.err; then
12882 ac_cpp_err=$ac_cxx_preproc_warn_flag
12883 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12884 else
12885 ac_cpp_err=
12887 else
12888 ac_cpp_err=yes
12890 if test -z "$ac_cpp_err"; then
12892 else
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 # Broken: fails on valid input.
12897 continue
12900 rm -f conftest.err conftest.$ac_ext
12902 # OK, works on sane cases. Now check whether nonexistent headers
12903 # can be detected and how.
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h. */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 #include <ac_nonexistent.h>
12911 _ACEOF
12912 if { (ac_try="$ac_cpp conftest.$ac_ext"
12913 case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916 esac
12917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12919 ac_status=$?
12920 grep -v '^ *+' conftest.er1 >conftest.err
12921 rm -f conftest.er1
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } >/dev/null; then
12925 if test -s conftest.err; then
12926 ac_cpp_err=$ac_cxx_preproc_warn_flag
12927 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12928 else
12929 ac_cpp_err=
12931 else
12932 ac_cpp_err=yes
12934 if test -z "$ac_cpp_err"; then
12935 # Broken: success on invalid input.
12936 continue
12937 else
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12941 # Passes both tests.
12942 ac_preproc_ok=:
12943 break
12946 rm -f conftest.err conftest.$ac_ext
12948 done
12949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12950 rm -f conftest.err conftest.$ac_ext
12951 if $ac_preproc_ok; then
12953 else
12954 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12955 See \`config.log' for more details." >&5
12956 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12957 See \`config.log' for more details." >&2;}
12958 { (exit 1); exit 1; }; }
12961 ac_ext=cpp
12962 ac_cpp='$CXXCPP $CPPFLAGS'
12963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12970 ac_ext=f
12971 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12972 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12973 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12974 if test -n "$ac_tool_prefix"; then
12975 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
12977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12981 if test "${ac_cv_prog_F77+set}" = set; then
12982 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 else
12984 if test -n "$F77"; then
12985 ac_cv_prog_F77="$F77" # Let the user override the test.
12986 else
12987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12988 for as_dir in $PATH
12990 IFS=$as_save_IFS
12991 test -z "$as_dir" && as_dir=.
12992 for ac_exec_ext in '' $ac_executable_extensions; do
12993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12994 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12996 break 2
12998 done
12999 done
13000 IFS=$as_save_IFS
13004 F77=$ac_cv_prog_F77
13005 if test -n "$F77"; then
13006 { echo "$as_me:$LINENO: result: $F77" >&5
13007 echo "${ECHO_T}$F77" >&6; }
13008 else
13009 { echo "$as_me:$LINENO: result: no" >&5
13010 echo "${ECHO_T}no" >&6; }
13014 test -n "$F77" && break
13015 done
13017 if test -z "$F77"; then
13018 ac_ct_F77=$F77
13019 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
13021 # Extract the first word of "$ac_prog", so it can be a program name with args.
13022 set dummy $ac_prog; ac_word=$2
13023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13025 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028 if test -n "$ac_ct_F77"; then
13029 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13030 else
13031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032 for as_dir in $PATH
13034 IFS=$as_save_IFS
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
13037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13038 ac_cv_prog_ac_ct_F77="$ac_prog"
13039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13040 break 2
13042 done
13043 done
13044 IFS=$as_save_IFS
13048 ac_ct_F77=$ac_cv_prog_ac_ct_F77
13049 if test -n "$ac_ct_F77"; then
13050 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13051 echo "${ECHO_T}$ac_ct_F77" >&6; }
13052 else
13053 { echo "$as_me:$LINENO: result: no" >&5
13054 echo "${ECHO_T}no" >&6; }
13058 test -n "$ac_ct_F77" && break
13059 done
13061 if test "x$ac_ct_F77" = x; then
13062 F77=""
13063 else
13064 case $cross_compiling:$ac_tool_warned in
13065 yes:)
13066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13067 whose name does not start with the host triplet. If you think this
13068 configuration is useful to you, please write to autoconf@gnu.org." >&5
13069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13070 whose name does not start with the host triplet. If you think this
13071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13072 ac_tool_warned=yes ;;
13073 esac
13074 F77=$ac_ct_F77
13079 # Provide some information about the compiler.
13080 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13081 ac_compiler=`set X $ac_compile; echo $2`
13082 { (ac_try="$ac_compiler --version >&5"
13083 case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13086 esac
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_compiler --version >&5") 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }
13092 { (ac_try="$ac_compiler -v >&5"
13093 case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13096 esac
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_compiler -v >&5") 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }
13102 { (ac_try="$ac_compiler -V >&5"
13103 case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106 esac
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_compiler -V >&5") 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }
13112 rm -f a.out
13114 # If we don't use `.F' as extension, the preprocessor is not run on the
13115 # input file. (Note that this only needs to work for GNU compilers.)
13116 ac_save_ext=$ac_ext
13117 ac_ext=F
13118 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13119 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13120 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 else
13123 cat >conftest.$ac_ext <<_ACEOF
13124 program main
13125 #ifndef __GNUC__
13126 choke me
13127 #endif
13130 _ACEOF
13131 rm -f conftest.$ac_objext
13132 if { (ac_try="$ac_compile"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13136 esac
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_compile") 2>conftest.er1
13139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } &&
13145 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13146 { (case "(($ac_try" in
13147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148 *) ac_try_echo=$ac_try;;
13149 esac
13150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13151 (eval "$ac_try") 2>&5
13152 ac_status=$?
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; } &&
13155 { ac_try='test -s conftest.$ac_objext'
13156 { (case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159 esac
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_try") 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 ac_compiler_gnu=yes
13166 else
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_compiler_gnu=no
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13177 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13178 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13179 ac_ext=$ac_save_ext
13180 ac_test_FFLAGS=${FFLAGS+set}
13181 ac_save_FFLAGS=$FFLAGS
13182 FFLAGS=
13183 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13184 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13185 if test "${ac_cv_prog_f77_g+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188 FFLAGS=-g
13189 cat >conftest.$ac_ext <<_ACEOF
13190 program main
13193 _ACEOF
13194 rm -f conftest.$ac_objext
13195 if { (ac_try="$ac_compile"
13196 case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13199 esac
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_compile") 2>conftest.er1
13202 ac_status=$?
13203 grep -v '^ *+' conftest.er1 >conftest.err
13204 rm -f conftest.er1
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13209 { (case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212 esac
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_try") 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; } &&
13218 { ac_try='test -s conftest.$ac_objext'
13219 { (case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222 esac
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_try") 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 ac_cv_prog_f77_g=yes
13229 else
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233 ac_cv_prog_f77_g=no
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13239 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13240 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13241 if test "$ac_test_FFLAGS" = set; then
13242 FFLAGS=$ac_save_FFLAGS
13243 elif test $ac_cv_prog_f77_g = yes; then
13244 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13245 FFLAGS="-g -O2"
13246 else
13247 FFLAGS="-g"
13249 else
13250 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13251 FFLAGS="-O2"
13252 else
13253 FFLAGS=
13257 G77=`test $ac_compiler_gnu = yes && echo yes`
13258 ac_ext=c
13259 ac_cpp='$CPP $CPPFLAGS'
13260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13266 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13268 # find the maximum length of command line arguments
13269 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13270 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13271 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 else
13275 teststring="ABCD"
13277 case $build_os in
13278 msdosdjgpp*)
13279 # On DJGPP, this test can blow up pretty badly due to problems in libc
13280 # (any single argument exceeding 2000 bytes causes a buffer overrun
13281 # during glob expansion). Even if it were fixed, the result of this
13282 # check would be larger than it should be.
13283 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13286 gnu*)
13287 # Under GNU Hurd, this test is not required because there is
13288 # no limit to the length of command line arguments.
13289 # Libtool will interpret -1 as no limit whatsoever
13290 lt_cv_sys_max_cmd_len=-1;
13293 cygwin* | mingw*)
13294 # On Win9x/ME, this test blows up -- it succeeds, but takes
13295 # about 5 minutes as the teststring grows exponentially.
13296 # Worse, since 9x/ME are not pre-emptively multitasking,
13297 # you end up with a "frozen" computer, even though with patience
13298 # the test eventually succeeds (with a max line length of 256k).
13299 # Instead, let's just punt: use the minimum linelength reported by
13300 # all of the supported platforms: 8192 (on NT/2K/XP).
13301 lt_cv_sys_max_cmd_len=8192;
13304 amigaos*)
13305 # On AmigaOS with pdksh, this test takes hours, literally.
13306 # So we just punt and use a minimum line length of 8192.
13307 lt_cv_sys_max_cmd_len=8192;
13310 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13311 # This has been around since 386BSD, at least. Likely further.
13312 if test -x /sbin/sysctl; then
13313 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13314 elif test -x /usr/sbin/sysctl; then
13315 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13316 else
13317 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13319 # And add a safety zone
13320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13324 interix*)
13325 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13326 lt_cv_sys_max_cmd_len=196608
13329 osf*)
13330 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13331 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13332 # nice to cause kernel panics so lets avoid the loop below.
13333 # First set a reasonable default.
13334 lt_cv_sys_max_cmd_len=16384
13336 if test -x /sbin/sysconfig; then
13337 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13338 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13339 esac
13342 sco3.2v5*)
13343 lt_cv_sys_max_cmd_len=102400
13345 sysv5* | sco5v6* | sysv4.2uw2*)
13346 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13347 if test -n "$kargmax"; then
13348 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13349 else
13350 lt_cv_sys_max_cmd_len=32768
13354 # If test is not a shell built-in, we'll probably end up computing a
13355 # maximum length that is only half of the actual maximum length, but
13356 # we can't tell.
13357 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13358 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13359 = "XX$teststring") >/dev/null 2>&1 &&
13360 new_result=`expr "X$teststring" : ".*" 2>&1` &&
13361 lt_cv_sys_max_cmd_len=$new_result &&
13362 test $i != 17 # 1/2 MB should be enough
13364 i=`expr $i + 1`
13365 teststring=$teststring$teststring
13366 done
13367 teststring=
13368 # Add a significant safety factor because C++ compilers can tack on massive
13369 # amounts of additional arguments before passing them to the linker.
13370 # It appears as though 1/2 is a usable value.
13371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13373 esac
13377 if test -n $lt_cv_sys_max_cmd_len ; then
13378 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13379 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13380 else
13381 { echo "$as_me:$LINENO: result: none" >&5
13382 echo "${ECHO_T}none" >&6; }
13388 # Check for command to grab the raw symbol name followed by C symbol from nm.
13389 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13390 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13391 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13395 # These are sane defaults that work on at least a few old systems.
13396 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13398 # Character class describing NM global symbol codes.
13399 symcode='[BCDEGRST]'
13401 # Regexp to match symbols that can be accessed directly from C.
13402 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13404 # Transform an extracted symbol line into a proper C declaration
13405 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13407 # Transform an extracted symbol line into symbol name and symbol address
13408 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'"
13410 # Define system-specific variables.
13411 case $host_os in
13412 aix*)
13413 symcode='[BCDT]'
13415 cygwin* | mingw* | pw32*)
13416 symcode='[ABCDGISTW]'
13418 hpux*) # Its linker distinguishes data from code symbols
13419 if test "$host_cpu" = ia64; then
13420 symcode='[ABCDEGRST]'
13422 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13423 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'"
13425 linux*)
13426 if test "$host_cpu" = ia64; then
13427 symcode='[ABCDGIRSTW]'
13428 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13429 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'"
13432 irix* | nonstopux*)
13433 symcode='[BCDEGRST]'
13435 osf*)
13436 symcode='[BCDEGQRST]'
13438 solaris*)
13439 symcode='[BDRT]'
13441 sco3.2v5*)
13442 symcode='[DT]'
13444 sysv4.2uw2*)
13445 symcode='[DT]'
13447 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13448 symcode='[ABDT]'
13450 sysv4)
13451 symcode='[DFNSTU]'
13453 esac
13455 # Handle CRLF in mingw tool chain
13456 opt_cr=
13457 case $build_os in
13458 mingw*)
13459 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13461 esac
13463 # If we're using GNU nm, then use its standard symbol codes.
13464 case `$NM -V 2>&1` in
13465 *GNU* | *'with BFD'*)
13466 symcode='[ABCDGIRSTW]' ;;
13467 esac
13469 # Try without a prefix undercore, then with it.
13470 for ac_symprfx in "" "_"; do
13472 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13473 symxfrm="\\1 $ac_symprfx\\2 \\2"
13475 # Write the raw and C identifiers.
13476 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13478 # Check to see that the pipe works correctly.
13479 pipe_works=no
13481 rm -f conftest*
13482 cat > conftest.$ac_ext <<EOF
13483 #ifdef __cplusplus
13484 extern "C" {
13485 #endif
13486 char nm_test_var;
13487 void nm_test_func(){}
13488 #ifdef __cplusplus
13490 #endif
13491 int main(){nm_test_var='a';nm_test_func();return(0);}
13494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13495 (eval $ac_compile) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; then
13499 # Now try to grab the symbols.
13500 nlist=conftest.nm
13501 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13502 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13503 ac_status=$?
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } && test -s "$nlist"; then
13506 # Try sorting and uniquifying the output.
13507 if sort "$nlist" | uniq > "$nlist"T; then
13508 mv -f "$nlist"T "$nlist"
13509 else
13510 rm -f "$nlist"T
13513 # Make sure that we snagged all the symbols we need.
13514 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13515 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13516 cat <<EOF > conftest.$ac_ext
13517 #ifdef __cplusplus
13518 extern "C" {
13519 #endif
13522 # Now generate the symbol file.
13523 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13525 cat <<EOF >> conftest.$ac_ext
13526 #if defined (__STDC__) && __STDC__
13527 # define lt_ptr_t void *
13528 #else
13529 # define lt_ptr_t char *
13530 # define const
13531 #endif
13533 /* The mapping between symbol names and symbols. */
13534 const struct {
13535 const char *name;
13536 lt_ptr_t address;
13538 lt_preloaded_symbols[] =
13541 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13542 cat <<\EOF >> conftest.$ac_ext
13543 {0, (lt_ptr_t) 0}
13546 #ifdef __cplusplus
13548 #endif
13550 # Now try linking the two files.
13551 mv conftest.$ac_objext conftstm.$ac_objext
13552 lt_save_LIBS="$LIBS"
13553 lt_save_CFLAGS="$CFLAGS"
13554 LIBS="conftstm.$ac_objext"
13555 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557 (eval $ac_link) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13561 pipe_works=yes
13563 LIBS="$lt_save_LIBS"
13564 CFLAGS="$lt_save_CFLAGS"
13565 else
13566 echo "cannot find nm_test_func in $nlist" >&5
13568 else
13569 echo "cannot find nm_test_var in $nlist" >&5
13571 else
13572 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13574 else
13575 echo "$progname: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13578 rm -f conftest* conftst*
13580 # Do not use the global_symbol_pipe unless it works.
13581 if test "$pipe_works" = yes; then
13582 break
13583 else
13584 lt_cv_sys_global_symbol_pipe=
13586 done
13590 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13591 lt_cv_sys_global_symbol_to_cdecl=
13593 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13594 { echo "$as_me:$LINENO: result: failed" >&5
13595 echo "${ECHO_T}failed" >&6; }
13596 else
13597 { echo "$as_me:$LINENO: result: ok" >&5
13598 echo "${ECHO_T}ok" >&6; }
13601 { echo "$as_me:$LINENO: checking for objdir" >&5
13602 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13603 if test "${lt_cv_objdir+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606 rm -f .libs 2>/dev/null
13607 mkdir .libs 2>/dev/null
13608 if test -d .libs; then
13609 lt_cv_objdir=.libs
13610 else
13611 # MS-DOS does not allow filenames that begin with a dot.
13612 lt_cv_objdir=_libs
13614 rmdir .libs 2>/dev/null
13616 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13617 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13618 objdir=$lt_cv_objdir
13624 case $host_os in
13625 aix3*)
13626 # AIX sometimes has problems with the GCC collect2 program. For some
13627 # reason, if we set the COLLECT_NAMES environment variable, the problems
13628 # vanish in a puff of smoke.
13629 if test "X${COLLECT_NAMES+set}" != Xset; then
13630 COLLECT_NAMES=
13631 export COLLECT_NAMES
13634 esac
13636 # Sed substitution that helps us do robust quoting. It backslashifies
13637 # metacharacters that are still active within double-quoted strings.
13638 Xsed='sed -e 1s/^X//'
13639 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13641 # Same as above, but do not quote variable references.
13642 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13644 # Sed substitution to delay expansion of an escaped shell variable in a
13645 # double_quote_subst'ed string.
13646 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13648 # Sed substitution to avoid accidental globbing in evaled expressions
13649 no_glob_subst='s/\*/\\\*/g'
13651 # Constants:
13652 rm="rm -f"
13654 # Global variables:
13655 default_ofile=mklib
13656 can_build_shared=yes
13658 # All known linkers require a `.a' archive for static linking (except MSVC,
13659 # which needs '.lib').
13660 libext=a
13661 ltmain="$ac_aux_dir/ltmain.sh"
13662 ofile="$default_ofile"
13663 with_gnu_ld="$lt_cv_prog_gnu_ld"
13665 if test -n "$ac_tool_prefix"; then
13666 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13667 set dummy ${ac_tool_prefix}ar; ac_word=$2
13668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13670 if test "${ac_cv_prog_AR+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673 if test -n "$AR"; then
13674 ac_cv_prog_AR="$AR" # Let the user override the test.
13675 else
13676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677 for as_dir in $PATH
13679 IFS=$as_save_IFS
13680 test -z "$as_dir" && as_dir=.
13681 for ac_exec_ext in '' $ac_executable_extensions; do
13682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13683 ac_cv_prog_AR="${ac_tool_prefix}ar"
13684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13685 break 2
13687 done
13688 done
13689 IFS=$as_save_IFS
13693 AR=$ac_cv_prog_AR
13694 if test -n "$AR"; then
13695 { echo "$as_me:$LINENO: result: $AR" >&5
13696 echo "${ECHO_T}$AR" >&6; }
13697 else
13698 { echo "$as_me:$LINENO: result: no" >&5
13699 echo "${ECHO_T}no" >&6; }
13704 if test -z "$ac_cv_prog_AR"; then
13705 ac_ct_AR=$AR
13706 # Extract the first word of "ar", so it can be a program name with args.
13707 set dummy ar; ac_word=$2
13708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13710 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 else
13713 if test -n "$ac_ct_AR"; then
13714 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13715 else
13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717 for as_dir in $PATH
13719 IFS=$as_save_IFS
13720 test -z "$as_dir" && as_dir=.
13721 for ac_exec_ext in '' $ac_executable_extensions; do
13722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13723 ac_cv_prog_ac_ct_AR="ar"
13724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13725 break 2
13727 done
13728 done
13729 IFS=$as_save_IFS
13733 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13734 if test -n "$ac_ct_AR"; then
13735 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13736 echo "${ECHO_T}$ac_ct_AR" >&6; }
13737 else
13738 { echo "$as_me:$LINENO: result: no" >&5
13739 echo "${ECHO_T}no" >&6; }
13742 if test "x$ac_ct_AR" = x; then
13743 AR="false"
13744 else
13745 case $cross_compiling:$ac_tool_warned in
13746 yes:)
13747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13748 whose name does not start with the host triplet. If you think this
13749 configuration is useful to you, please write to autoconf@gnu.org." >&5
13750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13751 whose name does not start with the host triplet. If you think this
13752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13753 ac_tool_warned=yes ;;
13754 esac
13755 AR=$ac_ct_AR
13757 else
13758 AR="$ac_cv_prog_AR"
13761 if test -n "$ac_tool_prefix"; then
13762 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13763 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13766 if test "${ac_cv_prog_RANLIB+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769 if test -n "$RANLIB"; then
13770 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13771 else
13772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13773 for as_dir in $PATH
13775 IFS=$as_save_IFS
13776 test -z "$as_dir" && as_dir=.
13777 for ac_exec_ext in '' $ac_executable_extensions; do
13778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13779 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13781 break 2
13783 done
13784 done
13785 IFS=$as_save_IFS
13789 RANLIB=$ac_cv_prog_RANLIB
13790 if test -n "$RANLIB"; then
13791 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13792 echo "${ECHO_T}$RANLIB" >&6; }
13793 else
13794 { echo "$as_me:$LINENO: result: no" >&5
13795 echo "${ECHO_T}no" >&6; }
13800 if test -z "$ac_cv_prog_RANLIB"; then
13801 ac_ct_RANLIB=$RANLIB
13802 # Extract the first word of "ranlib", so it can be a program name with args.
13803 set dummy ranlib; ac_word=$2
13804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13806 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809 if test -n "$ac_ct_RANLIB"; then
13810 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13811 else
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13815 IFS=$as_save_IFS
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13819 ac_cv_prog_ac_ct_RANLIB="ranlib"
13820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13821 break 2
13823 done
13824 done
13825 IFS=$as_save_IFS
13829 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13830 if test -n "$ac_ct_RANLIB"; then
13831 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13832 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13833 else
13834 { echo "$as_me:$LINENO: result: no" >&5
13835 echo "${ECHO_T}no" >&6; }
13838 if test "x$ac_ct_RANLIB" = x; then
13839 RANLIB=":"
13840 else
13841 case $cross_compiling:$ac_tool_warned in
13842 yes:)
13843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13844 whose name does not start with the host triplet. If you think this
13845 configuration is useful to you, please write to autoconf@gnu.org." >&5
13846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13847 whose name does not start with the host triplet. If you think this
13848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13849 ac_tool_warned=yes ;;
13850 esac
13851 RANLIB=$ac_ct_RANLIB
13853 else
13854 RANLIB="$ac_cv_prog_RANLIB"
13857 if test -n "$ac_tool_prefix"; then
13858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13859 set dummy ${ac_tool_prefix}strip; ac_word=$2
13860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13862 if test "${ac_cv_prog_STRIP+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865 if test -n "$STRIP"; then
13866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13867 else
13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 for as_dir in $PATH
13871 IFS=$as_save_IFS
13872 test -z "$as_dir" && as_dir=.
13873 for ac_exec_ext in '' $ac_executable_extensions; do
13874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13877 break 2
13879 done
13880 done
13881 IFS=$as_save_IFS
13885 STRIP=$ac_cv_prog_STRIP
13886 if test -n "$STRIP"; then
13887 { echo "$as_me:$LINENO: result: $STRIP" >&5
13888 echo "${ECHO_T}$STRIP" >&6; }
13889 else
13890 { echo "$as_me:$LINENO: result: no" >&5
13891 echo "${ECHO_T}no" >&6; }
13896 if test -z "$ac_cv_prog_STRIP"; then
13897 ac_ct_STRIP=$STRIP
13898 # Extract the first word of "strip", so it can be a program name with args.
13899 set dummy strip; ac_word=$2
13900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13902 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905 if test -n "$ac_ct_STRIP"; then
13906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13907 else
13908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13909 for as_dir in $PATH
13911 IFS=$as_save_IFS
13912 test -z "$as_dir" && as_dir=.
13913 for ac_exec_ext in '' $ac_executable_extensions; do
13914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13915 ac_cv_prog_ac_ct_STRIP="strip"
13916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13917 break 2
13919 done
13920 done
13921 IFS=$as_save_IFS
13925 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13926 if test -n "$ac_ct_STRIP"; then
13927 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13928 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13929 else
13930 { echo "$as_me:$LINENO: result: no" >&5
13931 echo "${ECHO_T}no" >&6; }
13934 if test "x$ac_ct_STRIP" = x; then
13935 STRIP=":"
13936 else
13937 case $cross_compiling:$ac_tool_warned in
13938 yes:)
13939 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13940 whose name does not start with the host triplet. If you think this
13941 configuration is useful to you, please write to autoconf@gnu.org." >&5
13942 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13943 whose name does not start with the host triplet. If you think this
13944 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13945 ac_tool_warned=yes ;;
13946 esac
13947 STRIP=$ac_ct_STRIP
13949 else
13950 STRIP="$ac_cv_prog_STRIP"
13954 old_CC="$CC"
13955 old_CFLAGS="$CFLAGS"
13957 # Set sane defaults for various variables
13958 test -z "$AR" && AR=ar
13959 test -z "$AR_FLAGS" && AR_FLAGS=cru
13960 test -z "$AS" && AS=as
13961 test -z "$CC" && CC=cc
13962 test -z "$LTCC" && LTCC=$CC
13963 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13964 test -z "$DLLTOOL" && DLLTOOL=dlltool
13965 test -z "$LD" && LD=ld
13966 test -z "$LN_S" && LN_S="ln -s"
13967 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13968 test -z "$NM" && NM=nm
13969 test -z "$SED" && SED=sed
13970 test -z "$OBJDUMP" && OBJDUMP=objdump
13971 test -z "$RANLIB" && RANLIB=:
13972 test -z "$STRIP" && STRIP=:
13973 test -z "$ac_objext" && ac_objext=o
13975 # Determine commands to create old-style static archives.
13976 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13977 old_postinstall_cmds='chmod 644 $oldlib'
13978 old_postuninstall_cmds=
13980 if test -n "$RANLIB"; then
13981 case $host_os in
13982 openbsd*)
13983 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13986 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13988 esac
13989 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13992 for cc_temp in $compiler""; do
13993 case $cc_temp in
13994 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13995 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13996 \-*) ;;
13997 *) break;;
13998 esac
13999 done
14000 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14003 # Only perform the check for file, if the check method requires it
14004 case $deplibs_check_method in
14005 file_magic*)
14006 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14007 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14008 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
14009 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 else
14012 case $MAGIC_CMD in
14013 [\\/*] | ?:[\\/]*)
14014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14017 lt_save_MAGIC_CMD="$MAGIC_CMD"
14018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14020 for ac_dir in $ac_dummy; do
14021 IFS="$lt_save_ifs"
14022 test -z "$ac_dir" && ac_dir=.
14023 if test -f $ac_dir/${ac_tool_prefix}file; then
14024 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14025 if test -n "$file_magic_test_file"; then
14026 case $deplibs_check_method in
14027 "file_magic "*)
14028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14031 $EGREP "$file_magic_regex" > /dev/null; then
14033 else
14034 cat <<EOF 1>&2
14036 *** Warning: the command libtool uses to detect shared libraries,
14037 *** $file_magic_cmd, produces output that libtool cannot recognize.
14038 *** The result is that libtool may fail to recognize shared libraries
14039 *** as such. This will affect the creation of libtool libraries that
14040 *** depend on shared libraries, but programs linked with such libtool
14041 *** libraries will work regardless of this problem. Nevertheless, you
14042 *** may want to report the problem to your system manager and/or to
14043 *** bug-libtool@gnu.org
14046 fi ;;
14047 esac
14049 break
14051 done
14052 IFS="$lt_save_ifs"
14053 MAGIC_CMD="$lt_save_MAGIC_CMD"
14055 esac
14058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14059 if test -n "$MAGIC_CMD"; then
14060 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14061 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14062 else
14063 { echo "$as_me:$LINENO: result: no" >&5
14064 echo "${ECHO_T}no" >&6; }
14067 if test -z "$lt_cv_path_MAGIC_CMD"; then
14068 if test -n "$ac_tool_prefix"; then
14069 { echo "$as_me:$LINENO: checking for file" >&5
14070 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
14071 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074 case $MAGIC_CMD in
14075 [\\/*] | ?:[\\/]*)
14076 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14079 lt_save_MAGIC_CMD="$MAGIC_CMD"
14080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14081 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14082 for ac_dir in $ac_dummy; do
14083 IFS="$lt_save_ifs"
14084 test -z "$ac_dir" && ac_dir=.
14085 if test -f $ac_dir/file; then
14086 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14087 if test -n "$file_magic_test_file"; then
14088 case $deplibs_check_method in
14089 "file_magic "*)
14090 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14092 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14093 $EGREP "$file_magic_regex" > /dev/null; then
14095 else
14096 cat <<EOF 1>&2
14098 *** Warning: the command libtool uses to detect shared libraries,
14099 *** $file_magic_cmd, produces output that libtool cannot recognize.
14100 *** The result is that libtool may fail to recognize shared libraries
14101 *** as such. This will affect the creation of libtool libraries that
14102 *** depend on shared libraries, but programs linked with such libtool
14103 *** libraries will work regardless of this problem. Nevertheless, you
14104 *** may want to report the problem to your system manager and/or to
14105 *** bug-libtool@gnu.org
14108 fi ;;
14109 esac
14111 break
14113 done
14114 IFS="$lt_save_ifs"
14115 MAGIC_CMD="$lt_save_MAGIC_CMD"
14117 esac
14120 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14121 if test -n "$MAGIC_CMD"; then
14122 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14123 echo "${ECHO_T}$MAGIC_CMD" >&6; }
14124 else
14125 { echo "$as_me:$LINENO: result: no" >&5
14126 echo "${ECHO_T}no" >&6; }
14129 else
14130 MAGIC_CMD=:
14136 esac
14138 enable_dlopen=yes
14139 enable_win32_dll=no
14141 # Check whether --enable-libtool-lock was given.
14142 if test "${enable_libtool_lock+set}" = set; then
14143 enableval=$enable_libtool_lock;
14146 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14149 # Check whether --with-pic was given.
14150 if test "${with_pic+set}" = set; then
14151 withval=$with_pic; pic_mode="$withval"
14152 else
14153 pic_mode=default
14156 test -z "$pic_mode" && pic_mode=default
14158 # Use C for the default configuration in the libtool script
14159 tagname=
14160 lt_save_CC="$CC"
14161 ac_ext=c
14162 ac_cpp='$CPP $CPPFLAGS'
14163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14168 # Source file extension for C test sources.
14169 ac_ext=c
14171 # Object file extension for compiled C test sources.
14172 objext=o
14173 objext=$objext
14175 # Code to be used in simple compile tests
14176 lt_simple_compile_test_code="int some_variable = 0;\n"
14178 # Code to be used in simple link tests
14179 lt_simple_link_test_code='int main(){return(0);}\n'
14182 # If no C compiler was specified, use CC.
14183 LTCC=${LTCC-"$CC"}
14185 # If no C compiler flags were specified, use CFLAGS.
14186 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14188 # Allow CC to be a program name with arguments.
14189 compiler=$CC
14192 # save warnings/boilerplate of simple test code
14193 ac_outfile=conftest.$ac_objext
14194 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14196 _lt_compiler_boilerplate=`cat conftest.err`
14197 $rm conftest*
14199 ac_outfile=conftest.$ac_objext
14200 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14202 _lt_linker_boilerplate=`cat conftest.err`
14203 $rm conftest*
14207 lt_prog_compiler_no_builtin_flag=
14209 if test "$GCC" = yes; then
14210 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14213 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14214 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14215 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 else
14218 lt_cv_prog_compiler_rtti_exceptions=no
14219 ac_outfile=conftest.$ac_objext
14220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14221 lt_compiler_flag="-fno-rtti -fno-exceptions"
14222 # Insert the option either (1) after the last *FLAGS variable, or
14223 # (2) before a word containing "conftest.", or (3) at the end.
14224 # Note that $ac_compile itself does not contain backslashes and begins
14225 # with a dollar sign (not a hyphen), so the echo should work correctly.
14226 # The option is referenced via a variable to avoid confusing sed.
14227 lt_compile=`echo "$ac_compile" | $SED \
14228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14230 -e 's:$: $lt_compiler_flag:'`
14231 (eval echo "\"\$as_me:14231: $lt_compile\"" >&5)
14232 (eval "$lt_compile" 2>conftest.err)
14233 ac_status=$?
14234 cat conftest.err >&5
14235 echo "$as_me:14235: \$? = $ac_status" >&5
14236 if (exit $ac_status) && test -s "$ac_outfile"; then
14237 # The compiler can only warn and ignore the option if not recognized
14238 # So say no if there are warnings other than the usual output.
14239 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14241 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14242 lt_cv_prog_compiler_rtti_exceptions=yes
14245 $rm conftest*
14248 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14249 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14251 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14252 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14253 else
14259 lt_prog_compiler_wl=
14260 lt_prog_compiler_pic=
14261 lt_prog_compiler_static=
14263 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14264 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14266 if test "$GCC" = yes; then
14267 lt_prog_compiler_wl='-Wl,'
14268 lt_prog_compiler_static='-static'
14270 case $host_os in
14271 aix*)
14272 # All AIX code is PIC.
14273 if test "$host_cpu" = ia64; then
14274 # AIX 5 now supports IA64 processor
14275 lt_prog_compiler_static='-Bstatic'
14279 amigaos*)
14280 # FIXME: we need at least 68020 code to build shared libraries, but
14281 # adding the `-m68020' flag to GCC prevents building anything better,
14282 # like `-m68040'.
14283 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14286 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14287 # PIC is the default for these OSes.
14290 mingw* | pw32* | os2*)
14291 # This hack is so that the source file can tell whether it is being
14292 # built for inclusion in a dll (and should export symbols for example).
14293 lt_prog_compiler_pic='-DDLL_EXPORT'
14296 darwin* | rhapsody*)
14297 # PIC is the default on this platform
14298 # Common symbols not allowed in MH_DYLIB files
14299 lt_prog_compiler_pic='-fno-common'
14302 interix3*)
14303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14304 # Instead, we relocate shared libraries at runtime.
14307 msdosdjgpp*)
14308 # Just because we use GCC doesn't mean we suddenly get shared libraries
14309 # on systems that don't support them.
14310 lt_prog_compiler_can_build_shared=no
14311 enable_shared=no
14314 sysv4*MP*)
14315 if test -d /usr/nec; then
14316 lt_prog_compiler_pic=-Kconform_pic
14320 hpux*)
14321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14322 # not for PA HP-UX.
14323 case $host_cpu in
14324 hppa*64*|ia64*)
14325 # +Z the default
14328 lt_prog_compiler_pic='-fPIC'
14330 esac
14334 lt_prog_compiler_pic='-fPIC'
14336 esac
14337 else
14338 # PORTME Check for flag to pass linker flags through the system compiler.
14339 case $host_os in
14340 aix*)
14341 lt_prog_compiler_wl='-Wl,'
14342 if test "$host_cpu" = ia64; then
14343 # AIX 5 now supports IA64 processor
14344 lt_prog_compiler_static='-Bstatic'
14345 else
14346 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14349 darwin*)
14350 # PIC is the default on this platform
14351 # Common symbols not allowed in MH_DYLIB files
14352 case $cc_basename in
14353 xlc*)
14354 lt_prog_compiler_pic='-qnocommon'
14355 lt_prog_compiler_wl='-Wl,'
14357 esac
14360 mingw* | pw32* | os2*)
14361 # This hack is so that the source file can tell whether it is being
14362 # built for inclusion in a dll (and should export symbols for example).
14363 lt_prog_compiler_pic='-DDLL_EXPORT'
14366 hpux9* | hpux10* | hpux11*)
14367 lt_prog_compiler_wl='-Wl,'
14368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14369 # not for PA HP-UX.
14370 case $host_cpu in
14371 hppa*64*|ia64*)
14372 # +Z the default
14375 lt_prog_compiler_pic='+Z'
14377 esac
14378 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14379 lt_prog_compiler_static='${wl}-a ${wl}archive'
14382 irix5* | irix6* | nonstopux*)
14383 lt_prog_compiler_wl='-Wl,'
14384 # PIC (with -KPIC) is the default.
14385 lt_prog_compiler_static='-non_shared'
14388 newsos6)
14389 lt_prog_compiler_pic='-KPIC'
14390 lt_prog_compiler_static='-Bstatic'
14393 linux*)
14394 case $cc_basename in
14395 icc* | ecc*)
14396 lt_prog_compiler_wl='-Wl,'
14397 lt_prog_compiler_pic='-KPIC'
14398 lt_prog_compiler_static='-static'
14400 pgcc* | pgf77* | pgf90* | pgf95*)
14401 # Portland Group compilers (*not* the Pentium gcc compiler,
14402 # which looks to be a dead project)
14403 lt_prog_compiler_wl='-Wl,'
14404 lt_prog_compiler_pic='-fpic'
14405 lt_prog_compiler_static='-Bstatic'
14407 ccc*)
14408 lt_prog_compiler_wl='-Wl,'
14409 # All Alpha code is PIC.
14410 lt_prog_compiler_static='-non_shared'
14412 esac
14415 osf3* | osf4* | osf5*)
14416 lt_prog_compiler_wl='-Wl,'
14417 # All OSF/1 code is PIC.
14418 lt_prog_compiler_static='-non_shared'
14421 solaris*)
14422 lt_prog_compiler_pic='-KPIC'
14423 lt_prog_compiler_static='-Bstatic'
14424 case $cc_basename in
14425 f77* | f90* | f95*)
14426 lt_prog_compiler_wl='-Qoption ld ';;
14428 lt_prog_compiler_wl='-Wl,';;
14429 esac
14432 sunos4*)
14433 lt_prog_compiler_wl='-Qoption ld '
14434 lt_prog_compiler_pic='-PIC'
14435 lt_prog_compiler_static='-Bstatic'
14438 sysv4 | sysv4.2uw2* | sysv4.3*)
14439 lt_prog_compiler_wl='-Wl,'
14440 lt_prog_compiler_pic='-KPIC'
14441 lt_prog_compiler_static='-Bstatic'
14444 sysv4*MP*)
14445 if test -d /usr/nec ;then
14446 lt_prog_compiler_pic='-Kconform_pic'
14447 lt_prog_compiler_static='-Bstatic'
14451 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14452 lt_prog_compiler_wl='-Wl,'
14453 lt_prog_compiler_pic='-KPIC'
14454 lt_prog_compiler_static='-Bstatic'
14457 unicos*)
14458 lt_prog_compiler_wl='-Wl,'
14459 lt_prog_compiler_can_build_shared=no
14462 uts4*)
14463 lt_prog_compiler_pic='-pic'
14464 lt_prog_compiler_static='-Bstatic'
14468 lt_prog_compiler_can_build_shared=no
14470 esac
14473 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14474 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14477 # Check to make sure the PIC flag actually works.
14479 if test -n "$lt_prog_compiler_pic"; then
14481 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14482 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14483 if test "${lt_prog_compiler_pic_works+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 else
14486 lt_prog_compiler_pic_works=no
14487 ac_outfile=conftest.$ac_objext
14488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14489 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14490 # Insert the option either (1) after the last *FLAGS variable, or
14491 # (2) before a word containing "conftest.", or (3) at the end.
14492 # Note that $ac_compile itself does not contain backslashes and begins
14493 # with a dollar sign (not a hyphen), so the echo should work correctly.
14494 # The option is referenced via a variable to avoid confusing sed.
14495 lt_compile=`echo "$ac_compile" | $SED \
14496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14498 -e 's:$: $lt_compiler_flag:'`
14499 (eval echo "\"\$as_me:14499: $lt_compile\"" >&5)
14500 (eval "$lt_compile" 2>conftest.err)
14501 ac_status=$?
14502 cat conftest.err >&5
14503 echo "$as_me:14503: \$? = $ac_status" >&5
14504 if (exit $ac_status) && test -s "$ac_outfile"; then
14505 # The compiler can only warn and ignore the option if not recognized
14506 # So say no if there are warnings other than the usual output.
14507 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14509 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14510 lt_prog_compiler_pic_works=yes
14513 $rm conftest*
14516 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14517 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
14519 if test x"$lt_prog_compiler_pic_works" = xyes; then
14520 case $lt_prog_compiler_pic in
14521 "" | " "*) ;;
14522 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14523 esac
14524 else
14525 lt_prog_compiler_pic=
14526 lt_prog_compiler_can_build_shared=no
14530 case $host_os in
14531 # For platforms which do not support PIC, -DPIC is meaningless:
14532 *djgpp*)
14533 lt_prog_compiler_pic=
14536 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14538 esac
14541 # Check to make sure the static flag actually works.
14543 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14544 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14545 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14546 if test "${lt_prog_compiler_static_works+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 else
14549 lt_prog_compiler_static_works=no
14550 save_LDFLAGS="$LDFLAGS"
14551 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14552 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14553 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14554 # The linker can only warn and ignore the option if not recognized
14555 # So say no if there are warnings
14556 if test -s conftest.err; then
14557 # Append any errors to the config.log.
14558 cat conftest.err 1>&5
14559 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14561 if diff conftest.exp conftest.er2 >/dev/null; then
14562 lt_prog_compiler_static_works=yes
14564 else
14565 lt_prog_compiler_static_works=yes
14568 $rm conftest*
14569 LDFLAGS="$save_LDFLAGS"
14572 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14573 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14575 if test x"$lt_prog_compiler_static_works" = xyes; then
14577 else
14578 lt_prog_compiler_static=
14582 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14583 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14584 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 else
14587 lt_cv_prog_compiler_c_o=no
14588 $rm -r conftest 2>/dev/null
14589 mkdir conftest
14590 cd conftest
14591 mkdir out
14592 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14594 lt_compiler_flag="-o out/conftest2.$ac_objext"
14595 # Insert the option either (1) after the last *FLAGS variable, or
14596 # (2) before a word containing "conftest.", or (3) at the end.
14597 # Note that $ac_compile itself does not contain backslashes and begins
14598 # with a dollar sign (not a hyphen), so the echo should work correctly.
14599 lt_compile=`echo "$ac_compile" | $SED \
14600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14602 -e 's:$: $lt_compiler_flag:'`
14603 (eval echo "\"\$as_me:14603: $lt_compile\"" >&5)
14604 (eval "$lt_compile" 2>out/conftest.err)
14605 ac_status=$?
14606 cat out/conftest.err >&5
14607 echo "$as_me:14607: \$? = $ac_status" >&5
14608 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14609 then
14610 # The compiler can only warn and ignore the option if not recognized
14611 # So say no if there are warnings
14612 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14613 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14614 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14615 lt_cv_prog_compiler_c_o=yes
14618 chmod u+w . 2>&5
14619 $rm conftest*
14620 # SGI C++ compiler will create directory out/ii_files/ for
14621 # template instantiation
14622 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14623 $rm out/* && rmdir out
14624 cd ..
14625 rmdir conftest
14626 $rm conftest*
14629 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14630 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14633 hard_links="nottested"
14634 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14635 # do not overwrite the value of need_locks provided by the user
14636 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14637 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14638 hard_links=yes
14639 $rm conftest*
14640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14641 touch conftest.a
14642 ln conftest.a conftest.b 2>&5 || hard_links=no
14643 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14644 { echo "$as_me:$LINENO: result: $hard_links" >&5
14645 echo "${ECHO_T}$hard_links" >&6; }
14646 if test "$hard_links" = no; then
14647 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14648 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14649 need_locks=warn
14651 else
14652 need_locks=no
14655 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14656 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14658 runpath_var=
14659 allow_undefined_flag=
14660 enable_shared_with_static_runtimes=no
14661 archive_cmds=
14662 archive_expsym_cmds=
14663 old_archive_From_new_cmds=
14664 old_archive_from_expsyms_cmds=
14665 export_dynamic_flag_spec=
14666 whole_archive_flag_spec=
14667 thread_safe_flag_spec=
14668 hardcode_libdir_flag_spec=
14669 hardcode_libdir_flag_spec_ld=
14670 hardcode_libdir_separator=
14671 hardcode_direct=no
14672 hardcode_minus_L=no
14673 hardcode_shlibpath_var=unsupported
14674 link_all_deplibs=unknown
14675 hardcode_automatic=no
14676 module_cmds=
14677 module_expsym_cmds=
14678 always_export_symbols=no
14679 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14680 # include_expsyms should be a list of space-separated symbols to be *always*
14681 # included in the symbol list
14682 include_expsyms=
14683 # exclude_expsyms can be an extended regexp of symbols to exclude
14684 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14685 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14686 # as well as any symbol that contains `d'.
14687 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14688 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14689 # platforms (ab)use it in PIC code, but their linkers get confused if
14690 # the symbol is explicitly referenced. Since portable code cannot
14691 # rely on this symbol name, it's probably fine to never include it in
14692 # preloaded symbol tables.
14693 extract_expsyms_cmds=
14694 # Just being paranoid about ensuring that cc_basename is set.
14695 for cc_temp in $compiler""; do
14696 case $cc_temp in
14697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14699 \-*) ;;
14700 *) break;;
14701 esac
14702 done
14703 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14705 case $host_os in
14706 cygwin* | mingw* | pw32*)
14707 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14708 # When not using gcc, we currently assume that we are using
14709 # Microsoft Visual C++.
14710 if test "$GCC" != yes; then
14711 with_gnu_ld=no
14714 interix*)
14715 # we just hope/assume this is gcc and not c89 (= MSVC++)
14716 with_gnu_ld=yes
14718 openbsd*)
14719 with_gnu_ld=no
14721 esac
14723 ld_shlibs=yes
14724 if test "$with_gnu_ld" = yes; then
14725 # If archive_cmds runs LD, not CC, wlarc should be empty
14726 wlarc='${wl}'
14728 # Set some defaults for GNU ld with shared library support. These
14729 # are reset later if shared libraries are not supported. Putting them
14730 # here allows them to be overridden if necessary.
14731 runpath_var=LD_RUN_PATH
14732 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14733 export_dynamic_flag_spec='${wl}--export-dynamic'
14734 # ancient GNU ld didn't support --whole-archive et. al.
14735 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14737 else
14738 whole_archive_flag_spec=
14740 supports_anon_versioning=no
14741 case `$LD -v 2>/dev/null` in
14742 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14743 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14744 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14745 *\ 2.11.*) ;; # other 2.11 versions
14746 *) supports_anon_versioning=yes ;;
14747 esac
14749 # See if GNU ld supports shared libraries.
14750 case $host_os in
14751 aix3* | aix4* | aix5*)
14752 # On AIX/PPC, the GNU linker is very broken
14753 if test "$host_cpu" != ia64; then
14754 ld_shlibs=no
14755 cat <<EOF 1>&2
14757 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14758 *** to be unable to reliably create shared libraries on AIX.
14759 *** Therefore, libtool is disabling shared libraries support. If you
14760 *** really care for shared libraries, you may want to modify your PATH
14761 *** so that a non-GNU linker is found, and then restart.
14767 amigaos*)
14768 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)'
14769 hardcode_libdir_flag_spec='-L$libdir'
14770 hardcode_minus_L=yes
14772 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14773 # that the semantics of dynamic libraries on AmigaOS, at least up
14774 # to version 4, is to share data among multiple programs linked
14775 # with the same dynamic library. Since this doesn't match the
14776 # behavior of shared libraries on other platforms, we can't use
14777 # them.
14778 ld_shlibs=no
14781 beos*)
14782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14783 allow_undefined_flag=unsupported
14784 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14785 # support --undefined. This deserves some investigation. FIXME
14786 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787 else
14788 ld_shlibs=no
14792 cygwin* | mingw* | pw32*)
14793 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14794 # as there is no search path for DLLs.
14795 hardcode_libdir_flag_spec='-L$libdir'
14796 allow_undefined_flag=unsupported
14797 always_export_symbols=no
14798 enable_shared_with_static_runtimes=yes
14799 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14801 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14803 # If the export-symbols file already is a .def file (1st line
14804 # is EXPORTS), use it as is; otherwise, prepend...
14805 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14806 cp $export_symbols $output_objdir/$soname.def;
14807 else
14808 echo EXPORTS > $output_objdir/$soname.def;
14809 cat $export_symbols >> $output_objdir/$soname.def;
14811 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14812 else
14813 ld_shlibs=no
14817 interix3*)
14818 hardcode_direct=no
14819 hardcode_shlibpath_var=no
14820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14821 export_dynamic_flag_spec='${wl}-E'
14822 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14823 # Instead, shared libraries are loaded at an image base (0x10000000 by
14824 # default) and relocated if they conflict, which is a slow very memory
14825 # consuming and fragmenting process. To avoid this, we pick a random,
14826 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14827 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14828 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14829 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'
14832 linux*)
14833 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14834 tmp_addflag=
14835 case $cc_basename,$host_cpu in
14836 pgcc*) # Portland Group C compiler
14837 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'
14838 tmp_addflag=' $pic_flag'
14840 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14841 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'
14842 tmp_addflag=' $pic_flag -Mnomain' ;;
14843 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14844 tmp_addflag=' -i_dynamic' ;;
14845 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14846 tmp_addflag=' -i_dynamic -nofor_main' ;;
14847 ifc* | ifort*) # Intel Fortran compiler
14848 tmp_addflag=' -nofor_main' ;;
14849 esac
14850 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14852 if test $supports_anon_versioning = yes; then
14853 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14854 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14855 $echo "local: *; };" >> $output_objdir/$libname.ver~
14856 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14858 else
14859 ld_shlibs=no
14863 netbsd*)
14864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14865 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14866 wlarc=
14867 else
14868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14873 solaris*)
14874 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14875 ld_shlibs=no
14876 cat <<EOF 1>&2
14878 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14879 *** create shared libraries on Solaris systems. Therefore, libtool
14880 *** is disabling shared libraries support. We urge you to upgrade GNU
14881 *** binutils to release 2.9.1 or newer. Another option is to modify
14882 *** your PATH or compiler configuration so that the native linker is
14883 *** used, and then restart.
14886 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14889 else
14890 ld_shlibs=no
14894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14895 case `$LD -v 2>&1` in
14896 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14897 ld_shlibs=no
14898 cat <<_LT_EOF 1>&2
14900 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14901 *** reliably create shared libraries on SCO systems. Therefore, libtool
14902 *** is disabling shared libraries support. We urge you to upgrade GNU
14903 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14904 *** your PATH or compiler configuration so that the native linker is
14905 *** used, and then restart.
14907 _LT_EOF
14910 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14911 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14913 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14914 else
14915 ld_shlibs=no
14918 esac
14921 sunos4*)
14922 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14923 wlarc=
14924 hardcode_direct=yes
14925 hardcode_shlibpath_var=no
14929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14931 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14932 else
14933 ld_shlibs=no
14936 esac
14938 if test "$ld_shlibs" = no; then
14939 runpath_var=
14940 hardcode_libdir_flag_spec=
14941 export_dynamic_flag_spec=
14942 whole_archive_flag_spec=
14944 else
14945 # PORTME fill in a description of your system's linker (not GNU ld)
14946 case $host_os in
14947 aix3*)
14948 allow_undefined_flag=unsupported
14949 always_export_symbols=yes
14950 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'
14951 # Note: this linker hardcodes the directories in LIBPATH if there
14952 # are no directories specified by -L.
14953 hardcode_minus_L=yes
14954 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14955 # Neither direct hardcoding nor static linking is supported with a
14956 # broken collect2.
14957 hardcode_direct=unsupported
14961 aix4* | aix5*)
14962 if test "$host_cpu" = ia64; then
14963 # On IA64, the linker does run time linking by default, so we don't
14964 # have to do anything special.
14965 aix_use_runtimelinking=no
14966 exp_sym_flag='-Bexport'
14967 no_entry_flag=""
14968 else
14969 # If we're using GNU nm, then we don't want the "-C" option.
14970 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14971 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14972 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'
14973 else
14974 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'
14976 aix_use_runtimelinking=no
14978 # Test if we are trying to use run time linking or normal
14979 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14980 # need to do runtime linking.
14981 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14982 for ld_flag in $LDFLAGS; do
14983 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14984 aix_use_runtimelinking=yes
14985 break
14987 done
14989 esac
14991 exp_sym_flag='-bexport'
14992 no_entry_flag='-bnoentry'
14995 # When large executables or shared objects are built, AIX ld can
14996 # have problems creating the table of contents. If linking a library
14997 # or program results in "error TOC overflow" add -mminimal-toc to
14998 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14999 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15001 archive_cmds=''
15002 hardcode_direct=yes
15003 hardcode_libdir_separator=':'
15004 link_all_deplibs=yes
15006 if test "$GCC" = yes; then
15007 case $host_os in aix4.[012]|aix4.[012].*)
15008 # We only want to do this on AIX 4.2 and lower, the check
15009 # below for broken collect2 doesn't work under 4.3+
15010 collect2name=`${CC} -print-prog-name=collect2`
15011 if test -f "$collect2name" && \
15012 strings "$collect2name" | grep resolve_lib_name >/dev/null
15013 then
15014 # We have reworked collect2
15015 hardcode_direct=yes
15016 else
15017 # We have old collect2
15018 hardcode_direct=unsupported
15019 # It fails to find uninstalled libraries when the uninstalled
15020 # path is not listed in the libpath. Setting hardcode_minus_L
15021 # to unsupported forces relinking
15022 hardcode_minus_L=yes
15023 hardcode_libdir_flag_spec='-L$libdir'
15024 hardcode_libdir_separator=
15027 esac
15028 shared_flag='-shared'
15029 if test "$aix_use_runtimelinking" = yes; then
15030 shared_flag="$shared_flag "'${wl}-G'
15032 else
15033 # not using gcc
15034 if test "$host_cpu" = ia64; then
15035 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15036 # chokes on -Wl,-G. The following line is correct:
15037 shared_flag='-G'
15038 else
15039 if test "$aix_use_runtimelinking" = yes; then
15040 shared_flag='${wl}-G'
15041 else
15042 shared_flag='${wl}-bM:SRE'
15047 # It seems that -bexpall does not export symbols beginning with
15048 # underscore (_), so it is better to generate a list of symbols to export.
15049 always_export_symbols=yes
15050 if test "$aix_use_runtimelinking" = yes; then
15051 # Warning - without using the other runtime loading flags (-brtl),
15052 # -berok will link without error, but may produce a broken library.
15053 allow_undefined_flag='-berok'
15054 # Determine the default libpath from the value encoded in an empty executable.
15055 cat >conftest.$ac_ext <<_ACEOF
15056 /* confdefs.h. */
15057 _ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h. */
15063 main ()
15067 return 0;
15069 _ACEOF
15070 rm -f conftest.$ac_objext conftest$ac_exeext
15071 if { (ac_try="$ac_link"
15072 case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15075 esac
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_link") 2>conftest.er1
15078 ac_status=$?
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
15084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15085 { (case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15088 esac
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_try") 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest$ac_exeext'
15095 { (case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15098 esac
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_try") 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15107 # Check for a 64-bit object if we didn't find anything.
15108 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; }
15109 }'`; fi
15110 else
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15117 rm -f core conftest.err conftest.$ac_objext \
15118 conftest$ac_exeext conftest.$ac_ext
15119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15121 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15122 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"
15123 else
15124 if test "$host_cpu" = ia64; then
15125 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15126 allow_undefined_flag="-z nodefs"
15127 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"
15128 else
15129 # Determine the default libpath from the value encoded in an empty executable.
15130 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h. */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15138 main ()
15142 return 0;
15144 _ACEOF
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (ac_try="$ac_link"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150 esac
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_link") 2>conftest.er1
15153 ac_status=$?
15154 grep -v '^ *+' conftest.er1 >conftest.err
15155 rm -f conftest.er1
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15160 { (case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15163 esac
15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_try") 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; } &&
15169 { ac_try='test -s conftest$ac_exeext'
15170 { (case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15173 esac
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_try") 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15180 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15182 # Check for a 64-bit object if we didn't find anything.
15183 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; }
15184 }'`; fi
15185 else
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15192 rm -f core conftest.err conftest.$ac_objext \
15193 conftest$ac_exeext conftest.$ac_ext
15194 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15196 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15197 # Warning - without using the other run time loading flags,
15198 # -berok will link without error, but may produce a broken library.
15199 no_undefined_flag=' ${wl}-bernotok'
15200 allow_undefined_flag=' ${wl}-berok'
15201 # Exported symbols can be pulled into shared objects from archives
15202 whole_archive_flag_spec='$convenience'
15203 archive_cmds_need_lc=yes
15204 # This is similar to how AIX traditionally builds its shared libraries.
15205 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'
15210 amigaos*)
15211 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)'
15212 hardcode_libdir_flag_spec='-L$libdir'
15213 hardcode_minus_L=yes
15214 # see comment about different semantics on the GNU ld section
15215 ld_shlibs=no
15218 bsdi[45]*)
15219 export_dynamic_flag_spec=-rdynamic
15222 cygwin* | mingw* | pw32*)
15223 # When not using gcc, we currently assume that we are using
15224 # Microsoft Visual C++.
15225 # hardcode_libdir_flag_spec is actually meaningless, as there is
15226 # no search path for DLLs.
15227 hardcode_libdir_flag_spec=' '
15228 allow_undefined_flag=unsupported
15229 # Tell ltmain to make .lib files, not .a files.
15230 libext=lib
15231 # Tell ltmain to make .dll files, not .so files.
15232 shrext_cmds=".dll"
15233 # FIXME: Setting linknames here is a bad hack.
15234 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15235 # The linker will automatically build a .lib file if we build a DLL.
15236 old_archive_From_new_cmds='true'
15237 # FIXME: Should let the user specify the lib program.
15238 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15239 fix_srcfile_path='`cygpath -w "$srcfile"`'
15240 enable_shared_with_static_runtimes=yes
15243 darwin* | rhapsody*)
15244 case $host_os in
15245 rhapsody* | darwin1.[012])
15246 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15248 *) # Darwin 1.3 on
15249 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15250 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15251 else
15252 case ${MACOSX_DEPLOYMENT_TARGET} in
15253 10.[012])
15254 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15256 10.*)
15257 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15259 esac
15262 esac
15263 archive_cmds_need_lc=no
15264 hardcode_direct=no
15265 hardcode_automatic=yes
15266 hardcode_shlibpath_var=unsupported
15267 whole_archive_flag_spec=''
15268 link_all_deplibs=yes
15269 if test "$GCC" = yes ; then
15270 output_verbose_link_cmd='echo'
15271 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15272 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15273 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15274 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}'
15275 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}'
15276 else
15277 case $cc_basename in
15278 xlc*)
15279 output_verbose_link_cmd='echo'
15280 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15281 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15282 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15283 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}'
15284 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}'
15287 ld_shlibs=no
15289 esac
15293 dgux*)
15294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15295 hardcode_libdir_flag_spec='-L$libdir'
15296 hardcode_shlibpath_var=no
15299 freebsd1*)
15300 ld_shlibs=no
15303 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15304 # support. Future versions do this automatically, but an explicit c++rt0.o
15305 # does not break anything, and helps significantly (at the cost of a little
15306 # extra space).
15307 freebsd2.2*)
15308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15309 hardcode_libdir_flag_spec='-R$libdir'
15310 hardcode_direct=yes
15311 hardcode_shlibpath_var=no
15314 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15315 freebsd2*)
15316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15317 hardcode_direct=yes
15318 hardcode_minus_L=yes
15319 hardcode_shlibpath_var=no
15322 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15323 freebsd* | kfreebsd*-gnu | dragonfly*)
15324 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15325 hardcode_libdir_flag_spec='-R$libdir'
15326 hardcode_direct=yes
15327 hardcode_shlibpath_var=no
15330 hpux9*)
15331 if test "$GCC" = yes; then
15332 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'
15333 else
15334 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'
15336 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15337 hardcode_libdir_separator=:
15338 hardcode_direct=yes
15340 # hardcode_minus_L: Not really in the search PATH,
15341 # but as the default location of the library.
15342 hardcode_minus_L=yes
15343 export_dynamic_flag_spec='${wl}-E'
15346 hpux10*)
15347 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15349 else
15350 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15352 if test "$with_gnu_ld" = no; then
15353 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15354 hardcode_libdir_separator=:
15356 hardcode_direct=yes
15357 export_dynamic_flag_spec='${wl}-E'
15359 # hardcode_minus_L: Not really in the search PATH,
15360 # but as the default location of the library.
15361 hardcode_minus_L=yes
15365 hpux11*)
15366 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15367 case $host_cpu in
15368 hppa*64*)
15369 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15371 ia64*)
15372 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15375 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15377 esac
15378 else
15379 case $host_cpu in
15380 hppa*64*)
15381 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15383 ia64*)
15384 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15387 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15389 esac
15391 if test "$with_gnu_ld" = no; then
15392 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15393 hardcode_libdir_separator=:
15395 case $host_cpu in
15396 hppa*64*|ia64*)
15397 hardcode_libdir_flag_spec_ld='+b $libdir'
15398 hardcode_direct=no
15399 hardcode_shlibpath_var=no
15402 hardcode_direct=yes
15403 export_dynamic_flag_spec='${wl}-E'
15405 # hardcode_minus_L: Not really in the search PATH,
15406 # but as the default location of the library.
15407 hardcode_minus_L=yes
15409 esac
15413 irix5* | irix6* | nonstopux*)
15414 if test "$GCC" = yes; then
15415 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'
15416 else
15417 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'
15418 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15421 hardcode_libdir_separator=:
15422 link_all_deplibs=yes
15425 netbsd*)
15426 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15428 else
15429 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15431 hardcode_libdir_flag_spec='-R$libdir'
15432 hardcode_direct=yes
15433 hardcode_shlibpath_var=no
15436 newsos6)
15437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15438 hardcode_direct=yes
15439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15440 hardcode_libdir_separator=:
15441 hardcode_shlibpath_var=no
15444 openbsd*)
15445 hardcode_direct=yes
15446 hardcode_shlibpath_var=no
15447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15448 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15449 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15450 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15451 export_dynamic_flag_spec='${wl}-E'
15452 else
15453 case $host_os in
15454 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15456 hardcode_libdir_flag_spec='-R$libdir'
15459 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15460 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15462 esac
15466 os2*)
15467 hardcode_libdir_flag_spec='-L$libdir'
15468 hardcode_minus_L=yes
15469 allow_undefined_flag=unsupported
15470 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'
15471 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15474 osf3*)
15475 if test "$GCC" = yes; then
15476 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15477 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'
15478 else
15479 allow_undefined_flag=' -expect_unresolved \*'
15480 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'
15482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15483 hardcode_libdir_separator=:
15486 osf4* | osf5*) # as osf3* with the addition of -msym flag
15487 if test "$GCC" = yes; then
15488 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15489 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'
15490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15491 else
15492 allow_undefined_flag=' -expect_unresolved \*'
15493 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'
15494 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15495 $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'
15497 # Both c and cxx compiler support -rpath directly
15498 hardcode_libdir_flag_spec='-rpath $libdir'
15500 hardcode_libdir_separator=:
15503 solaris*)
15504 no_undefined_flag=' -z text'
15505 if test "$GCC" = yes; then
15506 wlarc='${wl}'
15507 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15508 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15509 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15510 else
15511 wlarc=''
15512 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15514 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15516 hardcode_libdir_flag_spec='-R$libdir'
15517 hardcode_shlibpath_var=no
15518 case $host_os in
15519 solaris2.[0-5] | solaris2.[0-5].*) ;;
15521 # The compiler driver will combine linker options so we
15522 # cannot just pass the convience library names through
15523 # without $wl, iff we do not link with $LD.
15524 # Luckily, gcc supports the same syntax we need for Sun Studio.
15525 # Supported since Solaris 2.6 (maybe 2.5.1?)
15526 case $wlarc in
15528 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15530 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' ;;
15531 esac ;;
15532 esac
15533 link_all_deplibs=yes
15536 sunos4*)
15537 if test "x$host_vendor" = xsequent; then
15538 # Use $CC to link under sequent, because it throws in some extra .o
15539 # files that make .init and .fini sections work.
15540 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15541 else
15542 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15544 hardcode_libdir_flag_spec='-L$libdir'
15545 hardcode_direct=yes
15546 hardcode_minus_L=yes
15547 hardcode_shlibpath_var=no
15550 sysv4)
15551 case $host_vendor in
15552 sni)
15553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15554 hardcode_direct=yes # is this really true???
15556 siemens)
15557 ## LD is ld it makes a PLAMLIB
15558 ## CC just makes a GrossModule.
15559 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15560 reload_cmds='$CC -r -o $output$reload_objs'
15561 hardcode_direct=no
15563 motorola)
15564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15565 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15567 esac
15568 runpath_var='LD_RUN_PATH'
15569 hardcode_shlibpath_var=no
15572 sysv4.3*)
15573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15574 hardcode_shlibpath_var=no
15575 export_dynamic_flag_spec='-Bexport'
15578 sysv4*MP*)
15579 if test -d /usr/nec; then
15580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15581 hardcode_shlibpath_var=no
15582 runpath_var=LD_RUN_PATH
15583 hardcode_runpath_var=yes
15584 ld_shlibs=yes
15588 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15589 no_undefined_flag='${wl}-z,text'
15590 archive_cmds_need_lc=no
15591 hardcode_shlibpath_var=no
15592 runpath_var='LD_RUN_PATH'
15594 if test "$GCC" = yes; then
15595 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15596 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15597 else
15598 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15599 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 sysv5* | sco3.2v5* | sco5v6*)
15604 # Note: We can NOT use -z defs as we might desire, because we do not
15605 # link with -lc, and that would cause any symbols used from libc to
15606 # always be unresolved, which means just about no library would
15607 # ever link correctly. If we're not using GNU ld we use -z text
15608 # though, which does catch some bad symbols but isn't as heavy-handed
15609 # as -z defs.
15610 no_undefined_flag='${wl}-z,text'
15611 allow_undefined_flag='${wl}-z,nodefs'
15612 archive_cmds_need_lc=no
15613 hardcode_shlibpath_var=no
15614 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15615 hardcode_libdir_separator=':'
15616 link_all_deplibs=yes
15617 export_dynamic_flag_spec='${wl}-Bexport'
15618 runpath_var='LD_RUN_PATH'
15620 if test "$GCC" = yes; then
15621 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15622 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15623 else
15624 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15629 uts4*)
15630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15631 hardcode_libdir_flag_spec='-L$libdir'
15632 hardcode_shlibpath_var=no
15636 ld_shlibs=no
15638 esac
15641 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15642 echo "${ECHO_T}$ld_shlibs" >&6; }
15643 test "$ld_shlibs" = no && can_build_shared=no
15646 # Do we need to explicitly link libc?
15648 case "x$archive_cmds_need_lc" in
15649 x|xyes)
15650 # Assume -lc should be added
15651 archive_cmds_need_lc=yes
15653 if test "$enable_shared" = yes && test "$GCC" = yes; then
15654 case $archive_cmds in
15655 *'~'*)
15656 # FIXME: we may have to deal with multi-command sequences.
15658 '$CC '*)
15659 # Test whether the compiler implicitly links with -lc since on some
15660 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15661 # to ld, don't add -lc before -lgcc.
15662 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15663 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15664 $rm conftest*
15665 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15668 (eval $ac_compile) 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } 2>conftest.err; then
15672 soname=conftest
15673 lib=conftest
15674 libobjs=conftest.$ac_objext
15675 deplibs=
15676 wl=$lt_prog_compiler_wl
15677 pic_flag=$lt_prog_compiler_pic
15678 compiler_flags=-v
15679 linker_flags=-v
15680 verstring=
15681 output_objdir=.
15682 libname=conftest
15683 lt_save_allow_undefined_flag=$allow_undefined_flag
15684 allow_undefined_flag=
15685 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15686 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }
15690 then
15691 archive_cmds_need_lc=no
15692 else
15693 archive_cmds_need_lc=yes
15695 allow_undefined_flag=$lt_save_allow_undefined_flag
15696 else
15697 cat conftest.err 1>&5
15699 $rm conftest*
15700 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15701 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15703 esac
15706 esac
15708 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15709 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15710 library_names_spec=
15711 libname_spec='lib$name'
15712 soname_spec=
15713 shrext_cmds=".so"
15714 postinstall_cmds=
15715 postuninstall_cmds=
15716 finish_cmds=
15717 finish_eval=
15718 shlibpath_var=
15719 shlibpath_overrides_runpath=unknown
15720 version_type=none
15721 dynamic_linker="$host_os ld.so"
15722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15723 if test "$GCC" = yes; then
15724 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15725 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15726 # if the path contains ";" then we assume it to be the separator
15727 # otherwise default to the standard path separator (i.e. ":") - it is
15728 # assumed that no part of a normal pathname contains ";" but that should
15729 # okay in the real world where ";" in dirpaths is itself problematic.
15730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15731 else
15732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15734 else
15735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15737 need_lib_prefix=unknown
15738 hardcode_into_libs=no
15740 # when you set need_version to no, make sure it does not cause -set_version
15741 # flags to be left without arguments
15742 need_version=unknown
15744 case $host_os in
15745 aix3*)
15746 version_type=linux
15747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15748 shlibpath_var=LIBPATH
15750 # AIX 3 has no versioning support, so we append a major version to the name.
15751 soname_spec='${libname}${release}${shared_ext}$major'
15754 aix4* | aix5*)
15755 version_type=linux
15756 need_lib_prefix=no
15757 need_version=no
15758 hardcode_into_libs=yes
15759 if test "$host_cpu" = ia64; then
15760 # AIX 5 supports IA64
15761 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 else
15764 # With GCC up to 2.95.x, collect2 would create an import file
15765 # for dependence libraries. The import file would start with
15766 # the line `#! .'. This would cause the generated library to
15767 # depend on `.', always an invalid library. This was fixed in
15768 # development snapshots of GCC prior to 3.0.
15769 case $host_os in
15770 aix4 | aix4.[01] | aix4.[01].*)
15771 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15772 echo ' yes '
15773 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15775 else
15776 can_build_shared=no
15779 esac
15780 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15781 # soname into executable. Probably we can add versioning support to
15782 # collect2, so additional links can be useful in future.
15783 if test "$aix_use_runtimelinking" = yes; then
15784 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15785 # instead of lib<name>.a to let people know that these are not
15786 # typical AIX shared libraries.
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 else
15789 # We preserve .a as extension for shared libraries through AIX4.2
15790 # and later when we are not doing run time linking.
15791 library_names_spec='${libname}${release}.a $libname.a'
15792 soname_spec='${libname}${release}${shared_ext}$major'
15794 shlibpath_var=LIBPATH
15798 amigaos*)
15799 library_names_spec='$libname.ixlibrary $libname.a'
15800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15801 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'
15804 beos*)
15805 library_names_spec='${libname}${shared_ext}'
15806 dynamic_linker="$host_os ld.so"
15807 shlibpath_var=LIBRARY_PATH
15810 bsdi[45]*)
15811 version_type=linux
15812 need_version=no
15813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15814 soname_spec='${libname}${release}${shared_ext}$major'
15815 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15816 shlibpath_var=LD_LIBRARY_PATH
15817 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15818 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15819 # the default ld.so.conf also contains /usr/contrib/lib and
15820 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15821 # libtool to hard-code these into programs
15824 cygwin* | mingw* | pw32*)
15825 version_type=windows
15826 shrext_cmds=".dll"
15827 need_version=no
15828 need_lib_prefix=no
15830 case $GCC,$host_os in
15831 yes,cygwin* | yes,mingw* | yes,pw32*)
15832 library_names_spec='$libname.dll.a'
15833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15834 postinstall_cmds='base_file=`basename \${file}`~
15835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15836 dldir=$destdir/`dirname \$dlpath`~
15837 test -d \$dldir || mkdir -p \$dldir~
15838 $install_prog $dir/$dlname \$dldir/$dlname~
15839 chmod a+x \$dldir/$dlname'
15840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15841 dlpath=$dir/\$dldll~
15842 $rm \$dlpath'
15843 shlibpath_overrides_runpath=yes
15845 case $host_os in
15846 cygwin*)
15847 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15848 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15849 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15851 mingw*)
15852 # MinGW DLLs use traditional 'lib' prefix
15853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15854 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15855 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15856 # It is most probably a Windows format PATH printed by
15857 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15858 # path with ; separators, and with drive letters. We can handle the
15859 # drive letters (cygwin fileutils understands them), so leave them,
15860 # especially as we might pass files found there to a mingw objdump,
15861 # which wouldn't understand a cygwinified path. Ahh.
15862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15863 else
15864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15867 pw32*)
15868 # pw32 DLLs use 'pw' prefix rather than 'lib'
15869 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15871 esac
15875 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15877 esac
15878 dynamic_linker='Win32 ld.exe'
15879 # FIXME: first we should search . and the directory the executable is in
15880 shlibpath_var=PATH
15883 darwin* | rhapsody*)
15884 dynamic_linker="$host_os dyld"
15885 version_type=darwin
15886 need_lib_prefix=no
15887 need_version=no
15888 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15889 soname_spec='${libname}${release}${major}$shared_ext'
15890 shlibpath_overrides_runpath=yes
15891 shlibpath_var=DYLD_LIBRARY_PATH
15892 shrext_cmds='.dylib'
15893 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15894 if test "$GCC" = yes; then
15895 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"`
15896 else
15897 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15899 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15902 dgux*)
15903 version_type=linux
15904 need_lib_prefix=no
15905 need_version=no
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15907 soname_spec='${libname}${release}${shared_ext}$major'
15908 shlibpath_var=LD_LIBRARY_PATH
15911 freebsd1*)
15912 dynamic_linker=no
15915 kfreebsd*-gnu)
15916 version_type=linux
15917 need_lib_prefix=no
15918 need_version=no
15919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15920 soname_spec='${libname}${release}${shared_ext}$major'
15921 shlibpath_var=LD_LIBRARY_PATH
15922 shlibpath_overrides_runpath=no
15923 hardcode_into_libs=yes
15924 dynamic_linker='GNU ld.so'
15927 freebsd* | dragonfly*)
15928 # DragonFly does not have aout. When/if they implement a new
15929 # versioning mechanism, adjust this.
15930 if test -x /usr/bin/objformat; then
15931 objformat=`/usr/bin/objformat`
15932 else
15933 case $host_os in
15934 freebsd[123]*) objformat=aout ;;
15935 *) objformat=elf ;;
15936 esac
15938 version_type=freebsd-$objformat
15939 case $version_type in
15940 freebsd-elf*)
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15942 need_version=no
15943 need_lib_prefix=no
15945 freebsd-*)
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15947 need_version=yes
15949 esac
15950 shlibpath_var=LD_LIBRARY_PATH
15951 case $host_os in
15952 freebsd2*)
15953 shlibpath_overrides_runpath=yes
15955 freebsd3.[01]* | freebsdelf3.[01]*)
15956 shlibpath_overrides_runpath=yes
15957 hardcode_into_libs=yes
15959 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15960 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15961 shlibpath_overrides_runpath=no
15962 hardcode_into_libs=yes
15964 freebsd*) # from 4.6 on
15965 shlibpath_overrides_runpath=yes
15966 hardcode_into_libs=yes
15968 esac
15971 gnu*)
15972 version_type=linux
15973 need_lib_prefix=no
15974 need_version=no
15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15976 soname_spec='${libname}${release}${shared_ext}$major'
15977 shlibpath_var=LD_LIBRARY_PATH
15978 hardcode_into_libs=yes
15981 hpux9* | hpux10* | hpux11*)
15982 # Give a soname corresponding to the major version so that dld.sl refuses to
15983 # link against other versions.
15984 version_type=sunos
15985 need_lib_prefix=no
15986 need_version=no
15987 case $host_cpu in
15988 ia64*)
15989 shrext_cmds='.so'
15990 hardcode_into_libs=yes
15991 dynamic_linker="$host_os dld.so"
15992 shlibpath_var=LD_LIBRARY_PATH
15993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995 soname_spec='${libname}${release}${shared_ext}$major'
15996 if test "X$HPUX_IA64_MODE" = X32; then
15997 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15998 else
15999 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16003 hppa*64*)
16004 shrext_cmds='.sl'
16005 hardcode_into_libs=yes
16006 dynamic_linker="$host_os dld.sl"
16007 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010 soname_spec='${libname}${release}${shared_ext}$major'
16011 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16015 shrext_cmds='.sl'
16016 dynamic_linker="$host_os dld.sl"
16017 shlibpath_var=SHLIB_PATH
16018 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020 soname_spec='${libname}${release}${shared_ext}$major'
16022 esac
16023 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16024 postinstall_cmds='chmod 555 $lib'
16027 interix3*)
16028 version_type=linux
16029 need_lib_prefix=no
16030 need_version=no
16031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16032 soname_spec='${libname}${release}${shared_ext}$major'
16033 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16034 shlibpath_var=LD_LIBRARY_PATH
16035 shlibpath_overrides_runpath=no
16036 hardcode_into_libs=yes
16039 irix5* | irix6* | nonstopux*)
16040 case $host_os in
16041 nonstopux*) version_type=nonstopux ;;
16043 if test "$lt_cv_prog_gnu_ld" = yes; then
16044 version_type=linux
16045 else
16046 version_type=irix
16047 fi ;;
16048 esac
16049 need_lib_prefix=no
16050 need_version=no
16051 soname_spec='${libname}${release}${shared_ext}$major'
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16053 case $host_os in
16054 irix5* | nonstopux*)
16055 libsuff= shlibsuff=
16058 case $LD in # libtool.m4 will add one of these switches to LD
16059 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16060 libsuff= shlibsuff= libmagic=32-bit;;
16061 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16062 libsuff=32 shlibsuff=N32 libmagic=N32;;
16063 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16064 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16065 *) libsuff= shlibsuff= libmagic=never-match;;
16066 esac
16068 esac
16069 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16070 shlibpath_overrides_runpath=no
16071 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16072 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16073 hardcode_into_libs=yes
16076 # No shared lib support for Linux oldld, aout, or coff.
16077 linux*oldld* | linux*aout* | linux*coff*)
16078 dynamic_linker=no
16081 # This must be Linux ELF.
16082 linux*)
16083 version_type=linux
16084 need_lib_prefix=no
16085 need_version=no
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16089 shlibpath_var=LD_LIBRARY_PATH
16090 shlibpath_overrides_runpath=no
16091 # This implies no fast_install, which is unacceptable.
16092 # Some rework will be needed to allow for fast_install
16093 # before this can be enabled.
16094 hardcode_into_libs=yes
16096 # Append ld.so.conf contents to the search path
16097 if test -f /etc/ld.so.conf; then
16098 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' ' '`
16099 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16102 # We used to test for /lib/ld.so.1 and disable shared libraries on
16103 # powerpc, because MkLinux only supported shared libraries with the
16104 # GNU dynamic linker. Since this was broken with cross compilers,
16105 # most powerpc-linux boxes support dynamic linking these days and
16106 # people can always --disable-shared, the test was removed, and we
16107 # assume the GNU/Linux dynamic linker is in use.
16108 dynamic_linker='GNU/Linux ld.so'
16111 knetbsd*-gnu)
16112 version_type=linux
16113 need_lib_prefix=no
16114 need_version=no
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 shlibpath_var=LD_LIBRARY_PATH
16118 shlibpath_overrides_runpath=no
16119 hardcode_into_libs=yes
16120 dynamic_linker='GNU ld.so'
16123 netbsd*)
16124 version_type=sunos
16125 need_lib_prefix=no
16126 need_version=no
16127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16130 dynamic_linker='NetBSD (a.out) ld.so'
16131 else
16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16133 soname_spec='${libname}${release}${shared_ext}$major'
16134 dynamic_linker='NetBSD ld.elf_so'
16136 shlibpath_var=LD_LIBRARY_PATH
16137 shlibpath_overrides_runpath=yes
16138 hardcode_into_libs=yes
16141 newsos6)
16142 version_type=linux
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16144 shlibpath_var=LD_LIBRARY_PATH
16145 shlibpath_overrides_runpath=yes
16148 nto-qnx*)
16149 version_type=linux
16150 need_lib_prefix=no
16151 need_version=no
16152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16153 soname_spec='${libname}${release}${shared_ext}$major'
16154 shlibpath_var=LD_LIBRARY_PATH
16155 shlibpath_overrides_runpath=yes
16158 openbsd*)
16159 version_type=sunos
16160 sys_lib_dlsearch_path_spec="/usr/lib"
16161 need_lib_prefix=no
16162 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16163 case $host_os in
16164 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16165 *) need_version=no ;;
16166 esac
16167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16169 shlibpath_var=LD_LIBRARY_PATH
16170 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16171 case $host_os in
16172 openbsd2.[89] | openbsd2.[89].*)
16173 shlibpath_overrides_runpath=no
16176 shlibpath_overrides_runpath=yes
16178 esac
16179 else
16180 shlibpath_overrides_runpath=yes
16184 os2*)
16185 libname_spec='$name'
16186 shrext_cmds=".dll"
16187 need_lib_prefix=no
16188 library_names_spec='$libname${shared_ext} $libname.a'
16189 dynamic_linker='OS/2 ld.exe'
16190 shlibpath_var=LIBPATH
16193 osf3* | osf4* | osf5*)
16194 version_type=osf
16195 need_lib_prefix=no
16196 need_version=no
16197 soname_spec='${libname}${release}${shared_ext}$major'
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16199 shlibpath_var=LD_LIBRARY_PATH
16200 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16201 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16204 solaris*)
16205 version_type=linux
16206 need_lib_prefix=no
16207 need_version=no
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=yes
16212 hardcode_into_libs=yes
16213 # ldd complains unless libraries are executable
16214 postinstall_cmds='chmod +x $lib'
16217 sunos4*)
16218 version_type=sunos
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16220 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16221 shlibpath_var=LD_LIBRARY_PATH
16222 shlibpath_overrides_runpath=yes
16223 if test "$with_gnu_ld" = yes; then
16224 need_lib_prefix=no
16226 need_version=yes
16229 sysv4 | sysv4.3*)
16230 version_type=linux
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 shlibpath_var=LD_LIBRARY_PATH
16234 case $host_vendor in
16235 sni)
16236 shlibpath_overrides_runpath=no
16237 need_lib_prefix=no
16238 export_dynamic_flag_spec='${wl}-Blargedynsym'
16239 runpath_var=LD_RUN_PATH
16241 siemens)
16242 need_lib_prefix=no
16244 motorola)
16245 need_lib_prefix=no
16246 need_version=no
16247 shlibpath_overrides_runpath=no
16248 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16250 esac
16253 sysv4*MP*)
16254 if test -d /usr/nec ;then
16255 version_type=linux
16256 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16257 soname_spec='$libname${shared_ext}.$major'
16258 shlibpath_var=LD_LIBRARY_PATH
16262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16263 version_type=freebsd-elf
16264 need_lib_prefix=no
16265 need_version=no
16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16267 soname_spec='${libname}${release}${shared_ext}$major'
16268 shlibpath_var=LD_LIBRARY_PATH
16269 hardcode_into_libs=yes
16270 if test "$with_gnu_ld" = yes; then
16271 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16272 shlibpath_overrides_runpath=no
16273 else
16274 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16275 shlibpath_overrides_runpath=yes
16276 case $host_os in
16277 sco3.2v5*)
16278 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16280 esac
16282 sys_lib_dlsearch_path_spec='/usr/lib'
16285 uts4*)
16286 version_type=linux
16287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16288 soname_spec='${libname}${release}${shared_ext}$major'
16289 shlibpath_var=LD_LIBRARY_PATH
16293 dynamic_linker=no
16295 esac
16296 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16297 echo "${ECHO_T}$dynamic_linker" >&6; }
16298 test "$dynamic_linker" = no && can_build_shared=no
16300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16301 if test "$GCC" = yes; then
16302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16305 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16306 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16307 hardcode_action=
16308 if test -n "$hardcode_libdir_flag_spec" || \
16309 test -n "$runpath_var" || \
16310 test "X$hardcode_automatic" = "Xyes" ; then
16312 # We can hardcode non-existant directories.
16313 if test "$hardcode_direct" != no &&
16314 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16315 # have to relink, otherwise we might link with an installed library
16316 # when we should be linking with a yet-to-be-installed one
16317 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16318 test "$hardcode_minus_L" != no; then
16319 # Linking always hardcodes the temporary library directory.
16320 hardcode_action=relink
16321 else
16322 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16323 hardcode_action=immediate
16325 else
16326 # We cannot hardcode anything, or else we can only hardcode existing
16327 # directories.
16328 hardcode_action=unsupported
16330 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16331 echo "${ECHO_T}$hardcode_action" >&6; }
16333 if test "$hardcode_action" = relink; then
16334 # Fast installation is not supported
16335 enable_fast_install=no
16336 elif test "$shlibpath_overrides_runpath" = yes ||
16337 test "$enable_shared" = no; then
16338 # Fast installation is not necessary
16339 enable_fast_install=needless
16342 striplib=
16343 old_striplib=
16344 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16345 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16346 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16347 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16348 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16349 { echo "$as_me:$LINENO: result: yes" >&5
16350 echo "${ECHO_T}yes" >&6; }
16351 else
16352 # FIXME - insert some real tests, host_os isn't really good enough
16353 case $host_os in
16354 darwin*)
16355 if test -n "$STRIP" ; then
16356 striplib="$STRIP -x"
16357 { echo "$as_me:$LINENO: result: yes" >&5
16358 echo "${ECHO_T}yes" >&6; }
16359 else
16360 { echo "$as_me:$LINENO: result: no" >&5
16361 echo "${ECHO_T}no" >&6; }
16365 { echo "$as_me:$LINENO: result: no" >&5
16366 echo "${ECHO_T}no" >&6; }
16368 esac
16371 if test "x$enable_dlopen" != xyes; then
16372 enable_dlopen=unknown
16373 enable_dlopen_self=unknown
16374 enable_dlopen_self_static=unknown
16375 else
16376 lt_cv_dlopen=no
16377 lt_cv_dlopen_libs=
16379 case $host_os in
16380 beos*)
16381 lt_cv_dlopen="load_add_on"
16382 lt_cv_dlopen_libs=
16383 lt_cv_dlopen_self=yes
16386 mingw* | pw32*)
16387 lt_cv_dlopen="LoadLibrary"
16388 lt_cv_dlopen_libs=
16391 cygwin*)
16392 lt_cv_dlopen="dlopen"
16393 lt_cv_dlopen_libs=
16396 darwin*)
16397 # if libdl is installed we need to link against it
16398 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16399 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16400 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403 ac_check_lib_save_LIBS=$LIBS
16404 LIBS="-ldl $LIBS"
16405 cat >conftest.$ac_ext <<_ACEOF
16406 /* confdefs.h. */
16407 _ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16412 /* Override any GCC internal prototype to avoid an error.
16413 Use char because int might match the return type of a GCC
16414 builtin and then its argument prototype would still apply. */
16415 #ifdef __cplusplus
16416 extern "C"
16417 #endif
16418 char dlopen ();
16420 main ()
16422 return dlopen ();
16424 return 0;
16426 _ACEOF
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if { (ac_try="$ac_link"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_link") 2>conftest.er1
16435 ac_status=$?
16436 grep -v '^ *+' conftest.er1 >conftest.err
16437 rm -f conftest.er1
16438 cat conftest.err >&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } &&
16441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16442 { (case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_try") 2>&5
16448 ac_status=$?
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; } &&
16451 { ac_try='test -s conftest$ac_exeext'
16452 { (case "(($ac_try" in
16453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454 *) ac_try_echo=$ac_try;;
16455 esac
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457 (eval "$ac_try") 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 ac_cv_lib_dl_dlopen=yes
16462 else
16463 echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 ac_cv_lib_dl_dlopen=no
16469 rm -f core conftest.err conftest.$ac_objext \
16470 conftest$ac_exeext conftest.$ac_ext
16471 LIBS=$ac_check_lib_save_LIBS
16473 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16474 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16475 if test $ac_cv_lib_dl_dlopen = yes; then
16476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16477 else
16479 lt_cv_dlopen="dyld"
16480 lt_cv_dlopen_libs=
16481 lt_cv_dlopen_self=yes
16488 { echo "$as_me:$LINENO: checking for shl_load" >&5
16489 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16490 if test "${ac_cv_func_shl_load+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16492 else
16493 cat >conftest.$ac_ext <<_ACEOF
16494 /* confdefs.h. */
16495 _ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h. */
16499 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16501 #define shl_load innocuous_shl_load
16503 /* System header to define __stub macros and hopefully few prototypes,
16504 which can conflict with char shl_load (); below.
16505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16506 <limits.h> exists even on freestanding compilers. */
16508 #ifdef __STDC__
16509 # include <limits.h>
16510 #else
16511 # include <assert.h>
16512 #endif
16514 #undef shl_load
16516 /* Override any GCC internal prototype to avoid an error.
16517 Use char because int might match the return type of a GCC
16518 builtin and then its argument prototype would still apply. */
16519 #ifdef __cplusplus
16520 extern "C"
16521 #endif
16522 char shl_load ();
16523 /* The GNU C library defines this for functions which it implements
16524 to always fail with ENOSYS. Some functions are actually named
16525 something starting with __ and the normal name is an alias. */
16526 #if defined __stub_shl_load || defined __stub___shl_load
16527 choke me
16528 #endif
16531 main ()
16533 return shl_load ();
16535 return 0;
16537 _ACEOF
16538 rm -f conftest.$ac_objext conftest$ac_exeext
16539 if { (ac_try="$ac_link"
16540 case "(($ac_try" in
16541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542 *) ac_try_echo=$ac_try;;
16543 esac
16544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16545 (eval "$ac_link") 2>conftest.er1
16546 ac_status=$?
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } &&
16552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16553 { (case "(($ac_try" in
16554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555 *) ac_try_echo=$ac_try;;
16556 esac
16557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16558 (eval "$ac_try") 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; } &&
16562 { ac_try='test -s conftest$ac_exeext'
16563 { (case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16566 esac
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_try") 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ac_cv_func_shl_load=yes
16573 else
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16577 ac_cv_func_shl_load=no
16580 rm -f core conftest.err conftest.$ac_objext \
16581 conftest$ac_exeext conftest.$ac_ext
16583 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16584 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16585 if test $ac_cv_func_shl_load = yes; then
16586 lt_cv_dlopen="shl_load"
16587 else
16588 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16589 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16590 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593 ac_check_lib_save_LIBS=$LIBS
16594 LIBS="-ldld $LIBS"
16595 cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h. */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16602 /* Override any GCC internal prototype to avoid an error.
16603 Use char because int might match the return type of a GCC
16604 builtin and then its argument prototype would still apply. */
16605 #ifdef __cplusplus
16606 extern "C"
16607 #endif
16608 char shl_load ();
16610 main ()
16612 return shl_load ();
16614 return 0;
16616 _ACEOF
16617 rm -f conftest.$ac_objext conftest$ac_exeext
16618 if { (ac_try="$ac_link"
16619 case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16622 esac
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_link") 2>conftest.er1
16625 ac_status=$?
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16632 { (case "(($ac_try" in
16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_try") 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest$ac_exeext'
16642 { (case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16645 esac
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_try") 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; }; then
16651 ac_cv_lib_dld_shl_load=yes
16652 else
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_cv_lib_dld_shl_load=no
16659 rm -f core conftest.err conftest.$ac_objext \
16660 conftest$ac_exeext conftest.$ac_ext
16661 LIBS=$ac_check_lib_save_LIBS
16663 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16664 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16665 if test $ac_cv_lib_dld_shl_load = yes; then
16666 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16667 else
16668 { echo "$as_me:$LINENO: checking for dlopen" >&5
16669 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16670 if test "${ac_cv_func_dlopen+set}" = set; then
16671 echo $ECHO_N "(cached) $ECHO_C" >&6
16672 else
16673 cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h. */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16681 #define dlopen innocuous_dlopen
16683 /* System header to define __stub macros and hopefully few prototypes,
16684 which can conflict with char dlopen (); below.
16685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16686 <limits.h> exists even on freestanding compilers. */
16688 #ifdef __STDC__
16689 # include <limits.h>
16690 #else
16691 # include <assert.h>
16692 #endif
16694 #undef dlopen
16696 /* Override any GCC internal prototype to avoid an error.
16697 Use char because int might match the return type of a GCC
16698 builtin and then its argument prototype would still apply. */
16699 #ifdef __cplusplus
16700 extern "C"
16701 #endif
16702 char dlopen ();
16703 /* The GNU C library defines this for functions which it implements
16704 to always fail with ENOSYS. Some functions are actually named
16705 something starting with __ and the normal name is an alias. */
16706 #if defined __stub_dlopen || defined __stub___dlopen
16707 choke me
16708 #endif
16711 main ()
16713 return dlopen ();
16715 return 0;
16717 _ACEOF
16718 rm -f conftest.$ac_objext conftest$ac_exeext
16719 if { (ac_try="$ac_link"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723 esac
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_link") 2>conftest.er1
16726 ac_status=$?
16727 grep -v '^ *+' conftest.er1 >conftest.err
16728 rm -f conftest.er1
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
16732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16733 { (case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_try") 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest$ac_exeext'
16743 { (case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16746 esac
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_try") 2>&5
16749 ac_status=$?
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_cv_func_dlopen=yes
16753 else
16754 echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16757 ac_cv_func_dlopen=no
16760 rm -f core conftest.err conftest.$ac_objext \
16761 conftest$ac_exeext conftest.$ac_ext
16763 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16764 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16765 if test $ac_cv_func_dlopen = yes; then
16766 lt_cv_dlopen="dlopen"
16767 else
16768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16772 else
16773 ac_check_lib_save_LIBS=$LIBS
16774 LIBS="-ldl $LIBS"
16775 cat >conftest.$ac_ext <<_ACEOF
16776 /* confdefs.h. */
16777 _ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16782 /* Override any GCC internal prototype to avoid an error.
16783 Use char because int might match the return type of a GCC
16784 builtin and then its argument prototype would still apply. */
16785 #ifdef __cplusplus
16786 extern "C"
16787 #endif
16788 char dlopen ();
16790 main ()
16792 return dlopen ();
16794 return 0;
16796 _ACEOF
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (ac_try="$ac_link"
16799 case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16802 esac
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_link") 2>conftest.er1
16805 ac_status=$?
16806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16812 { (case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_try") 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; } &&
16821 { ac_try='test -s conftest$ac_exeext'
16822 { (case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16825 esac
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_try") 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; }; then
16831 ac_cv_lib_dl_dlopen=yes
16832 else
16833 echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16836 ac_cv_lib_dl_dlopen=no
16839 rm -f core conftest.err conftest.$ac_objext \
16840 conftest$ac_exeext conftest.$ac_ext
16841 LIBS=$ac_check_lib_save_LIBS
16843 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16844 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16845 if test $ac_cv_lib_dl_dlopen = yes; then
16846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16847 else
16848 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16849 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16850 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16851 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 else
16853 ac_check_lib_save_LIBS=$LIBS
16854 LIBS="-lsvld $LIBS"
16855 cat >conftest.$ac_ext <<_ACEOF
16856 /* confdefs.h. */
16857 _ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16862 /* Override any GCC internal prototype to avoid an error.
16863 Use char because int might match the return type of a GCC
16864 builtin and then its argument prototype would still apply. */
16865 #ifdef __cplusplus
16866 extern "C"
16867 #endif
16868 char dlopen ();
16870 main ()
16872 return dlopen ();
16874 return 0;
16876 _ACEOF
16877 rm -f conftest.$ac_objext conftest$ac_exeext
16878 if { (ac_try="$ac_link"
16879 case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16882 esac
16883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_link") 2>conftest.er1
16885 ac_status=$?
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } &&
16891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16892 { (case "(($ac_try" in
16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894 *) ac_try_echo=$ac_try;;
16895 esac
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897 (eval "$ac_try") 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; } &&
16901 { ac_try='test -s conftest$ac_exeext'
16902 { (case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_try") 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; }; then
16911 ac_cv_lib_svld_dlopen=yes
16912 else
16913 echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_cv_lib_svld_dlopen=no
16919 rm -f core conftest.err conftest.$ac_objext \
16920 conftest$ac_exeext conftest.$ac_ext
16921 LIBS=$ac_check_lib_save_LIBS
16923 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16924 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16925 if test $ac_cv_lib_svld_dlopen = yes; then
16926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16927 else
16928 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16929 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16930 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 else
16933 ac_check_lib_save_LIBS=$LIBS
16934 LIBS="-ldld $LIBS"
16935 cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h. */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16942 /* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
16945 #ifdef __cplusplus
16946 extern "C"
16947 #endif
16948 char dld_link ();
16950 main ()
16952 return dld_link ();
16954 return 0;
16956 _ACEOF
16957 rm -f conftest.$ac_objext conftest$ac_exeext
16958 if { (ac_try="$ac_link"
16959 case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962 esac
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_link") 2>conftest.er1
16965 ac_status=$?
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16972 { (case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16975 esac
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_try") 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest$ac_exeext'
16982 { (case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_try") 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_lib_dld_dld_link=yes
16992 else
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16996 ac_cv_lib_dld_dld_link=no
16999 rm -f core conftest.err conftest.$ac_objext \
17000 conftest$ac_exeext conftest.$ac_ext
17001 LIBS=$ac_check_lib_save_LIBS
17003 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17004 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17005 if test $ac_cv_lib_dld_dld_link = yes; then
17006 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17025 esac
17027 if test "x$lt_cv_dlopen" != xno; then
17028 enable_dlopen=yes
17029 else
17030 enable_dlopen=no
17033 case $lt_cv_dlopen in
17034 dlopen)
17035 save_CPPFLAGS="$CPPFLAGS"
17036 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17038 save_LDFLAGS="$LDFLAGS"
17039 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17041 save_LIBS="$LIBS"
17042 LIBS="$lt_cv_dlopen_libs $LIBS"
17044 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17045 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17046 if test "${lt_cv_dlopen_self+set}" = set; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17048 else
17049 if test "$cross_compiling" = yes; then :
17050 lt_cv_dlopen_self=cross
17051 else
17052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17053 lt_status=$lt_dlunknown
17054 cat > conftest.$ac_ext <<EOF
17055 #line 17055 "configure"
17056 #include "confdefs.h"
17058 #if HAVE_DLFCN_H
17059 #include <dlfcn.h>
17060 #endif
17062 #include <stdio.h>
17064 #ifdef RTLD_GLOBAL
17065 # define LT_DLGLOBAL RTLD_GLOBAL
17066 #else
17067 # ifdef DL_GLOBAL
17068 # define LT_DLGLOBAL DL_GLOBAL
17069 # else
17070 # define LT_DLGLOBAL 0
17071 # endif
17072 #endif
17074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17075 find out it does not work in some platform. */
17076 #ifndef LT_DLLAZY_OR_NOW
17077 # ifdef RTLD_LAZY
17078 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17079 # else
17080 # ifdef DL_LAZY
17081 # define LT_DLLAZY_OR_NOW DL_LAZY
17082 # else
17083 # ifdef RTLD_NOW
17084 # define LT_DLLAZY_OR_NOW RTLD_NOW
17085 # else
17086 # ifdef DL_NOW
17087 # define LT_DLLAZY_OR_NOW DL_NOW
17088 # else
17089 # define LT_DLLAZY_OR_NOW 0
17090 # endif
17091 # endif
17092 # endif
17093 # endif
17094 #endif
17096 #ifdef __cplusplus
17097 extern "C" void exit (int);
17098 #endif
17100 void fnord() { int i=42;}
17101 int main ()
17103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17104 int status = $lt_dlunknown;
17106 if (self)
17108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17109 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17110 /* dlclose (self); */
17112 else
17113 puts (dlerror ());
17115 exit (status);
17118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17119 (eval $ac_link) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17123 (./conftest; exit; ) >&5 2>/dev/null
17124 lt_status=$?
17125 case x$lt_status in
17126 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17127 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17128 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17129 esac
17130 else :
17131 # compilation failed
17132 lt_cv_dlopen_self=no
17135 rm -fr conftest*
17139 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17140 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17142 if test "x$lt_cv_dlopen_self" = xyes; then
17143 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17144 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17145 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17146 if test "${lt_cv_dlopen_self_static+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 else
17149 if test "$cross_compiling" = yes; then :
17150 lt_cv_dlopen_self_static=cross
17151 else
17152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17153 lt_status=$lt_dlunknown
17154 cat > conftest.$ac_ext <<EOF
17155 #line 17155 "configure"
17156 #include "confdefs.h"
17158 #if HAVE_DLFCN_H
17159 #include <dlfcn.h>
17160 #endif
17162 #include <stdio.h>
17164 #ifdef RTLD_GLOBAL
17165 # define LT_DLGLOBAL RTLD_GLOBAL
17166 #else
17167 # ifdef DL_GLOBAL
17168 # define LT_DLGLOBAL DL_GLOBAL
17169 # else
17170 # define LT_DLGLOBAL 0
17171 # endif
17172 #endif
17174 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17175 find out it does not work in some platform. */
17176 #ifndef LT_DLLAZY_OR_NOW
17177 # ifdef RTLD_LAZY
17178 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17179 # else
17180 # ifdef DL_LAZY
17181 # define LT_DLLAZY_OR_NOW DL_LAZY
17182 # else
17183 # ifdef RTLD_NOW
17184 # define LT_DLLAZY_OR_NOW RTLD_NOW
17185 # else
17186 # ifdef DL_NOW
17187 # define LT_DLLAZY_OR_NOW DL_NOW
17188 # else
17189 # define LT_DLLAZY_OR_NOW 0
17190 # endif
17191 # endif
17192 # endif
17193 # endif
17194 #endif
17196 #ifdef __cplusplus
17197 extern "C" void exit (int);
17198 #endif
17200 void fnord() { int i=42;}
17201 int main ()
17203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17204 int status = $lt_dlunknown;
17206 if (self)
17208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17209 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17210 /* dlclose (self); */
17212 else
17213 puts (dlerror ());
17215 exit (status);
17218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17219 (eval $ac_link) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17223 (./conftest; exit; ) >&5 2>/dev/null
17224 lt_status=$?
17225 case x$lt_status in
17226 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17227 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17228 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17229 esac
17230 else :
17231 # compilation failed
17232 lt_cv_dlopen_self_static=no
17235 rm -fr conftest*
17239 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17240 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17243 CPPFLAGS="$save_CPPFLAGS"
17244 LDFLAGS="$save_LDFLAGS"
17245 LIBS="$save_LIBS"
17247 esac
17249 case $lt_cv_dlopen_self in
17250 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17251 *) enable_dlopen_self=unknown ;;
17252 esac
17254 case $lt_cv_dlopen_self_static in
17255 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17256 *) enable_dlopen_self_static=unknown ;;
17257 esac
17261 # Report which library types will actually be built
17262 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17263 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17264 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17265 echo "${ECHO_T}$can_build_shared" >&6; }
17267 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17268 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17269 test "$can_build_shared" = "no" && enable_shared=no
17271 # On AIX, shared libraries and static libraries use the same namespace, and
17272 # are all built from PIC.
17273 case $host_os in
17274 aix3*)
17275 test "$enable_shared" = yes && enable_static=no
17276 if test -n "$RANLIB"; then
17277 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17278 postinstall_cmds='$RANLIB $lib'
17282 aix4* | aix5*)
17283 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17284 test "$enable_shared" = yes && enable_static=no
17287 esac
17288 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17289 echo "${ECHO_T}$enable_shared" >&6; }
17291 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17292 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17293 # Make sure either enable_shared or enable_static is yes.
17294 test "$enable_shared" = yes || enable_static=yes
17295 { echo "$as_me:$LINENO: result: $enable_static" >&5
17296 echo "${ECHO_T}$enable_static" >&6; }
17298 # The else clause should only fire when bootstrapping the
17299 # libtool distribution, otherwise you forgot to ship ltmain.sh
17300 # with your package, and you will get complaints that there are
17301 # no rules to generate ltmain.sh.
17302 if test -f "$ltmain"; then
17303 # See if we are running on zsh, and set the options which allow our commands through
17304 # without removal of \ escapes.
17305 if test -n "${ZSH_VERSION+set}" ; then
17306 setopt NO_GLOB_SUBST
17308 # Now quote all the things that may contain metacharacters while being
17309 # careful not to overquote the AC_SUBSTed values. We take copies of the
17310 # variables and quote the copies for generation of the libtool script.
17311 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17312 SED SHELL STRIP \
17313 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17314 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17315 deplibs_check_method reload_flag reload_cmds need_locks \
17316 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17317 lt_cv_sys_global_symbol_to_c_name_address \
17318 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17319 old_postinstall_cmds old_postuninstall_cmds \
17320 compiler \
17321 CC \
17322 LD \
17323 lt_prog_compiler_wl \
17324 lt_prog_compiler_pic \
17325 lt_prog_compiler_static \
17326 lt_prog_compiler_no_builtin_flag \
17327 export_dynamic_flag_spec \
17328 thread_safe_flag_spec \
17329 whole_archive_flag_spec \
17330 enable_shared_with_static_runtimes \
17331 old_archive_cmds \
17332 old_archive_from_new_cmds \
17333 predep_objects \
17334 postdep_objects \
17335 predeps \
17336 postdeps \
17337 compiler_lib_search_path \
17338 archive_cmds \
17339 archive_expsym_cmds \
17340 postinstall_cmds \
17341 postuninstall_cmds \
17342 old_archive_from_expsyms_cmds \
17343 allow_undefined_flag \
17344 no_undefined_flag \
17345 export_symbols_cmds \
17346 hardcode_libdir_flag_spec \
17347 hardcode_libdir_flag_spec_ld \
17348 hardcode_libdir_separator \
17349 hardcode_automatic \
17350 module_cmds \
17351 module_expsym_cmds \
17352 lt_cv_prog_compiler_c_o \
17353 exclude_expsyms \
17354 include_expsyms; do
17356 case $var in
17357 old_archive_cmds | \
17358 old_archive_from_new_cmds | \
17359 archive_cmds | \
17360 archive_expsym_cmds | \
17361 module_cmds | \
17362 module_expsym_cmds | \
17363 old_archive_from_expsyms_cmds | \
17364 export_symbols_cmds | \
17365 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17366 postinstall_cmds | postuninstall_cmds | \
17367 old_postinstall_cmds | old_postuninstall_cmds | \
17368 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17369 # Double-quote double-evaled strings.
17370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17373 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17375 esac
17376 done
17378 case $lt_echo in
17379 *'\$0 --fallback-echo"')
17380 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17382 esac
17384 cfgfile="${ofile}T"
17385 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17386 $rm -f "$cfgfile"
17387 { echo "$as_me:$LINENO: creating $ofile" >&5
17388 echo "$as_me: creating $ofile" >&6;}
17390 cat <<__EOF__ >> "$cfgfile"
17391 #! $SHELL
17393 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17394 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17395 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17397 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17398 # Free Software Foundation, Inc.
17400 # This file is part of GNU Libtool:
17401 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17403 # This program is free software; you can redistribute it and/or modify
17404 # it under the terms of the GNU General Public License as published by
17405 # the Free Software Foundation; either version 2 of the License, or
17406 # (at your option) any later version.
17408 # This program is distributed in the hope that it will be useful, but
17409 # WITHOUT ANY WARRANTY; without even the implied warranty of
17410 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17411 # General Public License for more details.
17413 # You should have received a copy of the GNU General Public License
17414 # along with this program; if not, write to the Free Software
17415 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17417 # As a special exception to the GNU General Public License, if you
17418 # distribute this file as part of a program that contains a
17419 # configuration script generated by Autoconf, you may include it under
17420 # the same distribution terms that you use for the rest of that program.
17422 # A sed program that does not truncate output.
17423 SED=$lt_SED
17425 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17426 Xsed="$SED -e 1s/^X//"
17428 # The HP-UX ksh and POSIX shell print the target directory to stdout
17429 # if CDPATH is set.
17430 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17432 # The names of the tagged configurations supported by this script.
17433 available_tags=
17435 # ### BEGIN LIBTOOL CONFIG
17437 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17439 # Shell to use when invoking shell scripts.
17440 SHELL=$lt_SHELL
17442 # Whether or not to build shared libraries.
17443 build_libtool_libs=$enable_shared
17445 # Whether or not to build static libraries.
17446 build_old_libs=$enable_static
17448 # Whether or not to add -lc for building shared libraries.
17449 build_libtool_need_lc=$archive_cmds_need_lc
17451 # Whether or not to disallow shared libs when runtime libs are static
17452 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17454 # Whether or not to optimize for fast installation.
17455 fast_install=$enable_fast_install
17457 # The host system.
17458 host_alias=$host_alias
17459 host=$host
17460 host_os=$host_os
17462 # The build system.
17463 build_alias=$build_alias
17464 build=$build
17465 build_os=$build_os
17467 # An echo program that does not interpret backslashes.
17468 echo=$lt_echo
17470 # The archiver.
17471 AR=$lt_AR
17472 AR_FLAGS=$lt_AR_FLAGS
17474 # A C compiler.
17475 LTCC=$lt_LTCC
17477 # LTCC compiler flags.
17478 LTCFLAGS=$lt_LTCFLAGS
17480 # A language-specific compiler.
17481 CC=$lt_compiler
17483 # Is the compiler the GNU C compiler?
17484 with_gcc=$GCC
17486 # An ERE matcher.
17487 EGREP=$lt_EGREP
17489 # The linker used to build libraries.
17490 LD=$lt_LD
17492 # Whether we need hard or soft links.
17493 LN_S=$lt_LN_S
17495 # A BSD-compatible nm program.
17496 NM=$lt_NM
17498 # A symbol stripping program
17499 STRIP=$lt_STRIP
17501 # Used to examine libraries when file_magic_cmd begins "file"
17502 MAGIC_CMD=$MAGIC_CMD
17504 # Used on cygwin: DLL creation program.
17505 DLLTOOL="$DLLTOOL"
17507 # Used on cygwin: object dumper.
17508 OBJDUMP="$OBJDUMP"
17510 # Used on cygwin: assembler.
17511 AS="$AS"
17513 # The name of the directory that contains temporary libtool files.
17514 objdir=$objdir
17516 # How to create reloadable object files.
17517 reload_flag=$lt_reload_flag
17518 reload_cmds=$lt_reload_cmds
17520 # How to pass a linker flag through the compiler.
17521 wl=$lt_lt_prog_compiler_wl
17523 # Object file suffix (normally "o").
17524 objext="$ac_objext"
17526 # Old archive suffix (normally "a").
17527 libext="$libext"
17529 # Shared library suffix (normally ".so").
17530 shrext_cmds='$shrext_cmds'
17532 # Executable file suffix (normally "").
17533 exeext="$exeext"
17535 # Additional compiler flags for building library objects.
17536 pic_flag=$lt_lt_prog_compiler_pic
17537 pic_mode=$pic_mode
17539 # What is the maximum length of a command?
17540 max_cmd_len=$lt_cv_sys_max_cmd_len
17542 # Does compiler simultaneously support -c and -o options?
17543 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17545 # Must we lock files when doing compilation?
17546 need_locks=$lt_need_locks
17548 # Do we need the lib prefix for modules?
17549 need_lib_prefix=$need_lib_prefix
17551 # Do we need a version for libraries?
17552 need_version=$need_version
17554 # Whether dlopen is supported.
17555 dlopen_support=$enable_dlopen
17557 # Whether dlopen of programs is supported.
17558 dlopen_self=$enable_dlopen_self
17560 # Whether dlopen of statically linked programs is supported.
17561 dlopen_self_static=$enable_dlopen_self_static
17563 # Compiler flag to prevent dynamic linking.
17564 link_static_flag=$lt_lt_prog_compiler_static
17566 # Compiler flag to turn off builtin functions.
17567 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17569 # Compiler flag to allow reflexive dlopens.
17570 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17572 # Compiler flag to generate shared objects directly from archives.
17573 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17575 # Compiler flag to generate thread-safe objects.
17576 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17578 # Library versioning type.
17579 version_type=$version_type
17581 # Format of library name prefix.
17582 libname_spec=$lt_libname_spec
17584 # List of archive names. First name is the real one, the rest are links.
17585 # The last name is the one that the linker finds with -lNAME.
17586 library_names_spec=$lt_library_names_spec
17588 # The coded name of the library, if different from the real name.
17589 soname_spec=$lt_soname_spec
17591 # Commands used to build and install an old-style archive.
17592 RANLIB=$lt_RANLIB
17593 old_archive_cmds=$lt_old_archive_cmds
17594 old_postinstall_cmds=$lt_old_postinstall_cmds
17595 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17597 # Create an old-style archive from a shared archive.
17598 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17600 # Create a temporary old-style archive to link instead of a shared archive.
17601 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17603 # Commands used to build and install a shared archive.
17604 archive_cmds=$lt_archive_cmds
17605 archive_expsym_cmds=$lt_archive_expsym_cmds
17606 postinstall_cmds=$lt_postinstall_cmds
17607 postuninstall_cmds=$lt_postuninstall_cmds
17609 # Commands used to build a loadable module (assumed same as above if empty)
17610 module_cmds=$lt_module_cmds
17611 module_expsym_cmds=$lt_module_expsym_cmds
17613 # Commands to strip libraries.
17614 old_striplib=$lt_old_striplib
17615 striplib=$lt_striplib
17617 # Dependencies to place before the objects being linked to create a
17618 # shared library.
17619 predep_objects=$lt_predep_objects
17621 # Dependencies to place after the objects being linked to create a
17622 # shared library.
17623 postdep_objects=$lt_postdep_objects
17625 # Dependencies to place before the objects being linked to create a
17626 # shared library.
17627 predeps=$lt_predeps
17629 # Dependencies to place after the objects being linked to create a
17630 # shared library.
17631 postdeps=$lt_postdeps
17633 # The library search path used internally by the compiler when linking
17634 # a shared library.
17635 compiler_lib_search_path=$lt_compiler_lib_search_path
17637 # Method to check whether dependent libraries are shared objects.
17638 deplibs_check_method=$lt_deplibs_check_method
17640 # Command to use when deplibs_check_method == file_magic.
17641 file_magic_cmd=$lt_file_magic_cmd
17643 # Flag that allows shared libraries with undefined symbols to be built.
17644 allow_undefined_flag=$lt_allow_undefined_flag
17646 # Flag that forces no undefined symbols.
17647 no_undefined_flag=$lt_no_undefined_flag
17649 # Commands used to finish a libtool library installation in a directory.
17650 finish_cmds=$lt_finish_cmds
17652 # Same as above, but a single script fragment to be evaled but not shown.
17653 finish_eval=$lt_finish_eval
17655 # Take the output of nm and produce a listing of raw symbols and C names.
17656 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17658 # Transform the output of nm in a proper C declaration
17659 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17661 # Transform the output of nm in a C name address pair
17662 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17664 # This is the shared library runtime path variable.
17665 runpath_var=$runpath_var
17667 # This is the shared library path variable.
17668 shlibpath_var=$shlibpath_var
17670 # Is shlibpath searched before the hard-coded library search path?
17671 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17673 # How to hardcode a shared library path into an executable.
17674 hardcode_action=$hardcode_action
17676 # Whether we should hardcode library paths into libraries.
17677 hardcode_into_libs=$hardcode_into_libs
17679 # Flag to hardcode \$libdir into a binary during linking.
17680 # This must work even if \$libdir does not exist.
17681 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17683 # If ld is used when linking, flag to hardcode \$libdir into
17684 # a binary during linking. This must work even if \$libdir does
17685 # not exist.
17686 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17688 # Whether we need a single -rpath flag with a separated argument.
17689 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17691 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17692 # resulting binary.
17693 hardcode_direct=$hardcode_direct
17695 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17696 # resulting binary.
17697 hardcode_minus_L=$hardcode_minus_L
17699 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17700 # the resulting binary.
17701 hardcode_shlibpath_var=$hardcode_shlibpath_var
17703 # Set to yes if building a shared library automatically hardcodes DIR into the library
17704 # and all subsequent libraries and executables linked against it.
17705 hardcode_automatic=$hardcode_automatic
17707 # Variables whose values should be saved in libtool wrapper scripts and
17708 # restored at relink time.
17709 variables_saved_for_relink="$variables_saved_for_relink"
17711 # Whether libtool must link a program against all its dependency libraries.
17712 link_all_deplibs=$link_all_deplibs
17714 # Compile-time system search path for libraries
17715 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17717 # Run-time system search path for libraries
17718 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17720 # Fix the shell variable \$srcfile for the compiler.
17721 fix_srcfile_path="$fix_srcfile_path"
17723 # Set to yes if exported symbols are required.
17724 always_export_symbols=$always_export_symbols
17726 # The commands to list exported symbols.
17727 export_symbols_cmds=$lt_export_symbols_cmds
17729 # The commands to extract the exported symbol list from a shared archive.
17730 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17732 # Symbols that should not be listed in the preloaded symbols.
17733 exclude_expsyms=$lt_exclude_expsyms
17735 # Symbols that must always be exported.
17736 include_expsyms=$lt_include_expsyms
17738 # ### END LIBTOOL CONFIG
17740 __EOF__
17743 case $host_os in
17744 aix3*)
17745 cat <<\EOF >> "$cfgfile"
17747 # AIX sometimes has problems with the GCC collect2 program. For some
17748 # reason, if we set the COLLECT_NAMES environment variable, the problems
17749 # vanish in a puff of smoke.
17750 if test "X${COLLECT_NAMES+set}" != Xset; then
17751 COLLECT_NAMES=
17752 export COLLECT_NAMES
17756 esac
17758 # We use sed instead of cat because bash on DJGPP gets confused if
17759 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17760 # text mode, it properly converts lines to CR/LF. This bash problem
17761 # is reportedly fixed, but why not run on old versions too?
17762 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17764 mv -f "$cfgfile" "$ofile" || \
17765 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17766 chmod +x "$ofile"
17768 else
17769 # If there is no Makefile yet, we rely on a make rule to execute
17770 # `config.status --recheck' to rerun these tests and create the
17771 # libtool script then.
17772 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17773 if test -f "$ltmain_in"; then
17774 test -f Makefile && make "$ltmain"
17779 ac_ext=c
17780 ac_cpp='$CPP $CPPFLAGS'
17781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17785 CC="$lt_save_CC"
17788 # Check whether --with-tags was given.
17789 if test "${with_tags+set}" = set; then
17790 withval=$with_tags; tagnames="$withval"
17794 if test -f "$ltmain" && test -n "$tagnames"; then
17795 if test ! -f "${ofile}"; then
17796 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17797 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17800 if test -z "$LTCC"; then
17801 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17802 if test -z "$LTCC"; then
17803 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17804 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17805 else
17806 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17807 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17810 if test -z "$LTCFLAGS"; then
17811 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17814 # Extract list of available tagged configurations in $ofile.
17815 # Note that this assumes the entire list is on one line.
17816 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17818 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17819 for tagname in $tagnames; do
17820 IFS="$lt_save_ifs"
17821 # Check whether tagname contains only valid characters
17822 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17823 "") ;;
17824 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17825 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17826 { (exit 1); exit 1; }; }
17828 esac
17830 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17831 then
17832 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17833 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17834 { (exit 1); exit 1; }; }
17837 # Update the list of available tags.
17838 if test -n "$tagname"; then
17839 echo appending configuration tag \"$tagname\" to $ofile
17841 case $tagname in
17842 CXX)
17843 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17844 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17845 (test "X$CXX" != "Xg++"))) ; then
17846 ac_ext=cpp
17847 ac_cpp='$CXXCPP $CPPFLAGS'
17848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17855 archive_cmds_need_lc_CXX=no
17856 allow_undefined_flag_CXX=
17857 always_export_symbols_CXX=no
17858 archive_expsym_cmds_CXX=
17859 export_dynamic_flag_spec_CXX=
17860 hardcode_direct_CXX=no
17861 hardcode_libdir_flag_spec_CXX=
17862 hardcode_libdir_flag_spec_ld_CXX=
17863 hardcode_libdir_separator_CXX=
17864 hardcode_minus_L_CXX=no
17865 hardcode_shlibpath_var_CXX=unsupported
17866 hardcode_automatic_CXX=no
17867 module_cmds_CXX=
17868 module_expsym_cmds_CXX=
17869 link_all_deplibs_CXX=unknown
17870 old_archive_cmds_CXX=$old_archive_cmds
17871 no_undefined_flag_CXX=
17872 whole_archive_flag_spec_CXX=
17873 enable_shared_with_static_runtimes_CXX=no
17875 # Dependencies to place before and after the object being linked:
17876 predep_objects_CXX=
17877 postdep_objects_CXX=
17878 predeps_CXX=
17879 postdeps_CXX=
17880 compiler_lib_search_path_CXX=
17882 # Source file extension for C++ test sources.
17883 ac_ext=cpp
17885 # Object file extension for compiled C++ test sources.
17886 objext=o
17887 objext_CXX=$objext
17889 # Code to be used in simple compile tests
17890 lt_simple_compile_test_code="int some_variable = 0;\n"
17892 # Code to be used in simple link tests
17893 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17895 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17897 # If no C compiler was specified, use CC.
17898 LTCC=${LTCC-"$CC"}
17900 # If no C compiler flags were specified, use CFLAGS.
17901 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17903 # Allow CC to be a program name with arguments.
17904 compiler=$CC
17907 # save warnings/boilerplate of simple test code
17908 ac_outfile=conftest.$ac_objext
17909 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17910 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17911 _lt_compiler_boilerplate=`cat conftest.err`
17912 $rm conftest*
17914 ac_outfile=conftest.$ac_objext
17915 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17916 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17917 _lt_linker_boilerplate=`cat conftest.err`
17918 $rm conftest*
17921 # Allow CC to be a program name with arguments.
17922 lt_save_CC=$CC
17923 lt_save_LD=$LD
17924 lt_save_GCC=$GCC
17925 GCC=$GXX
17926 lt_save_with_gnu_ld=$with_gnu_ld
17927 lt_save_path_LD=$lt_cv_path_LD
17928 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17929 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17930 else
17931 $as_unset lt_cv_prog_gnu_ld
17933 if test -n "${lt_cv_path_LDCXX+set}"; then
17934 lt_cv_path_LD=$lt_cv_path_LDCXX
17935 else
17936 $as_unset lt_cv_path_LD
17938 test -z "${LDCXX+set}" || LD=$LDCXX
17939 CC=${CXX-"c++"}
17940 compiler=$CC
17941 compiler_CXX=$CC
17942 for cc_temp in $compiler""; do
17943 case $cc_temp in
17944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17946 \-*) ;;
17947 *) break;;
17948 esac
17949 done
17950 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17953 # We don't want -fno-exception wen compiling C++ code, so set the
17954 # no_builtin_flag separately
17955 if test "$GXX" = yes; then
17956 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17957 else
17958 lt_prog_compiler_no_builtin_flag_CXX=
17961 if test "$GXX" = yes; then
17962 # Set up default GNU C++ configuration
17965 # Check whether --with-gnu-ld was given.
17966 if test "${with_gnu_ld+set}" = set; then
17967 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17968 else
17969 with_gnu_ld=no
17972 ac_prog=ld
17973 if test "$GCC" = yes; then
17974 # Check if gcc -print-prog-name=ld gives a path.
17975 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17976 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17977 case $host in
17978 *-*-mingw*)
17979 # gcc leaves a trailing carriage return which upsets mingw
17980 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17982 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17983 esac
17984 case $ac_prog in
17985 # Accept absolute paths.
17986 [\\/]* | ?:[\\/]*)
17987 re_direlt='/[^/][^/]*/\.\./'
17988 # Canonicalize the pathname of ld
17989 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17990 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17991 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17992 done
17993 test -z "$LD" && LD="$ac_prog"
17996 # If it fails, then pretend we aren't using GCC.
17997 ac_prog=ld
18000 # If it is relative, then search for the first ld in PATH.
18001 with_gnu_ld=unknown
18003 esac
18004 elif test "$with_gnu_ld" = yes; then
18005 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18006 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18007 else
18008 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18009 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18011 if test "${lt_cv_path_LD+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014 if test -z "$LD"; then
18015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18016 for ac_dir in $PATH; do
18017 IFS="$lt_save_ifs"
18018 test -z "$ac_dir" && ac_dir=.
18019 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18020 lt_cv_path_LD="$ac_dir/$ac_prog"
18021 # Check to see if the program is GNU ld. I'd rather use --version,
18022 # but apparently some variants of GNU ld only accept -v.
18023 # Break only if it was the GNU/non-GNU ld that we prefer.
18024 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18025 *GNU* | *'with BFD'*)
18026 test "$with_gnu_ld" != no && break
18029 test "$with_gnu_ld" != yes && break
18031 esac
18033 done
18034 IFS="$lt_save_ifs"
18035 else
18036 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18040 LD="$lt_cv_path_LD"
18041 if test -n "$LD"; then
18042 { echo "$as_me:$LINENO: result: $LD" >&5
18043 echo "${ECHO_T}$LD" >&6; }
18044 else
18045 { echo "$as_me:$LINENO: result: no" >&5
18046 echo "${ECHO_T}no" >&6; }
18048 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18049 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18050 { (exit 1); exit 1; }; }
18051 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18052 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18053 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18057 case `$LD -v 2>&1 </dev/null` in
18058 *GNU* | *'with BFD'*)
18059 lt_cv_prog_gnu_ld=yes
18062 lt_cv_prog_gnu_ld=no
18064 esac
18066 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18067 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18068 with_gnu_ld=$lt_cv_prog_gnu_ld
18072 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18073 # archiving commands below assume that GNU ld is being used.
18074 if test "$with_gnu_ld" = yes; then
18075 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18076 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'
18078 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18079 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18081 # If archive_cmds runs LD, not CC, wlarc should be empty
18082 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18083 # investigate it a little bit more. (MM)
18084 wlarc='${wl}'
18086 # ancient GNU ld didn't support --whole-archive et. al.
18087 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18088 grep 'no-whole-archive' > /dev/null; then
18089 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18090 else
18091 whole_archive_flag_spec_CXX=
18093 else
18094 with_gnu_ld=no
18095 wlarc=
18097 # A generic and very simple default shared library creation
18098 # command for GNU C++ for the case where it uses the native
18099 # linker, instead of GNU ld. If possible, this setting should
18100 # overridden to take advantage of the native linker features on
18101 # the platform it is being used on.
18102 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18105 # Commands to make compiler produce verbose output that lists
18106 # what "hidden" libraries, object files and flags are used when
18107 # linking a shared library.
18108 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18110 else
18111 GXX=no
18112 with_gnu_ld=no
18113 wlarc=
18116 # PORTME: fill in a description of your system's C++ link characteristics
18117 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18118 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18119 ld_shlibs_CXX=yes
18120 case $host_os in
18121 aix3*)
18122 # FIXME: insert proper C++ library support
18123 ld_shlibs_CXX=no
18125 aix4* | aix5*)
18126 if test "$host_cpu" = ia64; then
18127 # On IA64, the linker does run time linking by default, so we don't
18128 # have to do anything special.
18129 aix_use_runtimelinking=no
18130 exp_sym_flag='-Bexport'
18131 no_entry_flag=""
18132 else
18133 aix_use_runtimelinking=no
18135 # Test if we are trying to use run time linking or normal
18136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18137 # need to do runtime linking.
18138 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18139 for ld_flag in $LDFLAGS; do
18140 case $ld_flag in
18141 *-brtl*)
18142 aix_use_runtimelinking=yes
18143 break
18145 esac
18146 done
18148 esac
18150 exp_sym_flag='-bexport'
18151 no_entry_flag='-bnoentry'
18154 # When large executables or shared objects are built, AIX ld can
18155 # have problems creating the table of contents. If linking a library
18156 # or program results in "error TOC overflow" add -mminimal-toc to
18157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18160 archive_cmds_CXX=''
18161 hardcode_direct_CXX=yes
18162 hardcode_libdir_separator_CXX=':'
18163 link_all_deplibs_CXX=yes
18165 if test "$GXX" = yes; then
18166 case $host_os in aix4.[012]|aix4.[012].*)
18167 # We only want to do this on AIX 4.2 and lower, the check
18168 # below for broken collect2 doesn't work under 4.3+
18169 collect2name=`${CC} -print-prog-name=collect2`
18170 if test -f "$collect2name" && \
18171 strings "$collect2name" | grep resolve_lib_name >/dev/null
18172 then
18173 # We have reworked collect2
18174 hardcode_direct_CXX=yes
18175 else
18176 # We have old collect2
18177 hardcode_direct_CXX=unsupported
18178 # It fails to find uninstalled libraries when the uninstalled
18179 # path is not listed in the libpath. Setting hardcode_minus_L
18180 # to unsupported forces relinking
18181 hardcode_minus_L_CXX=yes
18182 hardcode_libdir_flag_spec_CXX='-L$libdir'
18183 hardcode_libdir_separator_CXX=
18186 esac
18187 shared_flag='-shared'
18188 if test "$aix_use_runtimelinking" = yes; then
18189 shared_flag="$shared_flag "'${wl}-G'
18191 else
18192 # not using gcc
18193 if test "$host_cpu" = ia64; then
18194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18195 # chokes on -Wl,-G. The following line is correct:
18196 shared_flag='-G'
18197 else
18198 if test "$aix_use_runtimelinking" = yes; then
18199 shared_flag='${wl}-G'
18200 else
18201 shared_flag='${wl}-bM:SRE'
18206 # It seems that -bexpall does not export symbols beginning with
18207 # underscore (_), so it is better to generate a list of symbols to export.
18208 always_export_symbols_CXX=yes
18209 if test "$aix_use_runtimelinking" = yes; then
18210 # Warning - without using the other runtime loading flags (-brtl),
18211 # -berok will link without error, but may produce a broken library.
18212 allow_undefined_flag_CXX='-berok'
18213 # Determine the default libpath from the value encoded in an empty executable.
18214 cat >conftest.$ac_ext <<_ACEOF
18215 /* confdefs.h. */
18216 _ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18222 main ()
18226 return 0;
18228 _ACEOF
18229 rm -f conftest.$ac_objext conftest$ac_exeext
18230 if { (ac_try="$ac_link"
18231 case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18234 esac
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_link") 2>conftest.er1
18237 ac_status=$?
18238 grep -v '^ *+' conftest.er1 >conftest.err
18239 rm -f conftest.er1
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
18243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18244 { (case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18247 esac
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249 (eval "$ac_try") 2>&5
18250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; } &&
18253 { ac_try='test -s conftest$ac_exeext'
18254 { (case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18257 esac
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_try") 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; }; then
18264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18266 # Check for a 64-bit object if we didn't find anything.
18267 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; }
18268 }'`; fi
18269 else
18270 echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18276 rm -f core conftest.err conftest.$ac_objext \
18277 conftest$ac_exeext conftest.$ac_ext
18278 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18280 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18282 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"
18283 else
18284 if test "$host_cpu" = ia64; then
18285 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18286 allow_undefined_flag_CXX="-z nodefs"
18287 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"
18288 else
18289 # Determine the default libpath from the value encoded in an empty executable.
18290 cat >conftest.$ac_ext <<_ACEOF
18291 /* confdefs.h. */
18292 _ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18298 main ()
18302 return 0;
18304 _ACEOF
18305 rm -f conftest.$ac_objext conftest$ac_exeext
18306 if { (ac_try="$ac_link"
18307 case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18310 esac
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_link") 2>conftest.er1
18313 ac_status=$?
18314 grep -v '^ *+' conftest.er1 >conftest.err
18315 rm -f conftest.er1
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } &&
18319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18320 { (case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_try") 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest$ac_exeext'
18330 { (case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_try") 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; }; then
18340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18342 # Check for a 64-bit object if we didn't find anything.
18343 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; }
18344 }'`; fi
18345 else
18346 echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18352 rm -f core conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18356 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18357 # Warning - without using the other run time loading flags,
18358 # -berok will link without error, but may produce a broken library.
18359 no_undefined_flag_CXX=' ${wl}-bernotok'
18360 allow_undefined_flag_CXX=' ${wl}-berok'
18361 # Exported symbols can be pulled into shared objects from archives
18362 whole_archive_flag_spec_CXX='$convenience'
18363 archive_cmds_need_lc_CXX=yes
18364 # This is similar to how AIX traditionally builds its shared libraries.
18365 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'
18370 beos*)
18371 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18372 allow_undefined_flag_CXX=unsupported
18373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18374 # support --undefined. This deserves some investigation. FIXME
18375 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18376 else
18377 ld_shlibs_CXX=no
18381 chorus*)
18382 case $cc_basename in
18384 # FIXME: insert proper C++ library support
18385 ld_shlibs_CXX=no
18387 esac
18390 cygwin* | mingw* | pw32*)
18391 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18392 # as there is no search path for DLLs.
18393 hardcode_libdir_flag_spec_CXX='-L$libdir'
18394 allow_undefined_flag_CXX=unsupported
18395 always_export_symbols_CXX=no
18396 enable_shared_with_static_runtimes_CXX=yes
18398 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18399 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'
18400 # If the export-symbols file already is a .def file (1st line
18401 # is EXPORTS), use it as is; otherwise, prepend...
18402 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18403 cp $export_symbols $output_objdir/$soname.def;
18404 else
18405 echo EXPORTS > $output_objdir/$soname.def;
18406 cat $export_symbols >> $output_objdir/$soname.def;
18408 $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'
18409 else
18410 ld_shlibs_CXX=no
18413 darwin* | rhapsody*)
18414 case $host_os in
18415 rhapsody* | darwin1.[012])
18416 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18418 *) # Darwin 1.3 on
18419 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18420 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18421 else
18422 case ${MACOSX_DEPLOYMENT_TARGET} in
18423 10.[012])
18424 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18426 10.*)
18427 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18429 esac
18432 esac
18433 archive_cmds_need_lc_CXX=no
18434 hardcode_direct_CXX=no
18435 hardcode_automatic_CXX=yes
18436 hardcode_shlibpath_var_CXX=unsupported
18437 whole_archive_flag_spec_CXX=''
18438 link_all_deplibs_CXX=yes
18440 if test "$GXX" = yes ; then
18441 lt_int_apple_cc_single_mod=no
18442 output_verbose_link_cmd='echo'
18443 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18444 lt_int_apple_cc_single_mod=yes
18446 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18447 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18448 else
18449 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'
18451 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18453 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18454 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}'
18455 else
18456 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}'
18458 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}'
18459 else
18460 case $cc_basename in
18461 xlc*)
18462 output_verbose_link_cmd='echo'
18463 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'
18464 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18465 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18466 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}'
18467 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}'
18470 ld_shlibs_CXX=no
18472 esac
18476 dgux*)
18477 case $cc_basename in
18478 ec++*)
18479 # FIXME: insert proper C++ library support
18480 ld_shlibs_CXX=no
18482 ghcx*)
18483 # Green Hills C++ Compiler
18484 # FIXME: insert proper C++ library support
18485 ld_shlibs_CXX=no
18488 # FIXME: insert proper C++ library support
18489 ld_shlibs_CXX=no
18491 esac
18493 freebsd[12]*)
18494 # C++ shared libraries reported to be fairly broken before switch to ELF
18495 ld_shlibs_CXX=no
18497 freebsd-elf*)
18498 archive_cmds_need_lc_CXX=no
18500 freebsd* | kfreebsd*-gnu | dragonfly*)
18501 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18502 # conventions
18503 ld_shlibs_CXX=yes
18505 gnu*)
18507 hpux9*)
18508 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18509 hardcode_libdir_separator_CXX=:
18510 export_dynamic_flag_spec_CXX='${wl}-E'
18511 hardcode_direct_CXX=yes
18512 hardcode_minus_L_CXX=yes # Not in the search PATH,
18513 # but as the default
18514 # location of the library.
18516 case $cc_basename in
18517 CC*)
18518 # FIXME: insert proper C++ library support
18519 ld_shlibs_CXX=no
18521 aCC*)
18522 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'
18523 # Commands to make compiler produce verbose output that lists
18524 # what "hidden" libraries, object files and flags are used when
18525 # linking a shared library.
18527 # There doesn't appear to be a way to prevent this compiler from
18528 # explicitly linking system object files so we need to strip them
18529 # from the output so that they don't get included in the library
18530 # dependencies.
18531 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'
18534 if test "$GXX" = yes; then
18535 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'
18536 else
18537 # FIXME: insert proper C++ library support
18538 ld_shlibs_CXX=no
18541 esac
18543 hpux10*|hpux11*)
18544 if test $with_gnu_ld = no; then
18545 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18546 hardcode_libdir_separator_CXX=:
18548 case $host_cpu in
18549 hppa*64*|ia64*)
18550 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
18553 export_dynamic_flag_spec_CXX='${wl}-E'
18555 esac
18557 case $host_cpu in
18558 hppa*64*|ia64*)
18559 hardcode_direct_CXX=no
18560 hardcode_shlibpath_var_CXX=no
18563 hardcode_direct_CXX=yes
18564 hardcode_minus_L_CXX=yes # Not in the search PATH,
18565 # but as the default
18566 # location of the library.
18568 esac
18570 case $cc_basename in
18571 CC*)
18572 # FIXME: insert proper C++ library support
18573 ld_shlibs_CXX=no
18575 aCC*)
18576 case $host_cpu in
18577 hppa*64*)
18578 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18580 ia64*)
18581 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18584 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18586 esac
18587 # Commands to make compiler produce verbose output that lists
18588 # what "hidden" libraries, object files and flags are used when
18589 # linking a shared library.
18591 # There doesn't appear to be a way to prevent this compiler from
18592 # explicitly linking system object files so we need to strip them
18593 # from the output so that they don't get included in the library
18594 # dependencies.
18595 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'
18598 if test "$GXX" = yes; then
18599 if test $with_gnu_ld = no; then
18600 case $host_cpu in
18601 hppa*64*)
18602 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18604 ia64*)
18605 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18608 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'
18610 esac
18612 else
18613 # FIXME: insert proper C++ library support
18614 ld_shlibs_CXX=no
18617 esac
18619 interix3*)
18620 hardcode_direct_CXX=no
18621 hardcode_shlibpath_var_CXX=no
18622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18623 export_dynamic_flag_spec_CXX='${wl}-E'
18624 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18625 # Instead, shared libraries are loaded at an image base (0x10000000 by
18626 # default) and relocated if they conflict, which is a slow very memory
18627 # consuming and fragmenting process. To avoid this, we pick a random,
18628 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18629 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18630 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'
18631 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'
18633 irix5* | irix6*)
18634 case $cc_basename in
18635 CC*)
18636 # SGI C++
18637 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'
18639 # Archives containing C++ object files must be created using
18640 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18641 # necessary to make sure instantiated templates are included
18642 # in the archive.
18643 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18646 if test "$GXX" = yes; then
18647 if test "$with_gnu_ld" = no; then
18648 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'
18649 else
18650 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'
18653 link_all_deplibs_CXX=yes
18655 esac
18656 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18657 hardcode_libdir_separator_CXX=:
18659 linux*)
18660 case $cc_basename in
18661 KCC*)
18662 # Kuck and Associates, Inc. (KAI) C++ Compiler
18664 # KCC will only create a shared library if the output file
18665 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18666 # to its proper name (with version) after linking.
18667 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'
18668 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'
18669 # Commands to make compiler produce verbose output that lists
18670 # what "hidden" libraries, object files and flags are used when
18671 # linking a shared library.
18673 # There doesn't appear to be a way to prevent this compiler from
18674 # explicitly linking system object files so we need to strip them
18675 # from the output so that they don't get included in the library
18676 # dependencies.
18677 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'
18679 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18682 # Archives containing C++ object files must be created using
18683 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18684 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18686 icpc*)
18687 # Intel C++
18688 with_gnu_ld=yes
18689 # version 8.0 and above of icpc choke on multiply defined symbols
18690 # if we add $predep_objects and $postdep_objects, however 7.1 and
18691 # earlier do not add the objects themselves.
18692 case `$CC -V 2>&1` in
18693 *"Version 7."*)
18694 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18695 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'
18697 *) # Version 8.0 or newer
18698 tmp_idyn=
18699 case $host_cpu in
18700 ia64*) tmp_idyn=' -i_dynamic';;
18701 esac
18702 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18703 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'
18705 esac
18706 archive_cmds_need_lc_CXX=no
18707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18708 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18709 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18711 pgCC*)
18712 # Portland Group C++ compiler
18713 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18714 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'
18716 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18718 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'
18720 cxx*)
18721 # Compaq C++
18722 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18723 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'
18725 runpath_var=LD_RUN_PATH
18726 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18727 hardcode_libdir_separator_CXX=:
18729 # Commands to make compiler produce verbose output that lists
18730 # what "hidden" libraries, object files and flags are used when
18731 # linking a shared library.
18733 # There doesn't appear to be a way to prevent this compiler from
18734 # explicitly linking system object files so we need to strip them
18735 # from the output so that they don't get included in the library
18736 # dependencies.
18737 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'
18739 esac
18741 lynxos*)
18742 # FIXME: insert proper C++ library support
18743 ld_shlibs_CXX=no
18745 m88k*)
18746 # FIXME: insert proper C++ library support
18747 ld_shlibs_CXX=no
18749 mvs*)
18750 case $cc_basename in
18751 cxx*)
18752 # FIXME: insert proper C++ library support
18753 ld_shlibs_CXX=no
18756 # FIXME: insert proper C++ library support
18757 ld_shlibs_CXX=no
18759 esac
18761 netbsd*)
18762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18763 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18764 wlarc=
18765 hardcode_libdir_flag_spec_CXX='-R$libdir'
18766 hardcode_direct_CXX=yes
18767 hardcode_shlibpath_var_CXX=no
18769 # Workaround some broken pre-1.5 toolchains
18770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18772 openbsd2*)
18773 # C++ shared libraries are fairly broken
18774 ld_shlibs_CXX=no
18776 openbsd*)
18777 hardcode_direct_CXX=yes
18778 hardcode_shlibpath_var_CXX=no
18779 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18780 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18781 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18782 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18783 export_dynamic_flag_spec_CXX='${wl}-E'
18784 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18786 output_verbose_link_cmd='echo'
18788 osf3*)
18789 case $cc_basename in
18790 KCC*)
18791 # Kuck and Associates, Inc. (KAI) C++ Compiler
18793 # KCC will only create a shared library if the output file
18794 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18795 # to its proper name (with version) after linking.
18796 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'
18798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18799 hardcode_libdir_separator_CXX=:
18801 # Archives containing C++ object files must be created using
18802 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18803 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18806 RCC*)
18807 # Rational C++ 2.4.1
18808 # FIXME: insert proper C++ library support
18809 ld_shlibs_CXX=no
18811 cxx*)
18812 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18813 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'
18815 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18816 hardcode_libdir_separator_CXX=:
18818 # Commands to make compiler produce verbose output that lists
18819 # what "hidden" libraries, object files and flags are used when
18820 # linking a shared library.
18822 # There doesn't appear to be a way to prevent this compiler from
18823 # explicitly linking system object files so we need to strip them
18824 # from the output so that they don't get included in the library
18825 # dependencies.
18826 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'
18829 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18830 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18831 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'
18833 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18834 hardcode_libdir_separator_CXX=:
18836 # Commands to make compiler produce verbose output that lists
18837 # what "hidden" libraries, object files and flags are used when
18838 # linking a shared library.
18839 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18841 else
18842 # FIXME: insert proper C++ library support
18843 ld_shlibs_CXX=no
18846 esac
18848 osf4* | osf5*)
18849 case $cc_basename in
18850 KCC*)
18851 # Kuck and Associates, Inc. (KAI) C++ Compiler
18853 # KCC will only create a shared library if the output file
18854 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18855 # to its proper name (with version) after linking.
18856 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'
18858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18859 hardcode_libdir_separator_CXX=:
18861 # Archives containing C++ object files must be created using
18862 # the KAI C++ compiler.
18863 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18865 RCC*)
18866 # Rational C++ 2.4.1
18867 # FIXME: insert proper C++ library support
18868 ld_shlibs_CXX=no
18870 cxx*)
18871 allow_undefined_flag_CXX=' -expect_unresolved \*'
18872 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'
18873 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18874 echo "-hidden">> $lib.exp~
18875 $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~
18876 $rm $lib.exp'
18878 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18879 hardcode_libdir_separator_CXX=:
18881 # Commands to make compiler produce verbose output that lists
18882 # what "hidden" libraries, object files and flags are used when
18883 # linking a shared library.
18885 # There doesn't appear to be a way to prevent this compiler from
18886 # explicitly linking system object files so we need to strip them
18887 # from the output so that they don't get included in the library
18888 # dependencies.
18889 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'
18892 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18894 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'
18896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18897 hardcode_libdir_separator_CXX=:
18899 # Commands to make compiler produce verbose output that lists
18900 # what "hidden" libraries, object files and flags are used when
18901 # linking a shared library.
18902 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18904 else
18905 # FIXME: insert proper C++ library support
18906 ld_shlibs_CXX=no
18909 esac
18911 psos*)
18912 # FIXME: insert proper C++ library support
18913 ld_shlibs_CXX=no
18915 sunos4*)
18916 case $cc_basename in
18917 CC*)
18918 # Sun C++ 4.x
18919 # FIXME: insert proper C++ library support
18920 ld_shlibs_CXX=no
18922 lcc*)
18923 # Lucid
18924 # FIXME: insert proper C++ library support
18925 ld_shlibs_CXX=no
18928 # FIXME: insert proper C++ library support
18929 ld_shlibs_CXX=no
18931 esac
18933 solaris*)
18934 case $cc_basename in
18935 CC*)
18936 # Sun C++ 4.2, 5.x and Centerline C++
18937 archive_cmds_need_lc_CXX=yes
18938 no_undefined_flag_CXX=' -zdefs'
18939 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18940 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18941 $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'
18943 hardcode_libdir_flag_spec_CXX='-R$libdir'
18944 hardcode_shlibpath_var_CXX=no
18945 case $host_os in
18946 solaris2.[0-5] | solaris2.[0-5].*) ;;
18948 # The C++ compiler is used as linker so we must use $wl
18949 # flag to pass the commands to the underlying system
18950 # linker. We must also pass each convience library through
18951 # to the system linker between allextract/defaultextract.
18952 # The C++ compiler will combine linker options so we
18953 # cannot just pass the convience library names through
18954 # without $wl.
18955 # Supported since Solaris 2.6 (maybe 2.5.1?)
18956 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'
18958 esac
18959 link_all_deplibs_CXX=yes
18961 output_verbose_link_cmd='echo'
18963 # Archives containing C++ object files must be created using
18964 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18965 # necessary to make sure instantiated templates are included
18966 # in the archive.
18967 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18969 gcx*)
18970 # Green Hills C++ Compiler
18971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18973 # The C++ compiler must be used to create the archive.
18974 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18977 # GNU C++ compiler with Solaris linker
18978 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18979 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18980 if $CC --version | grep -v '^2\.7' > /dev/null; then
18981 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18982 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18983 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18985 # Commands to make compiler produce verbose output that lists
18986 # what "hidden" libraries, object files and flags are used when
18987 # linking a shared library.
18988 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18989 else
18990 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18991 # platform.
18992 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18993 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18994 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
18999 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19002 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19005 esac
19007 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19008 no_undefined_flag_CXX='${wl}-z,text'
19009 archive_cmds_need_lc_CXX=no
19010 hardcode_shlibpath_var_CXX=no
19011 runpath_var='LD_RUN_PATH'
19013 case $cc_basename in
19014 CC*)
19015 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19016 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19019 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19020 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19022 esac
19024 sysv5* | sco3.2v5* | sco5v6*)
19025 # Note: We can NOT use -z defs as we might desire, because we do not
19026 # link with -lc, and that would cause any symbols used from libc to
19027 # always be unresolved, which means just about no library would
19028 # ever link correctly. If we're not using GNU ld we use -z text
19029 # though, which does catch some bad symbols but isn't as heavy-handed
19030 # as -z defs.
19031 # For security reasons, it is highly recommended that you always
19032 # use absolute paths for naming shared libraries, and exclude the
19033 # DT_RUNPATH tag from executables and libraries. But doing so
19034 # requires that you compile everything twice, which is a pain.
19035 # So that behaviour is only enabled if SCOABSPATH is set to a
19036 # non-empty value in the environment. Most likely only useful for
19037 # creating official distributions of packages.
19038 # This is a hack until libtool officially supports absolute path
19039 # names for shared libraries.
19040 no_undefined_flag_CXX='${wl}-z,text'
19041 allow_undefined_flag_CXX='${wl}-z,nodefs'
19042 archive_cmds_need_lc_CXX=no
19043 hardcode_shlibpath_var_CXX=no
19044 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19045 hardcode_libdir_separator_CXX=':'
19046 link_all_deplibs_CXX=yes
19047 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19048 runpath_var='LD_RUN_PATH'
19050 case $cc_basename in
19051 CC*)
19052 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19053 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19056 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19057 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19059 esac
19061 tandem*)
19062 case $cc_basename in
19063 NCC*)
19064 # NonStop-UX NCC 3.20
19065 # FIXME: insert proper C++ library support
19066 ld_shlibs_CXX=no
19069 # FIXME: insert proper C++ library support
19070 ld_shlibs_CXX=no
19072 esac
19074 vxworks*)
19075 # FIXME: insert proper C++ library support
19076 ld_shlibs_CXX=no
19079 # FIXME: insert proper C++ library support
19080 ld_shlibs_CXX=no
19082 esac
19083 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19084 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19085 test "$ld_shlibs_CXX" = no && can_build_shared=no
19087 GCC_CXX="$GXX"
19088 LD_CXX="$LD"
19091 cat > conftest.$ac_ext <<EOF
19092 class Foo
19094 public:
19095 Foo (void) { a = 0; }
19096 private:
19097 int a;
19101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19102 (eval $ac_compile) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; then
19106 # Parse the compiler output and extract the necessary
19107 # objects, libraries and library flags.
19109 # Sentinel used to keep track of whether or not we are before
19110 # the conftest object file.
19111 pre_test_object_deps_done=no
19113 # The `*' in the case matches for architectures that use `case' in
19114 # $output_verbose_cmd can trigger glob expansion during the loop
19115 # eval without this substitution.
19116 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19118 for p in `eval $output_verbose_link_cmd`; do
19119 case $p in
19121 -L* | -R* | -l*)
19122 # Some compilers place space between "-{L,R}" and the path.
19123 # Remove the space.
19124 if test $p = "-L" \
19125 || test $p = "-R"; then
19126 prev=$p
19127 continue
19128 else
19129 prev=
19132 if test "$pre_test_object_deps_done" = no; then
19133 case $p in
19134 -L* | -R*)
19135 # Internal compiler library paths should come after those
19136 # provided the user. The postdeps already come after the
19137 # user supplied libs so there is no need to process them.
19138 if test -z "$compiler_lib_search_path_CXX"; then
19139 compiler_lib_search_path_CXX="${prev}${p}"
19140 else
19141 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19144 # The "-l" case would never come before the object being
19145 # linked, so don't bother handling this case.
19146 esac
19147 else
19148 if test -z "$postdeps_CXX"; then
19149 postdeps_CXX="${prev}${p}"
19150 else
19151 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19156 *.$objext)
19157 # This assumes that the test object file only shows up
19158 # once in the compiler output.
19159 if test "$p" = "conftest.$objext"; then
19160 pre_test_object_deps_done=yes
19161 continue
19164 if test "$pre_test_object_deps_done" = no; then
19165 if test -z "$predep_objects_CXX"; then
19166 predep_objects_CXX="$p"
19167 else
19168 predep_objects_CXX="$predep_objects_CXX $p"
19170 else
19171 if test -z "$postdep_objects_CXX"; then
19172 postdep_objects_CXX="$p"
19173 else
19174 postdep_objects_CXX="$postdep_objects_CXX $p"
19179 *) ;; # Ignore the rest.
19181 esac
19182 done
19184 # Clean up.
19185 rm -f a.out a.exe
19186 else
19187 echo "libtool.m4: error: problem compiling CXX test program"
19190 $rm -f confest.$objext
19192 # PORTME: override above test on systems where it is broken
19193 case $host_os in
19194 interix3*)
19195 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19196 # hack all around it, let's just trust "g++" to DTRT.
19197 predep_objects_CXX=
19198 postdep_objects_CXX=
19199 postdeps_CXX=
19202 solaris*)
19203 case $cc_basename in
19204 CC*)
19205 # Adding this requires a known-good setup of shared libraries for
19206 # Sun compiler versions before 5.6, else PIC objects from an old
19207 # archive will be linked into the output, leading to subtle bugs.
19208 postdeps_CXX='-lCstd -lCrun'
19210 esac
19212 esac
19215 case " $postdeps_CXX " in
19216 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19217 esac
19219 lt_prog_compiler_wl_CXX=
19220 lt_prog_compiler_pic_CXX=
19221 lt_prog_compiler_static_CXX=
19223 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19224 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19226 # C++ specific cases for pic, static, wl, etc.
19227 if test "$GXX" = yes; then
19228 lt_prog_compiler_wl_CXX='-Wl,'
19229 lt_prog_compiler_static_CXX='-static'
19231 case $host_os in
19232 aix*)
19233 # All AIX code is PIC.
19234 if test "$host_cpu" = ia64; then
19235 # AIX 5 now supports IA64 processor
19236 lt_prog_compiler_static_CXX='-Bstatic'
19239 amigaos*)
19240 # FIXME: we need at least 68020 code to build shared libraries, but
19241 # adding the `-m68020' flag to GCC prevents building anything better,
19242 # like `-m68040'.
19243 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19245 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19246 # PIC is the default for these OSes.
19248 mingw* | os2* | pw32*)
19249 # This hack is so that the source file can tell whether it is being
19250 # built for inclusion in a dll (and should export symbols for example).
19251 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19253 darwin* | rhapsody*)
19254 # PIC is the default on this platform
19255 # Common symbols not allowed in MH_DYLIB files
19256 lt_prog_compiler_pic_CXX='-fno-common'
19258 *djgpp*)
19259 # DJGPP does not support shared libraries at all
19260 lt_prog_compiler_pic_CXX=
19262 interix3*)
19263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19264 # Instead, we relocate shared libraries at runtime.
19266 sysv4*MP*)
19267 if test -d /usr/nec; then
19268 lt_prog_compiler_pic_CXX=-Kconform_pic
19271 hpux*)
19272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19273 # not for PA HP-UX.
19274 case $host_cpu in
19275 hppa*64*|ia64*)
19278 lt_prog_compiler_pic_CXX='-fPIC'
19280 esac
19283 lt_prog_compiler_pic_CXX='-fPIC'
19285 esac
19286 else
19287 case $host_os in
19288 aix4* | aix5*)
19289 # All AIX code is PIC.
19290 if test "$host_cpu" = ia64; then
19291 # AIX 5 now supports IA64 processor
19292 lt_prog_compiler_static_CXX='-Bstatic'
19293 else
19294 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19297 chorus*)
19298 case $cc_basename in
19299 cxch68*)
19300 # Green Hills C++ Compiler
19301 # _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"
19303 esac
19305 darwin*)
19306 # PIC is the default on this platform
19307 # Common symbols not allowed in MH_DYLIB files
19308 case $cc_basename in
19309 xlc*)
19310 lt_prog_compiler_pic_CXX='-qnocommon'
19311 lt_prog_compiler_wl_CXX='-Wl,'
19313 esac
19315 dgux*)
19316 case $cc_basename in
19317 ec++*)
19318 lt_prog_compiler_pic_CXX='-KPIC'
19320 ghcx*)
19321 # Green Hills C++ Compiler
19322 lt_prog_compiler_pic_CXX='-pic'
19326 esac
19328 freebsd* | kfreebsd*-gnu | dragonfly*)
19329 # FreeBSD uses GNU C++
19331 hpux9* | hpux10* | hpux11*)
19332 case $cc_basename in
19333 CC*)
19334 lt_prog_compiler_wl_CXX='-Wl,'
19335 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19336 if test "$host_cpu" != ia64; then
19337 lt_prog_compiler_pic_CXX='+Z'
19340 aCC*)
19341 lt_prog_compiler_wl_CXX='-Wl,'
19342 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19343 case $host_cpu in
19344 hppa*64*|ia64*)
19345 # +Z the default
19348 lt_prog_compiler_pic_CXX='+Z'
19350 esac
19354 esac
19356 interix*)
19357 # This is c89, which is MS Visual C++ (no shared libs)
19358 # Anyone wants to do a port?
19360 irix5* | irix6* | nonstopux*)
19361 case $cc_basename in
19362 CC*)
19363 lt_prog_compiler_wl_CXX='-Wl,'
19364 lt_prog_compiler_static_CXX='-non_shared'
19365 # CC pic flag -KPIC is the default.
19369 esac
19371 linux*)
19372 case $cc_basename in
19373 KCC*)
19374 # KAI C++ Compiler
19375 lt_prog_compiler_wl_CXX='--backend -Wl,'
19376 lt_prog_compiler_pic_CXX='-fPIC'
19378 icpc* | ecpc*)
19379 # Intel C++
19380 lt_prog_compiler_wl_CXX='-Wl,'
19381 lt_prog_compiler_pic_CXX='-KPIC'
19382 lt_prog_compiler_static_CXX='-static'
19384 pgCC*)
19385 # Portland Group C++ compiler.
19386 lt_prog_compiler_wl_CXX='-Wl,'
19387 lt_prog_compiler_pic_CXX='-fpic'
19388 lt_prog_compiler_static_CXX='-Bstatic'
19390 cxx*)
19391 # Compaq C++
19392 # Make sure the PIC flag is empty. It appears that all Alpha
19393 # Linux and Compaq Tru64 Unix objects are PIC.
19394 lt_prog_compiler_pic_CXX=
19395 lt_prog_compiler_static_CXX='-non_shared'
19399 esac
19401 lynxos*)
19403 m88k*)
19405 mvs*)
19406 case $cc_basename in
19407 cxx*)
19408 lt_prog_compiler_pic_CXX='-W c,exportall'
19412 esac
19414 netbsd*)
19416 osf3* | osf4* | osf5*)
19417 case $cc_basename in
19418 KCC*)
19419 lt_prog_compiler_wl_CXX='--backend -Wl,'
19421 RCC*)
19422 # Rational C++ 2.4.1
19423 lt_prog_compiler_pic_CXX='-pic'
19425 cxx*)
19426 # Digital/Compaq C++
19427 lt_prog_compiler_wl_CXX='-Wl,'
19428 # Make sure the PIC flag is empty. It appears that all Alpha
19429 # Linux and Compaq Tru64 Unix objects are PIC.
19430 lt_prog_compiler_pic_CXX=
19431 lt_prog_compiler_static_CXX='-non_shared'
19435 esac
19437 psos*)
19439 solaris*)
19440 case $cc_basename in
19441 CC*)
19442 # Sun C++ 4.2, 5.x and Centerline C++
19443 lt_prog_compiler_pic_CXX='-KPIC'
19444 lt_prog_compiler_static_CXX='-Bstatic'
19445 lt_prog_compiler_wl_CXX='-Qoption ld '
19447 gcx*)
19448 # Green Hills C++ Compiler
19449 lt_prog_compiler_pic_CXX='-PIC'
19453 esac
19455 sunos4*)
19456 case $cc_basename in
19457 CC*)
19458 # Sun C++ 4.x
19459 lt_prog_compiler_pic_CXX='-pic'
19460 lt_prog_compiler_static_CXX='-Bstatic'
19462 lcc*)
19463 # Lucid
19464 lt_prog_compiler_pic_CXX='-pic'
19468 esac
19470 tandem*)
19471 case $cc_basename in
19472 NCC*)
19473 # NonStop-UX NCC 3.20
19474 lt_prog_compiler_pic_CXX='-KPIC'
19478 esac
19480 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19481 case $cc_basename in
19482 CC*)
19483 lt_prog_compiler_wl_CXX='-Wl,'
19484 lt_prog_compiler_pic_CXX='-KPIC'
19485 lt_prog_compiler_static_CXX='-Bstatic'
19487 esac
19489 vxworks*)
19492 lt_prog_compiler_can_build_shared_CXX=no
19494 esac
19497 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19498 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19501 # Check to make sure the PIC flag actually works.
19503 if test -n "$lt_prog_compiler_pic_CXX"; then
19505 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19506 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19507 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510 lt_prog_compiler_pic_works_CXX=no
19511 ac_outfile=conftest.$ac_objext
19512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19513 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19514 # Insert the option either (1) after the last *FLAGS variable, or
19515 # (2) before a word containing "conftest.", or (3) at the end.
19516 # Note that $ac_compile itself does not contain backslashes and begins
19517 # with a dollar sign (not a hyphen), so the echo should work correctly.
19518 # The option is referenced via a variable to avoid confusing sed.
19519 lt_compile=`echo "$ac_compile" | $SED \
19520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19522 -e 's:$: $lt_compiler_flag:'`
19523 (eval echo "\"\$as_me:19523: $lt_compile\"" >&5)
19524 (eval "$lt_compile" 2>conftest.err)
19525 ac_status=$?
19526 cat conftest.err >&5
19527 echo "$as_me:19527: \$? = $ac_status" >&5
19528 if (exit $ac_status) && test -s "$ac_outfile"; then
19529 # The compiler can only warn and ignore the option if not recognized
19530 # So say no if there are warnings other than the usual output.
19531 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19533 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19534 lt_prog_compiler_pic_works_CXX=yes
19537 $rm conftest*
19540 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19541 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
19543 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19544 case $lt_prog_compiler_pic_CXX in
19545 "" | " "*) ;;
19546 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19547 esac
19548 else
19549 lt_prog_compiler_pic_CXX=
19550 lt_prog_compiler_can_build_shared_CXX=no
19554 case $host_os in
19555 # For platforms which do not support PIC, -DPIC is meaningless:
19556 *djgpp*)
19557 lt_prog_compiler_pic_CXX=
19560 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19562 esac
19565 # Check to make sure the static flag actually works.
19567 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19568 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19569 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19570 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573 lt_prog_compiler_static_works_CXX=no
19574 save_LDFLAGS="$LDFLAGS"
19575 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19576 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19577 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19578 # The linker can only warn and ignore the option if not recognized
19579 # So say no if there are warnings
19580 if test -s conftest.err; then
19581 # Append any errors to the config.log.
19582 cat conftest.err 1>&5
19583 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19585 if diff conftest.exp conftest.er2 >/dev/null; then
19586 lt_prog_compiler_static_works_CXX=yes
19588 else
19589 lt_prog_compiler_static_works_CXX=yes
19592 $rm conftest*
19593 LDFLAGS="$save_LDFLAGS"
19596 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19597 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19599 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19601 else
19602 lt_prog_compiler_static_CXX=
19606 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19607 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19608 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19610 else
19611 lt_cv_prog_compiler_c_o_CXX=no
19612 $rm -r conftest 2>/dev/null
19613 mkdir conftest
19614 cd conftest
19615 mkdir out
19616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19618 lt_compiler_flag="-o out/conftest2.$ac_objext"
19619 # Insert the option either (1) after the last *FLAGS variable, or
19620 # (2) before a word containing "conftest.", or (3) at the end.
19621 # Note that $ac_compile itself does not contain backslashes and begins
19622 # with a dollar sign (not a hyphen), so the echo should work correctly.
19623 lt_compile=`echo "$ac_compile" | $SED \
19624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19626 -e 's:$: $lt_compiler_flag:'`
19627 (eval echo "\"\$as_me:19627: $lt_compile\"" >&5)
19628 (eval "$lt_compile" 2>out/conftest.err)
19629 ac_status=$?
19630 cat out/conftest.err >&5
19631 echo "$as_me:19631: \$? = $ac_status" >&5
19632 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19633 then
19634 # The compiler can only warn and ignore the option if not recognized
19635 # So say no if there are warnings
19636 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19637 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19638 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19639 lt_cv_prog_compiler_c_o_CXX=yes
19642 chmod u+w . 2>&5
19643 $rm conftest*
19644 # SGI C++ compiler will create directory out/ii_files/ for
19645 # template instantiation
19646 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19647 $rm out/* && rmdir out
19648 cd ..
19649 rmdir conftest
19650 $rm conftest*
19653 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19654 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19657 hard_links="nottested"
19658 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19659 # do not overwrite the value of need_locks provided by the user
19660 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19661 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19662 hard_links=yes
19663 $rm conftest*
19664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19665 touch conftest.a
19666 ln conftest.a conftest.b 2>&5 || hard_links=no
19667 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19668 { echo "$as_me:$LINENO: result: $hard_links" >&5
19669 echo "${ECHO_T}$hard_links" >&6; }
19670 if test "$hard_links" = no; then
19671 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19672 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19673 need_locks=warn
19675 else
19676 need_locks=no
19679 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19680 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19682 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19683 case $host_os in
19684 aix4* | aix5*)
19685 # If we're using GNU nm, then we don't want the "-C" option.
19686 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19687 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19688 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'
19689 else
19690 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'
19693 pw32*)
19694 export_symbols_cmds_CXX="$ltdll_cmds"
19696 cygwin* | mingw*)
19697 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'
19700 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19702 esac
19704 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19705 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19706 test "$ld_shlibs_CXX" = no && can_build_shared=no
19709 # Do we need to explicitly link libc?
19711 case "x$archive_cmds_need_lc_CXX" in
19712 x|xyes)
19713 # Assume -lc should be added
19714 archive_cmds_need_lc_CXX=yes
19716 if test "$enable_shared" = yes && test "$GCC" = yes; then
19717 case $archive_cmds_CXX in
19718 *'~'*)
19719 # FIXME: we may have to deal with multi-command sequences.
19721 '$CC '*)
19722 # Test whether the compiler implicitly links with -lc since on some
19723 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19724 # to ld, don't add -lc before -lgcc.
19725 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19726 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19727 $rm conftest*
19728 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19731 (eval $ac_compile) 2>&5
19732 ac_status=$?
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } 2>conftest.err; then
19735 soname=conftest
19736 lib=conftest
19737 libobjs=conftest.$ac_objext
19738 deplibs=
19739 wl=$lt_prog_compiler_wl_CXX
19740 pic_flag=$lt_prog_compiler_pic_CXX
19741 compiler_flags=-v
19742 linker_flags=-v
19743 verstring=
19744 output_objdir=.
19745 libname=conftest
19746 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19747 allow_undefined_flag_CXX=
19748 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19749 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }
19753 then
19754 archive_cmds_need_lc_CXX=no
19755 else
19756 archive_cmds_need_lc_CXX=yes
19758 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19759 else
19760 cat conftest.err 1>&5
19762 $rm conftest*
19763 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19764 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19766 esac
19769 esac
19771 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19772 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19773 library_names_spec=
19774 libname_spec='lib$name'
19775 soname_spec=
19776 shrext_cmds=".so"
19777 postinstall_cmds=
19778 postuninstall_cmds=
19779 finish_cmds=
19780 finish_eval=
19781 shlibpath_var=
19782 shlibpath_overrides_runpath=unknown
19783 version_type=none
19784 dynamic_linker="$host_os ld.so"
19785 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19786 if test "$GCC" = yes; then
19787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19788 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19789 # if the path contains ";" then we assume it to be the separator
19790 # otherwise default to the standard path separator (i.e. ":") - it is
19791 # assumed that no part of a normal pathname contains ";" but that should
19792 # okay in the real world where ";" in dirpaths is itself problematic.
19793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19794 else
19795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19797 else
19798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19800 need_lib_prefix=unknown
19801 hardcode_into_libs=no
19803 # when you set need_version to no, make sure it does not cause -set_version
19804 # flags to be left without arguments
19805 need_version=unknown
19807 case $host_os in
19808 aix3*)
19809 version_type=linux
19810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19811 shlibpath_var=LIBPATH
19813 # AIX 3 has no versioning support, so we append a major version to the name.
19814 soname_spec='${libname}${release}${shared_ext}$major'
19817 aix4* | aix5*)
19818 version_type=linux
19819 need_lib_prefix=no
19820 need_version=no
19821 hardcode_into_libs=yes
19822 if test "$host_cpu" = ia64; then
19823 # AIX 5 supports IA64
19824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19825 shlibpath_var=LD_LIBRARY_PATH
19826 else
19827 # With GCC up to 2.95.x, collect2 would create an import file
19828 # for dependence libraries. The import file would start with
19829 # the line `#! .'. This would cause the generated library to
19830 # depend on `.', always an invalid library. This was fixed in
19831 # development snapshots of GCC prior to 3.0.
19832 case $host_os in
19833 aix4 | aix4.[01] | aix4.[01].*)
19834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19835 echo ' yes '
19836 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19838 else
19839 can_build_shared=no
19842 esac
19843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19844 # soname into executable. Probably we can add versioning support to
19845 # collect2, so additional links can be useful in future.
19846 if test "$aix_use_runtimelinking" = yes; then
19847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19848 # instead of lib<name>.a to let people know that these are not
19849 # typical AIX shared libraries.
19850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19851 else
19852 # We preserve .a as extension for shared libraries through AIX4.2
19853 # and later when we are not doing run time linking.
19854 library_names_spec='${libname}${release}.a $libname.a'
19855 soname_spec='${libname}${release}${shared_ext}$major'
19857 shlibpath_var=LIBPATH
19861 amigaos*)
19862 library_names_spec='$libname.ixlibrary $libname.a'
19863 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19864 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'
19867 beos*)
19868 library_names_spec='${libname}${shared_ext}'
19869 dynamic_linker="$host_os ld.so"
19870 shlibpath_var=LIBRARY_PATH
19873 bsdi[45]*)
19874 version_type=linux
19875 need_version=no
19876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19877 soname_spec='${libname}${release}${shared_ext}$major'
19878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19879 shlibpath_var=LD_LIBRARY_PATH
19880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19882 # the default ld.so.conf also contains /usr/contrib/lib and
19883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19884 # libtool to hard-code these into programs
19887 cygwin* | mingw* | pw32*)
19888 version_type=windows
19889 shrext_cmds=".dll"
19890 need_version=no
19891 need_lib_prefix=no
19893 case $GCC,$host_os in
19894 yes,cygwin* | yes,mingw* | yes,pw32*)
19895 library_names_spec='$libname.dll.a'
19896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19897 postinstall_cmds='base_file=`basename \${file}`~
19898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19899 dldir=$destdir/`dirname \$dlpath`~
19900 test -d \$dldir || mkdir -p \$dldir~
19901 $install_prog $dir/$dlname \$dldir/$dlname~
19902 chmod a+x \$dldir/$dlname'
19903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19904 dlpath=$dir/\$dldll~
19905 $rm \$dlpath'
19906 shlibpath_overrides_runpath=yes
19908 case $host_os in
19909 cygwin*)
19910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19914 mingw*)
19915 # MinGW DLLs use traditional 'lib' prefix
19916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19918 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19919 # It is most probably a Windows format PATH printed by
19920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19921 # path with ; separators, and with drive letters. We can handle the
19922 # drive letters (cygwin fileutils understands them), so leave them,
19923 # especially as we might pass files found there to a mingw objdump,
19924 # which wouldn't understand a cygwinified path. Ahh.
19925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19926 else
19927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19930 pw32*)
19931 # pw32 DLLs use 'pw' prefix rather than 'lib'
19932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19934 esac
19938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19940 esac
19941 dynamic_linker='Win32 ld.exe'
19942 # FIXME: first we should search . and the directory the executable is in
19943 shlibpath_var=PATH
19946 darwin* | rhapsody*)
19947 dynamic_linker="$host_os dyld"
19948 version_type=darwin
19949 need_lib_prefix=no
19950 need_version=no
19951 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19952 soname_spec='${libname}${release}${major}$shared_ext'
19953 shlibpath_overrides_runpath=yes
19954 shlibpath_var=DYLD_LIBRARY_PATH
19955 shrext_cmds='.dylib'
19956 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19957 if test "$GCC" = yes; then
19958 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"`
19959 else
19960 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19965 dgux*)
19966 version_type=linux
19967 need_lib_prefix=no
19968 need_version=no
19969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19970 soname_spec='${libname}${release}${shared_ext}$major'
19971 shlibpath_var=LD_LIBRARY_PATH
19974 freebsd1*)
19975 dynamic_linker=no
19978 kfreebsd*-gnu)
19979 version_type=linux
19980 need_lib_prefix=no
19981 need_version=no
19982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19983 soname_spec='${libname}${release}${shared_ext}$major'
19984 shlibpath_var=LD_LIBRARY_PATH
19985 shlibpath_overrides_runpath=no
19986 hardcode_into_libs=yes
19987 dynamic_linker='GNU ld.so'
19990 freebsd* | dragonfly*)
19991 # DragonFly does not have aout. When/if they implement a new
19992 # versioning mechanism, adjust this.
19993 if test -x /usr/bin/objformat; then
19994 objformat=`/usr/bin/objformat`
19995 else
19996 case $host_os in
19997 freebsd[123]*) objformat=aout ;;
19998 *) objformat=elf ;;
19999 esac
20001 version_type=freebsd-$objformat
20002 case $version_type in
20003 freebsd-elf*)
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20005 need_version=no
20006 need_lib_prefix=no
20008 freebsd-*)
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20010 need_version=yes
20012 esac
20013 shlibpath_var=LD_LIBRARY_PATH
20014 case $host_os in
20015 freebsd2*)
20016 shlibpath_overrides_runpath=yes
20018 freebsd3.[01]* | freebsdelf3.[01]*)
20019 shlibpath_overrides_runpath=yes
20020 hardcode_into_libs=yes
20022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20024 shlibpath_overrides_runpath=no
20025 hardcode_into_libs=yes
20027 freebsd*) # from 4.6 on
20028 shlibpath_overrides_runpath=yes
20029 hardcode_into_libs=yes
20031 esac
20034 gnu*)
20035 version_type=linux
20036 need_lib_prefix=no
20037 need_version=no
20038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20039 soname_spec='${libname}${release}${shared_ext}$major'
20040 shlibpath_var=LD_LIBRARY_PATH
20041 hardcode_into_libs=yes
20044 hpux9* | hpux10* | hpux11*)
20045 # Give a soname corresponding to the major version so that dld.sl refuses to
20046 # link against other versions.
20047 version_type=sunos
20048 need_lib_prefix=no
20049 need_version=no
20050 case $host_cpu in
20051 ia64*)
20052 shrext_cmds='.so'
20053 hardcode_into_libs=yes
20054 dynamic_linker="$host_os dld.so"
20055 shlibpath_var=LD_LIBRARY_PATH
20056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20058 soname_spec='${libname}${release}${shared_ext}$major'
20059 if test "X$HPUX_IA64_MODE" = X32; then
20060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20061 else
20062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20066 hppa*64*)
20067 shrext_cmds='.sl'
20068 hardcode_into_libs=yes
20069 dynamic_linker="$host_os dld.sl"
20070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20073 soname_spec='${libname}${release}${shared_ext}$major'
20074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20078 shrext_cmds='.sl'
20079 dynamic_linker="$host_os dld.sl"
20080 shlibpath_var=SHLIB_PATH
20081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20083 soname_spec='${libname}${release}${shared_ext}$major'
20085 esac
20086 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20087 postinstall_cmds='chmod 555 $lib'
20090 interix3*)
20091 version_type=linux
20092 need_lib_prefix=no
20093 need_version=no
20094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20095 soname_spec='${libname}${release}${shared_ext}$major'
20096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20097 shlibpath_var=LD_LIBRARY_PATH
20098 shlibpath_overrides_runpath=no
20099 hardcode_into_libs=yes
20102 irix5* | irix6* | nonstopux*)
20103 case $host_os in
20104 nonstopux*) version_type=nonstopux ;;
20106 if test "$lt_cv_prog_gnu_ld" = yes; then
20107 version_type=linux
20108 else
20109 version_type=irix
20110 fi ;;
20111 esac
20112 need_lib_prefix=no
20113 need_version=no
20114 soname_spec='${libname}${release}${shared_ext}$major'
20115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20116 case $host_os in
20117 irix5* | nonstopux*)
20118 libsuff= shlibsuff=
20121 case $LD in # libtool.m4 will add one of these switches to LD
20122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20123 libsuff= shlibsuff= libmagic=32-bit;;
20124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20125 libsuff=32 shlibsuff=N32 libmagic=N32;;
20126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20128 *) libsuff= shlibsuff= libmagic=never-match;;
20129 esac
20131 esac
20132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20133 shlibpath_overrides_runpath=no
20134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20136 hardcode_into_libs=yes
20139 # No shared lib support for Linux oldld, aout, or coff.
20140 linux*oldld* | linux*aout* | linux*coff*)
20141 dynamic_linker=no
20144 # This must be Linux ELF.
20145 linux*)
20146 version_type=linux
20147 need_lib_prefix=no
20148 need_version=no
20149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150 soname_spec='${libname}${release}${shared_ext}$major'
20151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20152 shlibpath_var=LD_LIBRARY_PATH
20153 shlibpath_overrides_runpath=no
20154 # This implies no fast_install, which is unacceptable.
20155 # Some rework will be needed to allow for fast_install
20156 # before this can be enabled.
20157 hardcode_into_libs=yes
20159 # Append ld.so.conf contents to the search path
20160 if test -f /etc/ld.so.conf; then
20161 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' ' '`
20162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20165 # We used to test for /lib/ld.so.1 and disable shared libraries on
20166 # powerpc, because MkLinux only supported shared libraries with the
20167 # GNU dynamic linker. Since this was broken with cross compilers,
20168 # most powerpc-linux boxes support dynamic linking these days and
20169 # people can always --disable-shared, the test was removed, and we
20170 # assume the GNU/Linux dynamic linker is in use.
20171 dynamic_linker='GNU/Linux ld.so'
20174 knetbsd*-gnu)
20175 version_type=linux
20176 need_lib_prefix=no
20177 need_version=no
20178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 shlibpath_var=LD_LIBRARY_PATH
20181 shlibpath_overrides_runpath=no
20182 hardcode_into_libs=yes
20183 dynamic_linker='GNU ld.so'
20186 netbsd*)
20187 version_type=sunos
20188 need_lib_prefix=no
20189 need_version=no
20190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20193 dynamic_linker='NetBSD (a.out) ld.so'
20194 else
20195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20196 soname_spec='${libname}${release}${shared_ext}$major'
20197 dynamic_linker='NetBSD ld.elf_so'
20199 shlibpath_var=LD_LIBRARY_PATH
20200 shlibpath_overrides_runpath=yes
20201 hardcode_into_libs=yes
20204 newsos6)
20205 version_type=linux
20206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20207 shlibpath_var=LD_LIBRARY_PATH
20208 shlibpath_overrides_runpath=yes
20211 nto-qnx*)
20212 version_type=linux
20213 need_lib_prefix=no
20214 need_version=no
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20216 soname_spec='${libname}${release}${shared_ext}$major'
20217 shlibpath_var=LD_LIBRARY_PATH
20218 shlibpath_overrides_runpath=yes
20221 openbsd*)
20222 version_type=sunos
20223 sys_lib_dlsearch_path_spec="/usr/lib"
20224 need_lib_prefix=no
20225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20226 case $host_os in
20227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20228 *) need_version=no ;;
20229 esac
20230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20232 shlibpath_var=LD_LIBRARY_PATH
20233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20234 case $host_os in
20235 openbsd2.[89] | openbsd2.[89].*)
20236 shlibpath_overrides_runpath=no
20239 shlibpath_overrides_runpath=yes
20241 esac
20242 else
20243 shlibpath_overrides_runpath=yes
20247 os2*)
20248 libname_spec='$name'
20249 shrext_cmds=".dll"
20250 need_lib_prefix=no
20251 library_names_spec='$libname${shared_ext} $libname.a'
20252 dynamic_linker='OS/2 ld.exe'
20253 shlibpath_var=LIBPATH
20256 osf3* | osf4* | osf5*)
20257 version_type=osf
20258 need_lib_prefix=no
20259 need_version=no
20260 soname_spec='${libname}${release}${shared_ext}$major'
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 shlibpath_var=LD_LIBRARY_PATH
20263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20267 solaris*)
20268 version_type=linux
20269 need_lib_prefix=no
20270 need_version=no
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20272 soname_spec='${libname}${release}${shared_ext}$major'
20273 shlibpath_var=LD_LIBRARY_PATH
20274 shlibpath_overrides_runpath=yes
20275 hardcode_into_libs=yes
20276 # ldd complains unless libraries are executable
20277 postinstall_cmds='chmod +x $lib'
20280 sunos4*)
20281 version_type=sunos
20282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20284 shlibpath_var=LD_LIBRARY_PATH
20285 shlibpath_overrides_runpath=yes
20286 if test "$with_gnu_ld" = yes; then
20287 need_lib_prefix=no
20289 need_version=yes
20292 sysv4 | sysv4.3*)
20293 version_type=linux
20294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20295 soname_spec='${libname}${release}${shared_ext}$major'
20296 shlibpath_var=LD_LIBRARY_PATH
20297 case $host_vendor in
20298 sni)
20299 shlibpath_overrides_runpath=no
20300 need_lib_prefix=no
20301 export_dynamic_flag_spec='${wl}-Blargedynsym'
20302 runpath_var=LD_RUN_PATH
20304 siemens)
20305 need_lib_prefix=no
20307 motorola)
20308 need_lib_prefix=no
20309 need_version=no
20310 shlibpath_overrides_runpath=no
20311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20313 esac
20316 sysv4*MP*)
20317 if test -d /usr/nec ;then
20318 version_type=linux
20319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20320 soname_spec='$libname${shared_ext}.$major'
20321 shlibpath_var=LD_LIBRARY_PATH
20325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20326 version_type=freebsd-elf
20327 need_lib_prefix=no
20328 need_version=no
20329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20330 soname_spec='${libname}${release}${shared_ext}$major'
20331 shlibpath_var=LD_LIBRARY_PATH
20332 hardcode_into_libs=yes
20333 if test "$with_gnu_ld" = yes; then
20334 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20335 shlibpath_overrides_runpath=no
20336 else
20337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20338 shlibpath_overrides_runpath=yes
20339 case $host_os in
20340 sco3.2v5*)
20341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20343 esac
20345 sys_lib_dlsearch_path_spec='/usr/lib'
20348 uts4*)
20349 version_type=linux
20350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20351 soname_spec='${libname}${release}${shared_ext}$major'
20352 shlibpath_var=LD_LIBRARY_PATH
20356 dynamic_linker=no
20358 esac
20359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20360 echo "${ECHO_T}$dynamic_linker" >&6; }
20361 test "$dynamic_linker" = no && can_build_shared=no
20363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20364 if test "$GCC" = yes; then
20365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20368 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20369 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20370 hardcode_action_CXX=
20371 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20372 test -n "$runpath_var_CXX" || \
20373 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20375 # We can hardcode non-existant directories.
20376 if test "$hardcode_direct_CXX" != no &&
20377 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20378 # have to relink, otherwise we might link with an installed library
20379 # when we should be linking with a yet-to-be-installed one
20380 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20381 test "$hardcode_minus_L_CXX" != no; then
20382 # Linking always hardcodes the temporary library directory.
20383 hardcode_action_CXX=relink
20384 else
20385 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20386 hardcode_action_CXX=immediate
20388 else
20389 # We cannot hardcode anything, or else we can only hardcode existing
20390 # directories.
20391 hardcode_action_CXX=unsupported
20393 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20394 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20396 if test "$hardcode_action_CXX" = relink; then
20397 # Fast installation is not supported
20398 enable_fast_install=no
20399 elif test "$shlibpath_overrides_runpath" = yes ||
20400 test "$enable_shared" = no; then
20401 # Fast installation is not necessary
20402 enable_fast_install=needless
20406 # The else clause should only fire when bootstrapping the
20407 # libtool distribution, otherwise you forgot to ship ltmain.sh
20408 # with your package, and you will get complaints that there are
20409 # no rules to generate ltmain.sh.
20410 if test -f "$ltmain"; then
20411 # See if we are running on zsh, and set the options which allow our commands through
20412 # without removal of \ escapes.
20413 if test -n "${ZSH_VERSION+set}" ; then
20414 setopt NO_GLOB_SUBST
20416 # Now quote all the things that may contain metacharacters while being
20417 # careful not to overquote the AC_SUBSTed values. We take copies of the
20418 # variables and quote the copies for generation of the libtool script.
20419 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20420 SED SHELL STRIP \
20421 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20422 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20423 deplibs_check_method reload_flag reload_cmds need_locks \
20424 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20425 lt_cv_sys_global_symbol_to_c_name_address \
20426 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20427 old_postinstall_cmds old_postuninstall_cmds \
20428 compiler_CXX \
20429 CC_CXX \
20430 LD_CXX \
20431 lt_prog_compiler_wl_CXX \
20432 lt_prog_compiler_pic_CXX \
20433 lt_prog_compiler_static_CXX \
20434 lt_prog_compiler_no_builtin_flag_CXX \
20435 export_dynamic_flag_spec_CXX \
20436 thread_safe_flag_spec_CXX \
20437 whole_archive_flag_spec_CXX \
20438 enable_shared_with_static_runtimes_CXX \
20439 old_archive_cmds_CXX \
20440 old_archive_from_new_cmds_CXX \
20441 predep_objects_CXX \
20442 postdep_objects_CXX \
20443 predeps_CXX \
20444 postdeps_CXX \
20445 compiler_lib_search_path_CXX \
20446 archive_cmds_CXX \
20447 archive_expsym_cmds_CXX \
20448 postinstall_cmds_CXX \
20449 postuninstall_cmds_CXX \
20450 old_archive_from_expsyms_cmds_CXX \
20451 allow_undefined_flag_CXX \
20452 no_undefined_flag_CXX \
20453 export_symbols_cmds_CXX \
20454 hardcode_libdir_flag_spec_CXX \
20455 hardcode_libdir_flag_spec_ld_CXX \
20456 hardcode_libdir_separator_CXX \
20457 hardcode_automatic_CXX \
20458 module_cmds_CXX \
20459 module_expsym_cmds_CXX \
20460 lt_cv_prog_compiler_c_o_CXX \
20461 exclude_expsyms_CXX \
20462 include_expsyms_CXX; do
20464 case $var in
20465 old_archive_cmds_CXX | \
20466 old_archive_from_new_cmds_CXX | \
20467 archive_cmds_CXX | \
20468 archive_expsym_cmds_CXX | \
20469 module_cmds_CXX | \
20470 module_expsym_cmds_CXX | \
20471 old_archive_from_expsyms_cmds_CXX | \
20472 export_symbols_cmds_CXX | \
20473 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20474 postinstall_cmds | postuninstall_cmds | \
20475 old_postinstall_cmds | old_postuninstall_cmds | \
20476 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20477 # Double-quote double-evaled strings.
20478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20481 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20483 esac
20484 done
20486 case $lt_echo in
20487 *'\$0 --fallback-echo"')
20488 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20490 esac
20492 cfgfile="$ofile"
20494 cat <<__EOF__ >> "$cfgfile"
20495 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20497 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20499 # Shell to use when invoking shell scripts.
20500 SHELL=$lt_SHELL
20502 # Whether or not to build shared libraries.
20503 build_libtool_libs=$enable_shared
20505 # Whether or not to build static libraries.
20506 build_old_libs=$enable_static
20508 # Whether or not to add -lc for building shared libraries.
20509 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20511 # Whether or not to disallow shared libs when runtime libs are static
20512 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20514 # Whether or not to optimize for fast installation.
20515 fast_install=$enable_fast_install
20517 # The host system.
20518 host_alias=$host_alias
20519 host=$host
20520 host_os=$host_os
20522 # The build system.
20523 build_alias=$build_alias
20524 build=$build
20525 build_os=$build_os
20527 # An echo program that does not interpret backslashes.
20528 echo=$lt_echo
20530 # The archiver.
20531 AR=$lt_AR
20532 AR_FLAGS=$lt_AR_FLAGS
20534 # A C compiler.
20535 LTCC=$lt_LTCC
20537 # LTCC compiler flags.
20538 LTCFLAGS=$lt_LTCFLAGS
20540 # A language-specific compiler.
20541 CC=$lt_compiler_CXX
20543 # Is the compiler the GNU C compiler?
20544 with_gcc=$GCC_CXX
20546 # An ERE matcher.
20547 EGREP=$lt_EGREP
20549 # The linker used to build libraries.
20550 LD=$lt_LD_CXX
20552 # Whether we need hard or soft links.
20553 LN_S=$lt_LN_S
20555 # A BSD-compatible nm program.
20556 NM=$lt_NM
20558 # A symbol stripping program
20559 STRIP=$lt_STRIP
20561 # Used to examine libraries when file_magic_cmd begins "file"
20562 MAGIC_CMD=$MAGIC_CMD
20564 # Used on cygwin: DLL creation program.
20565 DLLTOOL="$DLLTOOL"
20567 # Used on cygwin: object dumper.
20568 OBJDUMP="$OBJDUMP"
20570 # Used on cygwin: assembler.
20571 AS="$AS"
20573 # The name of the directory that contains temporary libtool files.
20574 objdir=$objdir
20576 # How to create reloadable object files.
20577 reload_flag=$lt_reload_flag
20578 reload_cmds=$lt_reload_cmds
20580 # How to pass a linker flag through the compiler.
20581 wl=$lt_lt_prog_compiler_wl_CXX
20583 # Object file suffix (normally "o").
20584 objext="$ac_objext"
20586 # Old archive suffix (normally "a").
20587 libext="$libext"
20589 # Shared library suffix (normally ".so").
20590 shrext_cmds='$shrext_cmds'
20592 # Executable file suffix (normally "").
20593 exeext="$exeext"
20595 # Additional compiler flags for building library objects.
20596 pic_flag=$lt_lt_prog_compiler_pic_CXX
20597 pic_mode=$pic_mode
20599 # What is the maximum length of a command?
20600 max_cmd_len=$lt_cv_sys_max_cmd_len
20602 # Does compiler simultaneously support -c and -o options?
20603 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20605 # Must we lock files when doing compilation?
20606 need_locks=$lt_need_locks
20608 # Do we need the lib prefix for modules?
20609 need_lib_prefix=$need_lib_prefix
20611 # Do we need a version for libraries?
20612 need_version=$need_version
20614 # Whether dlopen is supported.
20615 dlopen_support=$enable_dlopen
20617 # Whether dlopen of programs is supported.
20618 dlopen_self=$enable_dlopen_self
20620 # Whether dlopen of statically linked programs is supported.
20621 dlopen_self_static=$enable_dlopen_self_static
20623 # Compiler flag to prevent dynamic linking.
20624 link_static_flag=$lt_lt_prog_compiler_static_CXX
20626 # Compiler flag to turn off builtin functions.
20627 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20629 # Compiler flag to allow reflexive dlopens.
20630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20632 # Compiler flag to generate shared objects directly from archives.
20633 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20635 # Compiler flag to generate thread-safe objects.
20636 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20638 # Library versioning type.
20639 version_type=$version_type
20641 # Format of library name prefix.
20642 libname_spec=$lt_libname_spec
20644 # List of archive names. First name is the real one, the rest are links.
20645 # The last name is the one that the linker finds with -lNAME.
20646 library_names_spec=$lt_library_names_spec
20648 # The coded name of the library, if different from the real name.
20649 soname_spec=$lt_soname_spec
20651 # Commands used to build and install an old-style archive.
20652 RANLIB=$lt_RANLIB
20653 old_archive_cmds=$lt_old_archive_cmds_CXX
20654 old_postinstall_cmds=$lt_old_postinstall_cmds
20655 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20657 # Create an old-style archive from a shared archive.
20658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20660 # Create a temporary old-style archive to link instead of a shared archive.
20661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20663 # Commands used to build and install a shared archive.
20664 archive_cmds=$lt_archive_cmds_CXX
20665 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20666 postinstall_cmds=$lt_postinstall_cmds
20667 postuninstall_cmds=$lt_postuninstall_cmds
20669 # Commands used to build a loadable module (assumed same as above if empty)
20670 module_cmds=$lt_module_cmds_CXX
20671 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20673 # Commands to strip libraries.
20674 old_striplib=$lt_old_striplib
20675 striplib=$lt_striplib
20677 # Dependencies to place before the objects being linked to create a
20678 # shared library.
20679 predep_objects=$lt_predep_objects_CXX
20681 # Dependencies to place after the objects being linked to create a
20682 # shared library.
20683 postdep_objects=$lt_postdep_objects_CXX
20685 # Dependencies to place before the objects being linked to create a
20686 # shared library.
20687 predeps=$lt_predeps_CXX
20689 # Dependencies to place after the objects being linked to create a
20690 # shared library.
20691 postdeps=$lt_postdeps_CXX
20693 # The library search path used internally by the compiler when linking
20694 # a shared library.
20695 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20697 # Method to check whether dependent libraries are shared objects.
20698 deplibs_check_method=$lt_deplibs_check_method
20700 # Command to use when deplibs_check_method == file_magic.
20701 file_magic_cmd=$lt_file_magic_cmd
20703 # Flag that allows shared libraries with undefined symbols to be built.
20704 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20706 # Flag that forces no undefined symbols.
20707 no_undefined_flag=$lt_no_undefined_flag_CXX
20709 # Commands used to finish a libtool library installation in a directory.
20710 finish_cmds=$lt_finish_cmds
20712 # Same as above, but a single script fragment to be evaled but not shown.
20713 finish_eval=$lt_finish_eval
20715 # Take the output of nm and produce a listing of raw symbols and C names.
20716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20718 # Transform the output of nm in a proper C declaration
20719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20721 # Transform the output of nm in a C name address pair
20722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20724 # This is the shared library runtime path variable.
20725 runpath_var=$runpath_var
20727 # This is the shared library path variable.
20728 shlibpath_var=$shlibpath_var
20730 # Is shlibpath searched before the hard-coded library search path?
20731 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20733 # How to hardcode a shared library path into an executable.
20734 hardcode_action=$hardcode_action_CXX
20736 # Whether we should hardcode library paths into libraries.
20737 hardcode_into_libs=$hardcode_into_libs
20739 # Flag to hardcode \$libdir into a binary during linking.
20740 # This must work even if \$libdir does not exist.
20741 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20743 # If ld is used when linking, flag to hardcode \$libdir into
20744 # a binary during linking. This must work even if \$libdir does
20745 # not exist.
20746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20748 # Whether we need a single -rpath flag with a separated argument.
20749 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20751 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20752 # resulting binary.
20753 hardcode_direct=$hardcode_direct_CXX
20755 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20756 # resulting binary.
20757 hardcode_minus_L=$hardcode_minus_L_CXX
20759 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20760 # the resulting binary.
20761 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20763 # Set to yes if building a shared library automatically hardcodes DIR into the library
20764 # and all subsequent libraries and executables linked against it.
20765 hardcode_automatic=$hardcode_automatic_CXX
20767 # Variables whose values should be saved in libtool wrapper scripts and
20768 # restored at relink time.
20769 variables_saved_for_relink="$variables_saved_for_relink"
20771 # Whether libtool must link a program against all its dependency libraries.
20772 link_all_deplibs=$link_all_deplibs_CXX
20774 # Compile-time system search path for libraries
20775 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20777 # Run-time system search path for libraries
20778 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20780 # Fix the shell variable \$srcfile for the compiler.
20781 fix_srcfile_path="$fix_srcfile_path_CXX"
20783 # Set to yes if exported symbols are required.
20784 always_export_symbols=$always_export_symbols_CXX
20786 # The commands to list exported symbols.
20787 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20789 # The commands to extract the exported symbol list from a shared archive.
20790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20792 # Symbols that should not be listed in the preloaded symbols.
20793 exclude_expsyms=$lt_exclude_expsyms_CXX
20795 # Symbols that must always be exported.
20796 include_expsyms=$lt_include_expsyms_CXX
20798 # ### END LIBTOOL TAG CONFIG: $tagname
20800 __EOF__
20803 else
20804 # If there is no Makefile yet, we rely on a make rule to execute
20805 # `config.status --recheck' to rerun these tests and create the
20806 # libtool script then.
20807 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20808 if test -f "$ltmain_in"; then
20809 test -f Makefile && make "$ltmain"
20814 ac_ext=c
20815 ac_cpp='$CPP $CPPFLAGS'
20816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20820 CC=$lt_save_CC
20821 LDCXX=$LD
20822 LD=$lt_save_LD
20823 GCC=$lt_save_GCC
20824 with_gnu_ldcxx=$with_gnu_ld
20825 with_gnu_ld=$lt_save_with_gnu_ld
20826 lt_cv_path_LDCXX=$lt_cv_path_LD
20827 lt_cv_path_LD=$lt_save_path_LD
20828 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20829 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20831 else
20832 tagname=""
20836 F77)
20837 if test -n "$F77" && test "X$F77" != "Xno"; then
20839 ac_ext=f
20840 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20841 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20845 archive_cmds_need_lc_F77=no
20846 allow_undefined_flag_F77=
20847 always_export_symbols_F77=no
20848 archive_expsym_cmds_F77=
20849 export_dynamic_flag_spec_F77=
20850 hardcode_direct_F77=no
20851 hardcode_libdir_flag_spec_F77=
20852 hardcode_libdir_flag_spec_ld_F77=
20853 hardcode_libdir_separator_F77=
20854 hardcode_minus_L_F77=no
20855 hardcode_automatic_F77=no
20856 module_cmds_F77=
20857 module_expsym_cmds_F77=
20858 link_all_deplibs_F77=unknown
20859 old_archive_cmds_F77=$old_archive_cmds
20860 no_undefined_flag_F77=
20861 whole_archive_flag_spec_F77=
20862 enable_shared_with_static_runtimes_F77=no
20864 # Source file extension for f77 test sources.
20865 ac_ext=f
20867 # Object file extension for compiled f77 test sources.
20868 objext=o
20869 objext_F77=$objext
20871 # Code to be used in simple compile tests
20872 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20874 # Code to be used in simple link tests
20875 lt_simple_link_test_code=" program t\n end\n"
20877 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20879 # If no C compiler was specified, use CC.
20880 LTCC=${LTCC-"$CC"}
20882 # If no C compiler flags were specified, use CFLAGS.
20883 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20885 # Allow CC to be a program name with arguments.
20886 compiler=$CC
20889 # save warnings/boilerplate of simple test code
20890 ac_outfile=conftest.$ac_objext
20891 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20892 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20893 _lt_compiler_boilerplate=`cat conftest.err`
20894 $rm conftest*
20896 ac_outfile=conftest.$ac_objext
20897 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20899 _lt_linker_boilerplate=`cat conftest.err`
20900 $rm conftest*
20903 # Allow CC to be a program name with arguments.
20904 lt_save_CC="$CC"
20905 CC=${F77-"f77"}
20906 compiler=$CC
20907 compiler_F77=$CC
20908 for cc_temp in $compiler""; do
20909 case $cc_temp in
20910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20912 \-*) ;;
20913 *) break;;
20914 esac
20915 done
20916 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20919 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20920 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20921 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20922 echo "${ECHO_T}$can_build_shared" >&6; }
20924 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20925 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20926 test "$can_build_shared" = "no" && enable_shared=no
20928 # On AIX, shared libraries and static libraries use the same namespace, and
20929 # are all built from PIC.
20930 case $host_os in
20931 aix3*)
20932 test "$enable_shared" = yes && enable_static=no
20933 if test -n "$RANLIB"; then
20934 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20935 postinstall_cmds='$RANLIB $lib'
20938 aix4* | aix5*)
20939 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20940 test "$enable_shared" = yes && enable_static=no
20943 esac
20944 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20945 echo "${ECHO_T}$enable_shared" >&6; }
20947 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20948 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20949 # Make sure either enable_shared or enable_static is yes.
20950 test "$enable_shared" = yes || enable_static=yes
20951 { echo "$as_me:$LINENO: result: $enable_static" >&5
20952 echo "${ECHO_T}$enable_static" >&6; }
20954 GCC_F77="$G77"
20955 LD_F77="$LD"
20957 lt_prog_compiler_wl_F77=
20958 lt_prog_compiler_pic_F77=
20959 lt_prog_compiler_static_F77=
20961 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20962 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20964 if test "$GCC" = yes; then
20965 lt_prog_compiler_wl_F77='-Wl,'
20966 lt_prog_compiler_static_F77='-static'
20968 case $host_os in
20969 aix*)
20970 # All AIX code is PIC.
20971 if test "$host_cpu" = ia64; then
20972 # AIX 5 now supports IA64 processor
20973 lt_prog_compiler_static_F77='-Bstatic'
20977 amigaos*)
20978 # FIXME: we need at least 68020 code to build shared libraries, but
20979 # adding the `-m68020' flag to GCC prevents building anything better,
20980 # like `-m68040'.
20981 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20984 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20985 # PIC is the default for these OSes.
20988 mingw* | pw32* | os2*)
20989 # This hack is so that the source file can tell whether it is being
20990 # built for inclusion in a dll (and should export symbols for example).
20991 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20994 darwin* | rhapsody*)
20995 # PIC is the default on this platform
20996 # Common symbols not allowed in MH_DYLIB files
20997 lt_prog_compiler_pic_F77='-fno-common'
21000 interix3*)
21001 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21002 # Instead, we relocate shared libraries at runtime.
21005 msdosdjgpp*)
21006 # Just because we use GCC doesn't mean we suddenly get shared libraries
21007 # on systems that don't support them.
21008 lt_prog_compiler_can_build_shared_F77=no
21009 enable_shared=no
21012 sysv4*MP*)
21013 if test -d /usr/nec; then
21014 lt_prog_compiler_pic_F77=-Kconform_pic
21018 hpux*)
21019 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21020 # not for PA HP-UX.
21021 case $host_cpu in
21022 hppa*64*|ia64*)
21023 # +Z the default
21026 lt_prog_compiler_pic_F77='-fPIC'
21028 esac
21032 lt_prog_compiler_pic_F77='-fPIC'
21034 esac
21035 else
21036 # PORTME Check for flag to pass linker flags through the system compiler.
21037 case $host_os in
21038 aix*)
21039 lt_prog_compiler_wl_F77='-Wl,'
21040 if test "$host_cpu" = ia64; then
21041 # AIX 5 now supports IA64 processor
21042 lt_prog_compiler_static_F77='-Bstatic'
21043 else
21044 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21047 darwin*)
21048 # PIC is the default on this platform
21049 # Common symbols not allowed in MH_DYLIB files
21050 case $cc_basename in
21051 xlc*)
21052 lt_prog_compiler_pic_F77='-qnocommon'
21053 lt_prog_compiler_wl_F77='-Wl,'
21055 esac
21058 mingw* | pw32* | os2*)
21059 # This hack is so that the source file can tell whether it is being
21060 # built for inclusion in a dll (and should export symbols for example).
21061 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21064 hpux9* | hpux10* | hpux11*)
21065 lt_prog_compiler_wl_F77='-Wl,'
21066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21067 # not for PA HP-UX.
21068 case $host_cpu in
21069 hppa*64*|ia64*)
21070 # +Z the default
21073 lt_prog_compiler_pic_F77='+Z'
21075 esac
21076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21077 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21080 irix5* | irix6* | nonstopux*)
21081 lt_prog_compiler_wl_F77='-Wl,'
21082 # PIC (with -KPIC) is the default.
21083 lt_prog_compiler_static_F77='-non_shared'
21086 newsos6)
21087 lt_prog_compiler_pic_F77='-KPIC'
21088 lt_prog_compiler_static_F77='-Bstatic'
21091 linux*)
21092 case $cc_basename in
21093 icc* | ecc*)
21094 lt_prog_compiler_wl_F77='-Wl,'
21095 lt_prog_compiler_pic_F77='-KPIC'
21096 lt_prog_compiler_static_F77='-static'
21098 pgcc* | pgf77* | pgf90* | pgf95*)
21099 # Portland Group compilers (*not* the Pentium gcc compiler,
21100 # which looks to be a dead project)
21101 lt_prog_compiler_wl_F77='-Wl,'
21102 lt_prog_compiler_pic_F77='-fpic'
21103 lt_prog_compiler_static_F77='-Bstatic'
21105 ccc*)
21106 lt_prog_compiler_wl_F77='-Wl,'
21107 # All Alpha code is PIC.
21108 lt_prog_compiler_static_F77='-non_shared'
21110 esac
21113 osf3* | osf4* | osf5*)
21114 lt_prog_compiler_wl_F77='-Wl,'
21115 # All OSF/1 code is PIC.
21116 lt_prog_compiler_static_F77='-non_shared'
21119 solaris*)
21120 lt_prog_compiler_pic_F77='-KPIC'
21121 lt_prog_compiler_static_F77='-Bstatic'
21122 case $cc_basename in
21123 f77* | f90* | f95*)
21124 lt_prog_compiler_wl_F77='-Qoption ld ';;
21126 lt_prog_compiler_wl_F77='-Wl,';;
21127 esac
21130 sunos4*)
21131 lt_prog_compiler_wl_F77='-Qoption ld '
21132 lt_prog_compiler_pic_F77='-PIC'
21133 lt_prog_compiler_static_F77='-Bstatic'
21136 sysv4 | sysv4.2uw2* | sysv4.3*)
21137 lt_prog_compiler_wl_F77='-Wl,'
21138 lt_prog_compiler_pic_F77='-KPIC'
21139 lt_prog_compiler_static_F77='-Bstatic'
21142 sysv4*MP*)
21143 if test -d /usr/nec ;then
21144 lt_prog_compiler_pic_F77='-Kconform_pic'
21145 lt_prog_compiler_static_F77='-Bstatic'
21149 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21150 lt_prog_compiler_wl_F77='-Wl,'
21151 lt_prog_compiler_pic_F77='-KPIC'
21152 lt_prog_compiler_static_F77='-Bstatic'
21155 unicos*)
21156 lt_prog_compiler_wl_F77='-Wl,'
21157 lt_prog_compiler_can_build_shared_F77=no
21160 uts4*)
21161 lt_prog_compiler_pic_F77='-pic'
21162 lt_prog_compiler_static_F77='-Bstatic'
21166 lt_prog_compiler_can_build_shared_F77=no
21168 esac
21171 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21172 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21175 # Check to make sure the PIC flag actually works.
21177 if test -n "$lt_prog_compiler_pic_F77"; then
21179 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21180 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21181 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21183 else
21184 lt_prog_compiler_pic_works_F77=no
21185 ac_outfile=conftest.$ac_objext
21186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21187 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21188 # Insert the option either (1) after the last *FLAGS variable, or
21189 # (2) before a word containing "conftest.", or (3) at the end.
21190 # Note that $ac_compile itself does not contain backslashes and begins
21191 # with a dollar sign (not a hyphen), so the echo should work correctly.
21192 # The option is referenced via a variable to avoid confusing sed.
21193 lt_compile=`echo "$ac_compile" | $SED \
21194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21196 -e 's:$: $lt_compiler_flag:'`
21197 (eval echo "\"\$as_me:21197: $lt_compile\"" >&5)
21198 (eval "$lt_compile" 2>conftest.err)
21199 ac_status=$?
21200 cat conftest.err >&5
21201 echo "$as_me:21201: \$? = $ac_status" >&5
21202 if (exit $ac_status) && test -s "$ac_outfile"; then
21203 # The compiler can only warn and ignore the option if not recognized
21204 # So say no if there are warnings other than the usual output.
21205 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21208 lt_prog_compiler_pic_works_F77=yes
21211 $rm conftest*
21214 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21215 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
21217 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21218 case $lt_prog_compiler_pic_F77 in
21219 "" | " "*) ;;
21220 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21221 esac
21222 else
21223 lt_prog_compiler_pic_F77=
21224 lt_prog_compiler_can_build_shared_F77=no
21228 case $host_os in
21229 # For platforms which do not support PIC, -DPIC is meaningless:
21230 *djgpp*)
21231 lt_prog_compiler_pic_F77=
21234 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21236 esac
21239 # Check to make sure the static flag actually works.
21241 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21242 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21243 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21244 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247 lt_prog_compiler_static_works_F77=no
21248 save_LDFLAGS="$LDFLAGS"
21249 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21250 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21252 # The linker can only warn and ignore the option if not recognized
21253 # So say no if there are warnings
21254 if test -s conftest.err; then
21255 # Append any errors to the config.log.
21256 cat conftest.err 1>&5
21257 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21259 if diff conftest.exp conftest.er2 >/dev/null; then
21260 lt_prog_compiler_static_works_F77=yes
21262 else
21263 lt_prog_compiler_static_works_F77=yes
21266 $rm conftest*
21267 LDFLAGS="$save_LDFLAGS"
21270 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21271 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21273 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21275 else
21276 lt_prog_compiler_static_F77=
21280 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21281 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21282 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21284 else
21285 lt_cv_prog_compiler_c_o_F77=no
21286 $rm -r conftest 2>/dev/null
21287 mkdir conftest
21288 cd conftest
21289 mkdir out
21290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21292 lt_compiler_flag="-o out/conftest2.$ac_objext"
21293 # Insert the option either (1) after the last *FLAGS variable, or
21294 # (2) before a word containing "conftest.", or (3) at the end.
21295 # Note that $ac_compile itself does not contain backslashes and begins
21296 # with a dollar sign (not a hyphen), so the echo should work correctly.
21297 lt_compile=`echo "$ac_compile" | $SED \
21298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21300 -e 's:$: $lt_compiler_flag:'`
21301 (eval echo "\"\$as_me:21301: $lt_compile\"" >&5)
21302 (eval "$lt_compile" 2>out/conftest.err)
21303 ac_status=$?
21304 cat out/conftest.err >&5
21305 echo "$as_me:21305: \$? = $ac_status" >&5
21306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21307 then
21308 # The compiler can only warn and ignore the option if not recognized
21309 # So say no if there are warnings
21310 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21313 lt_cv_prog_compiler_c_o_F77=yes
21316 chmod u+w . 2>&5
21317 $rm conftest*
21318 # SGI C++ compiler will create directory out/ii_files/ for
21319 # template instantiation
21320 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21321 $rm out/* && rmdir out
21322 cd ..
21323 rmdir conftest
21324 $rm conftest*
21327 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21328 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21331 hard_links="nottested"
21332 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21333 # do not overwrite the value of need_locks provided by the user
21334 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21335 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21336 hard_links=yes
21337 $rm conftest*
21338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21339 touch conftest.a
21340 ln conftest.a conftest.b 2>&5 || hard_links=no
21341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21342 { echo "$as_me:$LINENO: result: $hard_links" >&5
21343 echo "${ECHO_T}$hard_links" >&6; }
21344 if test "$hard_links" = no; then
21345 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21346 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21347 need_locks=warn
21349 else
21350 need_locks=no
21353 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21354 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21356 runpath_var=
21357 allow_undefined_flag_F77=
21358 enable_shared_with_static_runtimes_F77=no
21359 archive_cmds_F77=
21360 archive_expsym_cmds_F77=
21361 old_archive_From_new_cmds_F77=
21362 old_archive_from_expsyms_cmds_F77=
21363 export_dynamic_flag_spec_F77=
21364 whole_archive_flag_spec_F77=
21365 thread_safe_flag_spec_F77=
21366 hardcode_libdir_flag_spec_F77=
21367 hardcode_libdir_flag_spec_ld_F77=
21368 hardcode_libdir_separator_F77=
21369 hardcode_direct_F77=no
21370 hardcode_minus_L_F77=no
21371 hardcode_shlibpath_var_F77=unsupported
21372 link_all_deplibs_F77=unknown
21373 hardcode_automatic_F77=no
21374 module_cmds_F77=
21375 module_expsym_cmds_F77=
21376 always_export_symbols_F77=no
21377 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21378 # include_expsyms should be a list of space-separated symbols to be *always*
21379 # included in the symbol list
21380 include_expsyms_F77=
21381 # exclude_expsyms can be an extended regexp of symbols to exclude
21382 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21383 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21384 # as well as any symbol that contains `d'.
21385 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21386 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21387 # platforms (ab)use it in PIC code, but their linkers get confused if
21388 # the symbol is explicitly referenced. Since portable code cannot
21389 # rely on this symbol name, it's probably fine to never include it in
21390 # preloaded symbol tables.
21391 extract_expsyms_cmds=
21392 # Just being paranoid about ensuring that cc_basename is set.
21393 for cc_temp in $compiler""; do
21394 case $cc_temp in
21395 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21396 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21397 \-*) ;;
21398 *) break;;
21399 esac
21400 done
21401 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21403 case $host_os in
21404 cygwin* | mingw* | pw32*)
21405 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21406 # When not using gcc, we currently assume that we are using
21407 # Microsoft Visual C++.
21408 if test "$GCC" != yes; then
21409 with_gnu_ld=no
21412 interix*)
21413 # we just hope/assume this is gcc and not c89 (= MSVC++)
21414 with_gnu_ld=yes
21416 openbsd*)
21417 with_gnu_ld=no
21419 esac
21421 ld_shlibs_F77=yes
21422 if test "$with_gnu_ld" = yes; then
21423 # If archive_cmds runs LD, not CC, wlarc should be empty
21424 wlarc='${wl}'
21426 # Set some defaults for GNU ld with shared library support. These
21427 # are reset later if shared libraries are not supported. Putting them
21428 # here allows them to be overridden if necessary.
21429 runpath_var=LD_RUN_PATH
21430 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21431 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21432 # ancient GNU ld didn't support --whole-archive et. al.
21433 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21434 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21435 else
21436 whole_archive_flag_spec_F77=
21438 supports_anon_versioning=no
21439 case `$LD -v 2>/dev/null` in
21440 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21441 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21442 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21443 *\ 2.11.*) ;; # other 2.11 versions
21444 *) supports_anon_versioning=yes ;;
21445 esac
21447 # See if GNU ld supports shared libraries.
21448 case $host_os in
21449 aix3* | aix4* | aix5*)
21450 # On AIX/PPC, the GNU linker is very broken
21451 if test "$host_cpu" != ia64; then
21452 ld_shlibs_F77=no
21453 cat <<EOF 1>&2
21455 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21456 *** to be unable to reliably create shared libraries on AIX.
21457 *** Therefore, libtool is disabling shared libraries support. If you
21458 *** really care for shared libraries, you may want to modify your PATH
21459 *** so that a non-GNU linker is found, and then restart.
21465 amigaos*)
21466 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)'
21467 hardcode_libdir_flag_spec_F77='-L$libdir'
21468 hardcode_minus_L_F77=yes
21470 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21471 # that the semantics of dynamic libraries on AmigaOS, at least up
21472 # to version 4, is to share data among multiple programs linked
21473 # with the same dynamic library. Since this doesn't match the
21474 # behavior of shared libraries on other platforms, we can't use
21475 # them.
21476 ld_shlibs_F77=no
21479 beos*)
21480 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21481 allow_undefined_flag_F77=unsupported
21482 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21483 # support --undefined. This deserves some investigation. FIXME
21484 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21485 else
21486 ld_shlibs_F77=no
21490 cygwin* | mingw* | pw32*)
21491 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21492 # as there is no search path for DLLs.
21493 hardcode_libdir_flag_spec_F77='-L$libdir'
21494 allow_undefined_flag_F77=unsupported
21495 always_export_symbols_F77=no
21496 enable_shared_with_static_runtimes_F77=yes
21497 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21499 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21500 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21501 # If the export-symbols file already is a .def file (1st line
21502 # is EXPORTS), use it as is; otherwise, prepend...
21503 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21504 cp $export_symbols $output_objdir/$soname.def;
21505 else
21506 echo EXPORTS > $output_objdir/$soname.def;
21507 cat $export_symbols >> $output_objdir/$soname.def;
21509 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21510 else
21511 ld_shlibs_F77=no
21515 interix3*)
21516 hardcode_direct_F77=no
21517 hardcode_shlibpath_var_F77=no
21518 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21519 export_dynamic_flag_spec_F77='${wl}-E'
21520 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21521 # Instead, shared libraries are loaded at an image base (0x10000000 by
21522 # default) and relocated if they conflict, which is a slow very memory
21523 # consuming and fragmenting process. To avoid this, we pick a random,
21524 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21525 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21526 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'
21527 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'
21530 linux*)
21531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21532 tmp_addflag=
21533 case $cc_basename,$host_cpu in
21534 pgcc*) # Portland Group C compiler
21535 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'
21536 tmp_addflag=' $pic_flag'
21538 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21539 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'
21540 tmp_addflag=' $pic_flag -Mnomain' ;;
21541 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21542 tmp_addflag=' -i_dynamic' ;;
21543 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21544 tmp_addflag=' -i_dynamic -nofor_main' ;;
21545 ifc* | ifort*) # Intel Fortran compiler
21546 tmp_addflag=' -nofor_main' ;;
21547 esac
21548 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21550 if test $supports_anon_versioning = yes; then
21551 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21553 $echo "local: *; };" >> $output_objdir/$libname.ver~
21554 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21556 else
21557 ld_shlibs_F77=no
21561 netbsd*)
21562 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21563 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21564 wlarc=
21565 else
21566 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21567 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21571 solaris*)
21572 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21573 ld_shlibs_F77=no
21574 cat <<EOF 1>&2
21576 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21577 *** create shared libraries on Solaris systems. Therefore, libtool
21578 *** is disabling shared libraries support. We urge you to upgrade GNU
21579 *** binutils to release 2.9.1 or newer. Another option is to modify
21580 *** your PATH or compiler configuration so that the native linker is
21581 *** used, and then restart.
21584 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21585 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21586 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21587 else
21588 ld_shlibs_F77=no
21592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21593 case `$LD -v 2>&1` in
21594 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21595 ld_shlibs_F77=no
21596 cat <<_LT_EOF 1>&2
21598 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21599 *** reliably create shared libraries on SCO systems. Therefore, libtool
21600 *** is disabling shared libraries support. We urge you to upgrade GNU
21601 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21602 *** your PATH or compiler configuration so that the native linker is
21603 *** used, and then restart.
21605 _LT_EOF
21608 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21609 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21610 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21611 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21612 else
21613 ld_shlibs_F77=no
21616 esac
21619 sunos4*)
21620 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21621 wlarc=
21622 hardcode_direct_F77=yes
21623 hardcode_shlibpath_var_F77=no
21627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21628 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21629 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21630 else
21631 ld_shlibs_F77=no
21634 esac
21636 if test "$ld_shlibs_F77" = no; then
21637 runpath_var=
21638 hardcode_libdir_flag_spec_F77=
21639 export_dynamic_flag_spec_F77=
21640 whole_archive_flag_spec_F77=
21642 else
21643 # PORTME fill in a description of your system's linker (not GNU ld)
21644 case $host_os in
21645 aix3*)
21646 allow_undefined_flag_F77=unsupported
21647 always_export_symbols_F77=yes
21648 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'
21649 # Note: this linker hardcodes the directories in LIBPATH if there
21650 # are no directories specified by -L.
21651 hardcode_minus_L_F77=yes
21652 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21653 # Neither direct hardcoding nor static linking is supported with a
21654 # broken collect2.
21655 hardcode_direct_F77=unsupported
21659 aix4* | aix5*)
21660 if test "$host_cpu" = ia64; then
21661 # On IA64, the linker does run time linking by default, so we don't
21662 # have to do anything special.
21663 aix_use_runtimelinking=no
21664 exp_sym_flag='-Bexport'
21665 no_entry_flag=""
21666 else
21667 # If we're using GNU nm, then we don't want the "-C" option.
21668 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21669 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21670 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'
21671 else
21672 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'
21674 aix_use_runtimelinking=no
21676 # Test if we are trying to use run time linking or normal
21677 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21678 # need to do runtime linking.
21679 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21680 for ld_flag in $LDFLAGS; do
21681 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21682 aix_use_runtimelinking=yes
21683 break
21685 done
21687 esac
21689 exp_sym_flag='-bexport'
21690 no_entry_flag='-bnoentry'
21693 # When large executables or shared objects are built, AIX ld can
21694 # have problems creating the table of contents. If linking a library
21695 # or program results in "error TOC overflow" add -mminimal-toc to
21696 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21697 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21699 archive_cmds_F77=''
21700 hardcode_direct_F77=yes
21701 hardcode_libdir_separator_F77=':'
21702 link_all_deplibs_F77=yes
21704 if test "$GCC" = yes; then
21705 case $host_os in aix4.[012]|aix4.[012].*)
21706 # We only want to do this on AIX 4.2 and lower, the check
21707 # below for broken collect2 doesn't work under 4.3+
21708 collect2name=`${CC} -print-prog-name=collect2`
21709 if test -f "$collect2name" && \
21710 strings "$collect2name" | grep resolve_lib_name >/dev/null
21711 then
21712 # We have reworked collect2
21713 hardcode_direct_F77=yes
21714 else
21715 # We have old collect2
21716 hardcode_direct_F77=unsupported
21717 # It fails to find uninstalled libraries when the uninstalled
21718 # path is not listed in the libpath. Setting hardcode_minus_L
21719 # to unsupported forces relinking
21720 hardcode_minus_L_F77=yes
21721 hardcode_libdir_flag_spec_F77='-L$libdir'
21722 hardcode_libdir_separator_F77=
21725 esac
21726 shared_flag='-shared'
21727 if test "$aix_use_runtimelinking" = yes; then
21728 shared_flag="$shared_flag "'${wl}-G'
21730 else
21731 # not using gcc
21732 if test "$host_cpu" = ia64; then
21733 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21734 # chokes on -Wl,-G. The following line is correct:
21735 shared_flag='-G'
21736 else
21737 if test "$aix_use_runtimelinking" = yes; then
21738 shared_flag='${wl}-G'
21739 else
21740 shared_flag='${wl}-bM:SRE'
21745 # It seems that -bexpall does not export symbols beginning with
21746 # underscore (_), so it is better to generate a list of symbols to export.
21747 always_export_symbols_F77=yes
21748 if test "$aix_use_runtimelinking" = yes; then
21749 # Warning - without using the other runtime loading flags (-brtl),
21750 # -berok will link without error, but may produce a broken library.
21751 allow_undefined_flag_F77='-berok'
21752 # Determine the default libpath from the value encoded in an empty executable.
21753 cat >conftest.$ac_ext <<_ACEOF
21754 program main
21757 _ACEOF
21758 rm -f conftest.$ac_objext conftest$ac_exeext
21759 if { (ac_try="$ac_link"
21760 case "(($ac_try" in
21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762 *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765 (eval "$ac_link") 2>conftest.er1
21766 ac_status=$?
21767 grep -v '^ *+' conftest.er1 >conftest.err
21768 rm -f conftest.er1
21769 cat conftest.err >&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); } &&
21772 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21773 { (case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21776 esac
21777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778 (eval "$ac_try") 2>&5
21779 ac_status=$?
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); }; } &&
21782 { ac_try='test -s conftest$ac_exeext'
21783 { (case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21786 esac
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_try") 2>&5
21789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; }; then
21793 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21795 # Check for a 64-bit object if we didn't find anything.
21796 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; }
21797 }'`; fi
21798 else
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21805 rm -f core conftest.err conftest.$ac_objext \
21806 conftest$ac_exeext conftest.$ac_ext
21807 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21809 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21810 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"
21811 else
21812 if test "$host_cpu" = ia64; then
21813 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21814 allow_undefined_flag_F77="-z nodefs"
21815 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"
21816 else
21817 # Determine the default libpath from the value encoded in an empty executable.
21818 cat >conftest.$ac_ext <<_ACEOF
21819 program main
21822 _ACEOF
21823 rm -f conftest.$ac_objext conftest$ac_exeext
21824 if { (ac_try="$ac_link"
21825 case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21828 esac
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval "$ac_link") 2>conftest.er1
21831 ac_status=$?
21832 grep -v '^ *+' conftest.er1 >conftest.err
21833 rm -f conftest.er1
21834 cat conftest.err >&5
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); } &&
21837 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21838 { (case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21841 esac
21842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_try") 2>&5
21844 ac_status=$?
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); }; } &&
21847 { ac_try='test -s conftest$ac_exeext'
21848 { (case "(($ac_try" in
21849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21850 *) ac_try_echo=$ac_try;;
21851 esac
21852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21853 (eval "$ac_try") 2>&5
21854 ac_status=$?
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); }; }; then
21858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21860 # Check for a 64-bit object if we didn't find anything.
21861 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; }
21862 }'`; fi
21863 else
21864 echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21870 rm -f core conftest.err conftest.$ac_objext \
21871 conftest$ac_exeext conftest.$ac_ext
21872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21874 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21875 # Warning - without using the other run time loading flags,
21876 # -berok will link without error, but may produce a broken library.
21877 no_undefined_flag_F77=' ${wl}-bernotok'
21878 allow_undefined_flag_F77=' ${wl}-berok'
21879 # Exported symbols can be pulled into shared objects from archives
21880 whole_archive_flag_spec_F77='$convenience'
21881 archive_cmds_need_lc_F77=yes
21882 # This is similar to how AIX traditionally builds its shared libraries.
21883 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'
21888 amigaos*)
21889 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)'
21890 hardcode_libdir_flag_spec_F77='-L$libdir'
21891 hardcode_minus_L_F77=yes
21892 # see comment about different semantics on the GNU ld section
21893 ld_shlibs_F77=no
21896 bsdi[45]*)
21897 export_dynamic_flag_spec_F77=-rdynamic
21900 cygwin* | mingw* | pw32*)
21901 # When not using gcc, we currently assume that we are using
21902 # Microsoft Visual C++.
21903 # hardcode_libdir_flag_spec is actually meaningless, as there is
21904 # no search path for DLLs.
21905 hardcode_libdir_flag_spec_F77=' '
21906 allow_undefined_flag_F77=unsupported
21907 # Tell ltmain to make .lib files, not .a files.
21908 libext=lib
21909 # Tell ltmain to make .dll files, not .so files.
21910 shrext_cmds=".dll"
21911 # FIXME: Setting linknames here is a bad hack.
21912 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21913 # The linker will automatically build a .lib file if we build a DLL.
21914 old_archive_From_new_cmds_F77='true'
21915 # FIXME: Should let the user specify the lib program.
21916 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21917 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21918 enable_shared_with_static_runtimes_F77=yes
21921 darwin* | rhapsody*)
21922 case $host_os in
21923 rhapsody* | darwin1.[012])
21924 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21926 *) # Darwin 1.3 on
21927 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21928 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21929 else
21930 case ${MACOSX_DEPLOYMENT_TARGET} in
21931 10.[012])
21932 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21934 10.*)
21935 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21937 esac
21940 esac
21941 archive_cmds_need_lc_F77=no
21942 hardcode_direct_F77=no
21943 hardcode_automatic_F77=yes
21944 hardcode_shlibpath_var_F77=unsupported
21945 whole_archive_flag_spec_F77=''
21946 link_all_deplibs_F77=yes
21947 if test "$GCC" = yes ; then
21948 output_verbose_link_cmd='echo'
21949 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21950 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21951 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21952 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}'
21953 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}'
21954 else
21955 case $cc_basename in
21956 xlc*)
21957 output_verbose_link_cmd='echo'
21958 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21959 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21960 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21961 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}'
21962 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}'
21965 ld_shlibs_F77=no
21967 esac
21971 dgux*)
21972 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21973 hardcode_libdir_flag_spec_F77='-L$libdir'
21974 hardcode_shlibpath_var_F77=no
21977 freebsd1*)
21978 ld_shlibs_F77=no
21981 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21982 # support. Future versions do this automatically, but an explicit c++rt0.o
21983 # does not break anything, and helps significantly (at the cost of a little
21984 # extra space).
21985 freebsd2.2*)
21986 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21987 hardcode_libdir_flag_spec_F77='-R$libdir'
21988 hardcode_direct_F77=yes
21989 hardcode_shlibpath_var_F77=no
21992 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21993 freebsd2*)
21994 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21995 hardcode_direct_F77=yes
21996 hardcode_minus_L_F77=yes
21997 hardcode_shlibpath_var_F77=no
22000 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22001 freebsd* | kfreebsd*-gnu | dragonfly*)
22002 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22003 hardcode_libdir_flag_spec_F77='-R$libdir'
22004 hardcode_direct_F77=yes
22005 hardcode_shlibpath_var_F77=no
22008 hpux9*)
22009 if test "$GCC" = yes; then
22010 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'
22011 else
22012 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'
22014 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22015 hardcode_libdir_separator_F77=:
22016 hardcode_direct_F77=yes
22018 # hardcode_minus_L: Not really in the search PATH,
22019 # but as the default location of the library.
22020 hardcode_minus_L_F77=yes
22021 export_dynamic_flag_spec_F77='${wl}-E'
22024 hpux10*)
22025 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22026 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22027 else
22028 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22030 if test "$with_gnu_ld" = no; then
22031 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22032 hardcode_libdir_separator_F77=:
22034 hardcode_direct_F77=yes
22035 export_dynamic_flag_spec_F77='${wl}-E'
22037 # hardcode_minus_L: Not really in the search PATH,
22038 # but as the default location of the library.
22039 hardcode_minus_L_F77=yes
22043 hpux11*)
22044 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22045 case $host_cpu in
22046 hppa*64*)
22047 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22049 ia64*)
22050 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22053 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22055 esac
22056 else
22057 case $host_cpu in
22058 hppa*64*)
22059 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22061 ia64*)
22062 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22065 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22067 esac
22069 if test "$with_gnu_ld" = no; then
22070 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22071 hardcode_libdir_separator_F77=:
22073 case $host_cpu in
22074 hppa*64*|ia64*)
22075 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22076 hardcode_direct_F77=no
22077 hardcode_shlibpath_var_F77=no
22080 hardcode_direct_F77=yes
22081 export_dynamic_flag_spec_F77='${wl}-E'
22083 # hardcode_minus_L: Not really in the search PATH,
22084 # but as the default location of the library.
22085 hardcode_minus_L_F77=yes
22087 esac
22091 irix5* | irix6* | nonstopux*)
22092 if test "$GCC" = yes; then
22093 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'
22094 else
22095 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'
22096 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22098 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22099 hardcode_libdir_separator_F77=:
22100 link_all_deplibs_F77=yes
22103 netbsd*)
22104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22105 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22106 else
22107 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22109 hardcode_libdir_flag_spec_F77='-R$libdir'
22110 hardcode_direct_F77=yes
22111 hardcode_shlibpath_var_F77=no
22114 newsos6)
22115 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22116 hardcode_direct_F77=yes
22117 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22118 hardcode_libdir_separator_F77=:
22119 hardcode_shlibpath_var_F77=no
22122 openbsd*)
22123 hardcode_direct_F77=yes
22124 hardcode_shlibpath_var_F77=no
22125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22126 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22127 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22128 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22129 export_dynamic_flag_spec_F77='${wl}-E'
22130 else
22131 case $host_os in
22132 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22133 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22134 hardcode_libdir_flag_spec_F77='-R$libdir'
22137 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22138 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22140 esac
22144 os2*)
22145 hardcode_libdir_flag_spec_F77='-L$libdir'
22146 hardcode_minus_L_F77=yes
22147 allow_undefined_flag_F77=unsupported
22148 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'
22149 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22152 osf3*)
22153 if test "$GCC" = yes; then
22154 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22155 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'
22156 else
22157 allow_undefined_flag_F77=' -expect_unresolved \*'
22158 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'
22160 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22161 hardcode_libdir_separator_F77=:
22164 osf4* | osf5*) # as osf3* with the addition of -msym flag
22165 if test "$GCC" = yes; then
22166 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22167 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'
22168 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22169 else
22170 allow_undefined_flag_F77=' -expect_unresolved \*'
22171 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'
22172 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~
22173 $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'
22175 # Both c and cxx compiler support -rpath directly
22176 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22178 hardcode_libdir_separator_F77=:
22181 solaris*)
22182 no_undefined_flag_F77=' -z text'
22183 if test "$GCC" = yes; then
22184 wlarc='${wl}'
22185 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22186 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22187 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22188 else
22189 wlarc=''
22190 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22192 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22194 hardcode_libdir_flag_spec_F77='-R$libdir'
22195 hardcode_shlibpath_var_F77=no
22196 case $host_os in
22197 solaris2.[0-5] | solaris2.[0-5].*) ;;
22199 # The compiler driver will combine linker options so we
22200 # cannot just pass the convience library names through
22201 # without $wl, iff we do not link with $LD.
22202 # Luckily, gcc supports the same syntax we need for Sun Studio.
22203 # Supported since Solaris 2.6 (maybe 2.5.1?)
22204 case $wlarc in
22206 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22208 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' ;;
22209 esac ;;
22210 esac
22211 link_all_deplibs_F77=yes
22214 sunos4*)
22215 if test "x$host_vendor" = xsequent; then
22216 # Use $CC to link under sequent, because it throws in some extra .o
22217 # files that make .init and .fini sections work.
22218 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22219 else
22220 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22222 hardcode_libdir_flag_spec_F77='-L$libdir'
22223 hardcode_direct_F77=yes
22224 hardcode_minus_L_F77=yes
22225 hardcode_shlibpath_var_F77=no
22228 sysv4)
22229 case $host_vendor in
22230 sni)
22231 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22232 hardcode_direct_F77=yes # is this really true???
22234 siemens)
22235 ## LD is ld it makes a PLAMLIB
22236 ## CC just makes a GrossModule.
22237 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22238 reload_cmds_F77='$CC -r -o $output$reload_objs'
22239 hardcode_direct_F77=no
22241 motorola)
22242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22243 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22245 esac
22246 runpath_var='LD_RUN_PATH'
22247 hardcode_shlibpath_var_F77=no
22250 sysv4.3*)
22251 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22252 hardcode_shlibpath_var_F77=no
22253 export_dynamic_flag_spec_F77='-Bexport'
22256 sysv4*MP*)
22257 if test -d /usr/nec; then
22258 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22259 hardcode_shlibpath_var_F77=no
22260 runpath_var=LD_RUN_PATH
22261 hardcode_runpath_var=yes
22262 ld_shlibs_F77=yes
22266 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22267 no_undefined_flag_F77='${wl}-z,text'
22268 archive_cmds_need_lc_F77=no
22269 hardcode_shlibpath_var_F77=no
22270 runpath_var='LD_RUN_PATH'
22272 if test "$GCC" = yes; then
22273 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22274 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22275 else
22276 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22277 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22281 sysv5* | sco3.2v5* | sco5v6*)
22282 # Note: We can NOT use -z defs as we might desire, because we do not
22283 # link with -lc, and that would cause any symbols used from libc to
22284 # always be unresolved, which means just about no library would
22285 # ever link correctly. If we're not using GNU ld we use -z text
22286 # though, which does catch some bad symbols but isn't as heavy-handed
22287 # as -z defs.
22288 no_undefined_flag_F77='${wl}-z,text'
22289 allow_undefined_flag_F77='${wl}-z,nodefs'
22290 archive_cmds_need_lc_F77=no
22291 hardcode_shlibpath_var_F77=no
22292 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22293 hardcode_libdir_separator_F77=':'
22294 link_all_deplibs_F77=yes
22295 export_dynamic_flag_spec_F77='${wl}-Bexport'
22296 runpath_var='LD_RUN_PATH'
22298 if test "$GCC" = yes; then
22299 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22300 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22301 else
22302 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22303 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22307 uts4*)
22308 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22309 hardcode_libdir_flag_spec_F77='-L$libdir'
22310 hardcode_shlibpath_var_F77=no
22314 ld_shlibs_F77=no
22316 esac
22319 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22320 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22321 test "$ld_shlibs_F77" = no && can_build_shared=no
22324 # Do we need to explicitly link libc?
22326 case "x$archive_cmds_need_lc_F77" in
22327 x|xyes)
22328 # Assume -lc should be added
22329 archive_cmds_need_lc_F77=yes
22331 if test "$enable_shared" = yes && test "$GCC" = yes; then
22332 case $archive_cmds_F77 in
22333 *'~'*)
22334 # FIXME: we may have to deal with multi-command sequences.
22336 '$CC '*)
22337 # Test whether the compiler implicitly links with -lc since on some
22338 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22339 # to ld, don't add -lc before -lgcc.
22340 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22341 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22342 $rm conftest*
22343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22346 (eval $ac_compile) 2>&5
22347 ac_status=$?
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } 2>conftest.err; then
22350 soname=conftest
22351 lib=conftest
22352 libobjs=conftest.$ac_objext
22353 deplibs=
22354 wl=$lt_prog_compiler_wl_F77
22355 pic_flag=$lt_prog_compiler_pic_F77
22356 compiler_flags=-v
22357 linker_flags=-v
22358 verstring=
22359 output_objdir=.
22360 libname=conftest
22361 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22362 allow_undefined_flag_F77=
22363 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22364 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22365 ac_status=$?
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); }
22368 then
22369 archive_cmds_need_lc_F77=no
22370 else
22371 archive_cmds_need_lc_F77=yes
22373 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22374 else
22375 cat conftest.err 1>&5
22377 $rm conftest*
22378 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22379 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22381 esac
22384 esac
22386 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22387 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22388 library_names_spec=
22389 libname_spec='lib$name'
22390 soname_spec=
22391 shrext_cmds=".so"
22392 postinstall_cmds=
22393 postuninstall_cmds=
22394 finish_cmds=
22395 finish_eval=
22396 shlibpath_var=
22397 shlibpath_overrides_runpath=unknown
22398 version_type=none
22399 dynamic_linker="$host_os ld.so"
22400 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22401 if test "$GCC" = yes; then
22402 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22403 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22404 # if the path contains ";" then we assume it to be the separator
22405 # otherwise default to the standard path separator (i.e. ":") - it is
22406 # assumed that no part of a normal pathname contains ";" but that should
22407 # okay in the real world where ";" in dirpaths is itself problematic.
22408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22409 else
22410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22412 else
22413 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22415 need_lib_prefix=unknown
22416 hardcode_into_libs=no
22418 # when you set need_version to no, make sure it does not cause -set_version
22419 # flags to be left without arguments
22420 need_version=unknown
22422 case $host_os in
22423 aix3*)
22424 version_type=linux
22425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22426 shlibpath_var=LIBPATH
22428 # AIX 3 has no versioning support, so we append a major version to the name.
22429 soname_spec='${libname}${release}${shared_ext}$major'
22432 aix4* | aix5*)
22433 version_type=linux
22434 need_lib_prefix=no
22435 need_version=no
22436 hardcode_into_libs=yes
22437 if test "$host_cpu" = ia64; then
22438 # AIX 5 supports IA64
22439 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22440 shlibpath_var=LD_LIBRARY_PATH
22441 else
22442 # With GCC up to 2.95.x, collect2 would create an import file
22443 # for dependence libraries. The import file would start with
22444 # the line `#! .'. This would cause the generated library to
22445 # depend on `.', always an invalid library. This was fixed in
22446 # development snapshots of GCC prior to 3.0.
22447 case $host_os in
22448 aix4 | aix4.[01] | aix4.[01].*)
22449 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22450 echo ' yes '
22451 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22453 else
22454 can_build_shared=no
22457 esac
22458 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22459 # soname into executable. Probably we can add versioning support to
22460 # collect2, so additional links can be useful in future.
22461 if test "$aix_use_runtimelinking" = yes; then
22462 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22463 # instead of lib<name>.a to let people know that these are not
22464 # typical AIX shared libraries.
22465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22466 else
22467 # We preserve .a as extension for shared libraries through AIX4.2
22468 # and later when we are not doing run time linking.
22469 library_names_spec='${libname}${release}.a $libname.a'
22470 soname_spec='${libname}${release}${shared_ext}$major'
22472 shlibpath_var=LIBPATH
22476 amigaos*)
22477 library_names_spec='$libname.ixlibrary $libname.a'
22478 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22479 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'
22482 beos*)
22483 library_names_spec='${libname}${shared_ext}'
22484 dynamic_linker="$host_os ld.so"
22485 shlibpath_var=LIBRARY_PATH
22488 bsdi[45]*)
22489 version_type=linux
22490 need_version=no
22491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22492 soname_spec='${libname}${release}${shared_ext}$major'
22493 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22494 shlibpath_var=LD_LIBRARY_PATH
22495 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22496 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22497 # the default ld.so.conf also contains /usr/contrib/lib and
22498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22499 # libtool to hard-code these into programs
22502 cygwin* | mingw* | pw32*)
22503 version_type=windows
22504 shrext_cmds=".dll"
22505 need_version=no
22506 need_lib_prefix=no
22508 case $GCC,$host_os in
22509 yes,cygwin* | yes,mingw* | yes,pw32*)
22510 library_names_spec='$libname.dll.a'
22511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22512 postinstall_cmds='base_file=`basename \${file}`~
22513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22514 dldir=$destdir/`dirname \$dlpath`~
22515 test -d \$dldir || mkdir -p \$dldir~
22516 $install_prog $dir/$dlname \$dldir/$dlname~
22517 chmod a+x \$dldir/$dlname'
22518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22519 dlpath=$dir/\$dldll~
22520 $rm \$dlpath'
22521 shlibpath_overrides_runpath=yes
22523 case $host_os in
22524 cygwin*)
22525 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22526 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22527 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22529 mingw*)
22530 # MinGW DLLs use traditional 'lib' prefix
22531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22532 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22533 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22534 # It is most probably a Windows format PATH printed by
22535 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22536 # path with ; separators, and with drive letters. We can handle the
22537 # drive letters (cygwin fileutils understands them), so leave them,
22538 # especially as we might pass files found there to a mingw objdump,
22539 # which wouldn't understand a cygwinified path. Ahh.
22540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22541 else
22542 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22545 pw32*)
22546 # pw32 DLLs use 'pw' prefix rather than 'lib'
22547 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22549 esac
22553 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22555 esac
22556 dynamic_linker='Win32 ld.exe'
22557 # FIXME: first we should search . and the directory the executable is in
22558 shlibpath_var=PATH
22561 darwin* | rhapsody*)
22562 dynamic_linker="$host_os dyld"
22563 version_type=darwin
22564 need_lib_prefix=no
22565 need_version=no
22566 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22567 soname_spec='${libname}${release}${major}$shared_ext'
22568 shlibpath_overrides_runpath=yes
22569 shlibpath_var=DYLD_LIBRARY_PATH
22570 shrext_cmds='.dylib'
22571 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22572 if test "$GCC" = yes; then
22573 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"`
22574 else
22575 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22577 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22580 dgux*)
22581 version_type=linux
22582 need_lib_prefix=no
22583 need_version=no
22584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22585 soname_spec='${libname}${release}${shared_ext}$major'
22586 shlibpath_var=LD_LIBRARY_PATH
22589 freebsd1*)
22590 dynamic_linker=no
22593 kfreebsd*-gnu)
22594 version_type=linux
22595 need_lib_prefix=no
22596 need_version=no
22597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22598 soname_spec='${libname}${release}${shared_ext}$major'
22599 shlibpath_var=LD_LIBRARY_PATH
22600 shlibpath_overrides_runpath=no
22601 hardcode_into_libs=yes
22602 dynamic_linker='GNU ld.so'
22605 freebsd* | dragonfly*)
22606 # DragonFly does not have aout. When/if they implement a new
22607 # versioning mechanism, adjust this.
22608 if test -x /usr/bin/objformat; then
22609 objformat=`/usr/bin/objformat`
22610 else
22611 case $host_os in
22612 freebsd[123]*) objformat=aout ;;
22613 *) objformat=elf ;;
22614 esac
22616 version_type=freebsd-$objformat
22617 case $version_type in
22618 freebsd-elf*)
22619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22620 need_version=no
22621 need_lib_prefix=no
22623 freebsd-*)
22624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22625 need_version=yes
22627 esac
22628 shlibpath_var=LD_LIBRARY_PATH
22629 case $host_os in
22630 freebsd2*)
22631 shlibpath_overrides_runpath=yes
22633 freebsd3.[01]* | freebsdelf3.[01]*)
22634 shlibpath_overrides_runpath=yes
22635 hardcode_into_libs=yes
22637 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22638 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22639 shlibpath_overrides_runpath=no
22640 hardcode_into_libs=yes
22642 freebsd*) # from 4.6 on
22643 shlibpath_overrides_runpath=yes
22644 hardcode_into_libs=yes
22646 esac
22649 gnu*)
22650 version_type=linux
22651 need_lib_prefix=no
22652 need_version=no
22653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22654 soname_spec='${libname}${release}${shared_ext}$major'
22655 shlibpath_var=LD_LIBRARY_PATH
22656 hardcode_into_libs=yes
22659 hpux9* | hpux10* | hpux11*)
22660 # Give a soname corresponding to the major version so that dld.sl refuses to
22661 # link against other versions.
22662 version_type=sunos
22663 need_lib_prefix=no
22664 need_version=no
22665 case $host_cpu in
22666 ia64*)
22667 shrext_cmds='.so'
22668 hardcode_into_libs=yes
22669 dynamic_linker="$host_os dld.so"
22670 shlibpath_var=LD_LIBRARY_PATH
22671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22673 soname_spec='${libname}${release}${shared_ext}$major'
22674 if test "X$HPUX_IA64_MODE" = X32; then
22675 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22676 else
22677 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22681 hppa*64*)
22682 shrext_cmds='.sl'
22683 hardcode_into_libs=yes
22684 dynamic_linker="$host_os dld.sl"
22685 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22688 soname_spec='${libname}${release}${shared_ext}$major'
22689 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22693 shrext_cmds='.sl'
22694 dynamic_linker="$host_os dld.sl"
22695 shlibpath_var=SHLIB_PATH
22696 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22698 soname_spec='${libname}${release}${shared_ext}$major'
22700 esac
22701 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22702 postinstall_cmds='chmod 555 $lib'
22705 interix3*)
22706 version_type=linux
22707 need_lib_prefix=no
22708 need_version=no
22709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22710 soname_spec='${libname}${release}${shared_ext}$major'
22711 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22712 shlibpath_var=LD_LIBRARY_PATH
22713 shlibpath_overrides_runpath=no
22714 hardcode_into_libs=yes
22717 irix5* | irix6* | nonstopux*)
22718 case $host_os in
22719 nonstopux*) version_type=nonstopux ;;
22721 if test "$lt_cv_prog_gnu_ld" = yes; then
22722 version_type=linux
22723 else
22724 version_type=irix
22725 fi ;;
22726 esac
22727 need_lib_prefix=no
22728 need_version=no
22729 soname_spec='${libname}${release}${shared_ext}$major'
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22731 case $host_os in
22732 irix5* | nonstopux*)
22733 libsuff= shlibsuff=
22736 case $LD in # libtool.m4 will add one of these switches to LD
22737 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22738 libsuff= shlibsuff= libmagic=32-bit;;
22739 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22740 libsuff=32 shlibsuff=N32 libmagic=N32;;
22741 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22742 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22743 *) libsuff= shlibsuff= libmagic=never-match;;
22744 esac
22746 esac
22747 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22748 shlibpath_overrides_runpath=no
22749 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22750 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22751 hardcode_into_libs=yes
22754 # No shared lib support for Linux oldld, aout, or coff.
22755 linux*oldld* | linux*aout* | linux*coff*)
22756 dynamic_linker=no
22759 # This must be Linux ELF.
22760 linux*)
22761 version_type=linux
22762 need_lib_prefix=no
22763 need_version=no
22764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22765 soname_spec='${libname}${release}${shared_ext}$major'
22766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22767 shlibpath_var=LD_LIBRARY_PATH
22768 shlibpath_overrides_runpath=no
22769 # This implies no fast_install, which is unacceptable.
22770 # Some rework will be needed to allow for fast_install
22771 # before this can be enabled.
22772 hardcode_into_libs=yes
22774 # Append ld.so.conf contents to the search path
22775 if test -f /etc/ld.so.conf; then
22776 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' ' '`
22777 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22780 # We used to test for /lib/ld.so.1 and disable shared libraries on
22781 # powerpc, because MkLinux only supported shared libraries with the
22782 # GNU dynamic linker. Since this was broken with cross compilers,
22783 # most powerpc-linux boxes support dynamic linking these days and
22784 # people can always --disable-shared, the test was removed, and we
22785 # assume the GNU/Linux dynamic linker is in use.
22786 dynamic_linker='GNU/Linux ld.so'
22789 knetbsd*-gnu)
22790 version_type=linux
22791 need_lib_prefix=no
22792 need_version=no
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22794 soname_spec='${libname}${release}${shared_ext}$major'
22795 shlibpath_var=LD_LIBRARY_PATH
22796 shlibpath_overrides_runpath=no
22797 hardcode_into_libs=yes
22798 dynamic_linker='GNU ld.so'
22801 netbsd*)
22802 version_type=sunos
22803 need_lib_prefix=no
22804 need_version=no
22805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22808 dynamic_linker='NetBSD (a.out) ld.so'
22809 else
22810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22811 soname_spec='${libname}${release}${shared_ext}$major'
22812 dynamic_linker='NetBSD ld.elf_so'
22814 shlibpath_var=LD_LIBRARY_PATH
22815 shlibpath_overrides_runpath=yes
22816 hardcode_into_libs=yes
22819 newsos6)
22820 version_type=linux
22821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22822 shlibpath_var=LD_LIBRARY_PATH
22823 shlibpath_overrides_runpath=yes
22826 nto-qnx*)
22827 version_type=linux
22828 need_lib_prefix=no
22829 need_version=no
22830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22831 soname_spec='${libname}${release}${shared_ext}$major'
22832 shlibpath_var=LD_LIBRARY_PATH
22833 shlibpath_overrides_runpath=yes
22836 openbsd*)
22837 version_type=sunos
22838 sys_lib_dlsearch_path_spec="/usr/lib"
22839 need_lib_prefix=no
22840 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22841 case $host_os in
22842 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22843 *) need_version=no ;;
22844 esac
22845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22847 shlibpath_var=LD_LIBRARY_PATH
22848 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22849 case $host_os in
22850 openbsd2.[89] | openbsd2.[89].*)
22851 shlibpath_overrides_runpath=no
22854 shlibpath_overrides_runpath=yes
22856 esac
22857 else
22858 shlibpath_overrides_runpath=yes
22862 os2*)
22863 libname_spec='$name'
22864 shrext_cmds=".dll"
22865 need_lib_prefix=no
22866 library_names_spec='$libname${shared_ext} $libname.a'
22867 dynamic_linker='OS/2 ld.exe'
22868 shlibpath_var=LIBPATH
22871 osf3* | osf4* | osf5*)
22872 version_type=osf
22873 need_lib_prefix=no
22874 need_version=no
22875 soname_spec='${libname}${release}${shared_ext}$major'
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22877 shlibpath_var=LD_LIBRARY_PATH
22878 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22879 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22882 solaris*)
22883 version_type=linux
22884 need_lib_prefix=no
22885 need_version=no
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22887 soname_spec='${libname}${release}${shared_ext}$major'
22888 shlibpath_var=LD_LIBRARY_PATH
22889 shlibpath_overrides_runpath=yes
22890 hardcode_into_libs=yes
22891 # ldd complains unless libraries are executable
22892 postinstall_cmds='chmod +x $lib'
22895 sunos4*)
22896 version_type=sunos
22897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22898 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22899 shlibpath_var=LD_LIBRARY_PATH
22900 shlibpath_overrides_runpath=yes
22901 if test "$with_gnu_ld" = yes; then
22902 need_lib_prefix=no
22904 need_version=yes
22907 sysv4 | sysv4.3*)
22908 version_type=linux
22909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22910 soname_spec='${libname}${release}${shared_ext}$major'
22911 shlibpath_var=LD_LIBRARY_PATH
22912 case $host_vendor in
22913 sni)
22914 shlibpath_overrides_runpath=no
22915 need_lib_prefix=no
22916 export_dynamic_flag_spec='${wl}-Blargedynsym'
22917 runpath_var=LD_RUN_PATH
22919 siemens)
22920 need_lib_prefix=no
22922 motorola)
22923 need_lib_prefix=no
22924 need_version=no
22925 shlibpath_overrides_runpath=no
22926 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22928 esac
22931 sysv4*MP*)
22932 if test -d /usr/nec ;then
22933 version_type=linux
22934 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22935 soname_spec='$libname${shared_ext}.$major'
22936 shlibpath_var=LD_LIBRARY_PATH
22940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22941 version_type=freebsd-elf
22942 need_lib_prefix=no
22943 need_version=no
22944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22945 soname_spec='${libname}${release}${shared_ext}$major'
22946 shlibpath_var=LD_LIBRARY_PATH
22947 hardcode_into_libs=yes
22948 if test "$with_gnu_ld" = yes; then
22949 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22950 shlibpath_overrides_runpath=no
22951 else
22952 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22953 shlibpath_overrides_runpath=yes
22954 case $host_os in
22955 sco3.2v5*)
22956 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22958 esac
22960 sys_lib_dlsearch_path_spec='/usr/lib'
22963 uts4*)
22964 version_type=linux
22965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22966 soname_spec='${libname}${release}${shared_ext}$major'
22967 shlibpath_var=LD_LIBRARY_PATH
22971 dynamic_linker=no
22973 esac
22974 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22975 echo "${ECHO_T}$dynamic_linker" >&6; }
22976 test "$dynamic_linker" = no && can_build_shared=no
22978 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22979 if test "$GCC" = yes; then
22980 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22983 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22984 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22985 hardcode_action_F77=
22986 if test -n "$hardcode_libdir_flag_spec_F77" || \
22987 test -n "$runpath_var_F77" || \
22988 test "X$hardcode_automatic_F77" = "Xyes" ; then
22990 # We can hardcode non-existant directories.
22991 if test "$hardcode_direct_F77" != no &&
22992 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22993 # have to relink, otherwise we might link with an installed library
22994 # when we should be linking with a yet-to-be-installed one
22995 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22996 test "$hardcode_minus_L_F77" != no; then
22997 # Linking always hardcodes the temporary library directory.
22998 hardcode_action_F77=relink
22999 else
23000 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23001 hardcode_action_F77=immediate
23003 else
23004 # We cannot hardcode anything, or else we can only hardcode existing
23005 # directories.
23006 hardcode_action_F77=unsupported
23008 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23009 echo "${ECHO_T}$hardcode_action_F77" >&6; }
23011 if test "$hardcode_action_F77" = relink; then
23012 # Fast installation is not supported
23013 enable_fast_install=no
23014 elif test "$shlibpath_overrides_runpath" = yes ||
23015 test "$enable_shared" = no; then
23016 # Fast installation is not necessary
23017 enable_fast_install=needless
23021 # The else clause should only fire when bootstrapping the
23022 # libtool distribution, otherwise you forgot to ship ltmain.sh
23023 # with your package, and you will get complaints that there are
23024 # no rules to generate ltmain.sh.
23025 if test -f "$ltmain"; then
23026 # See if we are running on zsh, and set the options which allow our commands through
23027 # without removal of \ escapes.
23028 if test -n "${ZSH_VERSION+set}" ; then
23029 setopt NO_GLOB_SUBST
23031 # Now quote all the things that may contain metacharacters while being
23032 # careful not to overquote the AC_SUBSTed values. We take copies of the
23033 # variables and quote the copies for generation of the libtool script.
23034 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23035 SED SHELL STRIP \
23036 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23037 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23038 deplibs_check_method reload_flag reload_cmds need_locks \
23039 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23040 lt_cv_sys_global_symbol_to_c_name_address \
23041 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23042 old_postinstall_cmds old_postuninstall_cmds \
23043 compiler_F77 \
23044 CC_F77 \
23045 LD_F77 \
23046 lt_prog_compiler_wl_F77 \
23047 lt_prog_compiler_pic_F77 \
23048 lt_prog_compiler_static_F77 \
23049 lt_prog_compiler_no_builtin_flag_F77 \
23050 export_dynamic_flag_spec_F77 \
23051 thread_safe_flag_spec_F77 \
23052 whole_archive_flag_spec_F77 \
23053 enable_shared_with_static_runtimes_F77 \
23054 old_archive_cmds_F77 \
23055 old_archive_from_new_cmds_F77 \
23056 predep_objects_F77 \
23057 postdep_objects_F77 \
23058 predeps_F77 \
23059 postdeps_F77 \
23060 compiler_lib_search_path_F77 \
23061 archive_cmds_F77 \
23062 archive_expsym_cmds_F77 \
23063 postinstall_cmds_F77 \
23064 postuninstall_cmds_F77 \
23065 old_archive_from_expsyms_cmds_F77 \
23066 allow_undefined_flag_F77 \
23067 no_undefined_flag_F77 \
23068 export_symbols_cmds_F77 \
23069 hardcode_libdir_flag_spec_F77 \
23070 hardcode_libdir_flag_spec_ld_F77 \
23071 hardcode_libdir_separator_F77 \
23072 hardcode_automatic_F77 \
23073 module_cmds_F77 \
23074 module_expsym_cmds_F77 \
23075 lt_cv_prog_compiler_c_o_F77 \
23076 exclude_expsyms_F77 \
23077 include_expsyms_F77; do
23079 case $var in
23080 old_archive_cmds_F77 | \
23081 old_archive_from_new_cmds_F77 | \
23082 archive_cmds_F77 | \
23083 archive_expsym_cmds_F77 | \
23084 module_cmds_F77 | \
23085 module_expsym_cmds_F77 | \
23086 old_archive_from_expsyms_cmds_F77 | \
23087 export_symbols_cmds_F77 | \
23088 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23089 postinstall_cmds | postuninstall_cmds | \
23090 old_postinstall_cmds | old_postuninstall_cmds | \
23091 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23092 # Double-quote double-evaled strings.
23093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23098 esac
23099 done
23101 case $lt_echo in
23102 *'\$0 --fallback-echo"')
23103 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23105 esac
23107 cfgfile="$ofile"
23109 cat <<__EOF__ >> "$cfgfile"
23110 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23112 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23114 # Shell to use when invoking shell scripts.
23115 SHELL=$lt_SHELL
23117 # Whether or not to build shared libraries.
23118 build_libtool_libs=$enable_shared
23120 # Whether or not to build static libraries.
23121 build_old_libs=$enable_static
23123 # Whether or not to add -lc for building shared libraries.
23124 build_libtool_need_lc=$archive_cmds_need_lc_F77
23126 # Whether or not to disallow shared libs when runtime libs are static
23127 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23129 # Whether or not to optimize for fast installation.
23130 fast_install=$enable_fast_install
23132 # The host system.
23133 host_alias=$host_alias
23134 host=$host
23135 host_os=$host_os
23137 # The build system.
23138 build_alias=$build_alias
23139 build=$build
23140 build_os=$build_os
23142 # An echo program that does not interpret backslashes.
23143 echo=$lt_echo
23145 # The archiver.
23146 AR=$lt_AR
23147 AR_FLAGS=$lt_AR_FLAGS
23149 # A C compiler.
23150 LTCC=$lt_LTCC
23152 # LTCC compiler flags.
23153 LTCFLAGS=$lt_LTCFLAGS
23155 # A language-specific compiler.
23156 CC=$lt_compiler_F77
23158 # Is the compiler the GNU C compiler?
23159 with_gcc=$GCC_F77
23161 # An ERE matcher.
23162 EGREP=$lt_EGREP
23164 # The linker used to build libraries.
23165 LD=$lt_LD_F77
23167 # Whether we need hard or soft links.
23168 LN_S=$lt_LN_S
23170 # A BSD-compatible nm program.
23171 NM=$lt_NM
23173 # A symbol stripping program
23174 STRIP=$lt_STRIP
23176 # Used to examine libraries when file_magic_cmd begins "file"
23177 MAGIC_CMD=$MAGIC_CMD
23179 # Used on cygwin: DLL creation program.
23180 DLLTOOL="$DLLTOOL"
23182 # Used on cygwin: object dumper.
23183 OBJDUMP="$OBJDUMP"
23185 # Used on cygwin: assembler.
23186 AS="$AS"
23188 # The name of the directory that contains temporary libtool files.
23189 objdir=$objdir
23191 # How to create reloadable object files.
23192 reload_flag=$lt_reload_flag
23193 reload_cmds=$lt_reload_cmds
23195 # How to pass a linker flag through the compiler.
23196 wl=$lt_lt_prog_compiler_wl_F77
23198 # Object file suffix (normally "o").
23199 objext="$ac_objext"
23201 # Old archive suffix (normally "a").
23202 libext="$libext"
23204 # Shared library suffix (normally ".so").
23205 shrext_cmds='$shrext_cmds'
23207 # Executable file suffix (normally "").
23208 exeext="$exeext"
23210 # Additional compiler flags for building library objects.
23211 pic_flag=$lt_lt_prog_compiler_pic_F77
23212 pic_mode=$pic_mode
23214 # What is the maximum length of a command?
23215 max_cmd_len=$lt_cv_sys_max_cmd_len
23217 # Does compiler simultaneously support -c and -o options?
23218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23220 # Must we lock files when doing compilation?
23221 need_locks=$lt_need_locks
23223 # Do we need the lib prefix for modules?
23224 need_lib_prefix=$need_lib_prefix
23226 # Do we need a version for libraries?
23227 need_version=$need_version
23229 # Whether dlopen is supported.
23230 dlopen_support=$enable_dlopen
23232 # Whether dlopen of programs is supported.
23233 dlopen_self=$enable_dlopen_self
23235 # Whether dlopen of statically linked programs is supported.
23236 dlopen_self_static=$enable_dlopen_self_static
23238 # Compiler flag to prevent dynamic linking.
23239 link_static_flag=$lt_lt_prog_compiler_static_F77
23241 # Compiler flag to turn off builtin functions.
23242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23244 # Compiler flag to allow reflexive dlopens.
23245 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23247 # Compiler flag to generate shared objects directly from archives.
23248 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23250 # Compiler flag to generate thread-safe objects.
23251 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23253 # Library versioning type.
23254 version_type=$version_type
23256 # Format of library name prefix.
23257 libname_spec=$lt_libname_spec
23259 # List of archive names. First name is the real one, the rest are links.
23260 # The last name is the one that the linker finds with -lNAME.
23261 library_names_spec=$lt_library_names_spec
23263 # The coded name of the library, if different from the real name.
23264 soname_spec=$lt_soname_spec
23266 # Commands used to build and install an old-style archive.
23267 RANLIB=$lt_RANLIB
23268 old_archive_cmds=$lt_old_archive_cmds_F77
23269 old_postinstall_cmds=$lt_old_postinstall_cmds
23270 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23272 # Create an old-style archive from a shared archive.
23273 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23275 # Create a temporary old-style archive to link instead of a shared archive.
23276 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23278 # Commands used to build and install a shared archive.
23279 archive_cmds=$lt_archive_cmds_F77
23280 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23281 postinstall_cmds=$lt_postinstall_cmds
23282 postuninstall_cmds=$lt_postuninstall_cmds
23284 # Commands used to build a loadable module (assumed same as above if empty)
23285 module_cmds=$lt_module_cmds_F77
23286 module_expsym_cmds=$lt_module_expsym_cmds_F77
23288 # Commands to strip libraries.
23289 old_striplib=$lt_old_striplib
23290 striplib=$lt_striplib
23292 # Dependencies to place before the objects being linked to create a
23293 # shared library.
23294 predep_objects=$lt_predep_objects_F77
23296 # Dependencies to place after the objects being linked to create a
23297 # shared library.
23298 postdep_objects=$lt_postdep_objects_F77
23300 # Dependencies to place before the objects being linked to create a
23301 # shared library.
23302 predeps=$lt_predeps_F77
23304 # Dependencies to place after the objects being linked to create a
23305 # shared library.
23306 postdeps=$lt_postdeps_F77
23308 # The library search path used internally by the compiler when linking
23309 # a shared library.
23310 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23312 # Method to check whether dependent libraries are shared objects.
23313 deplibs_check_method=$lt_deplibs_check_method
23315 # Command to use when deplibs_check_method == file_magic.
23316 file_magic_cmd=$lt_file_magic_cmd
23318 # Flag that allows shared libraries with undefined symbols to be built.
23319 allow_undefined_flag=$lt_allow_undefined_flag_F77
23321 # Flag that forces no undefined symbols.
23322 no_undefined_flag=$lt_no_undefined_flag_F77
23324 # Commands used to finish a libtool library installation in a directory.
23325 finish_cmds=$lt_finish_cmds
23327 # Same as above, but a single script fragment to be evaled but not shown.
23328 finish_eval=$lt_finish_eval
23330 # Take the output of nm and produce a listing of raw symbols and C names.
23331 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23333 # Transform the output of nm in a proper C declaration
23334 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23336 # Transform the output of nm in a C name address pair
23337 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23339 # This is the shared library runtime path variable.
23340 runpath_var=$runpath_var
23342 # This is the shared library path variable.
23343 shlibpath_var=$shlibpath_var
23345 # Is shlibpath searched before the hard-coded library search path?
23346 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23348 # How to hardcode a shared library path into an executable.
23349 hardcode_action=$hardcode_action_F77
23351 # Whether we should hardcode library paths into libraries.
23352 hardcode_into_libs=$hardcode_into_libs
23354 # Flag to hardcode \$libdir into a binary during linking.
23355 # This must work even if \$libdir does not exist.
23356 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23358 # If ld is used when linking, flag to hardcode \$libdir into
23359 # a binary during linking. This must work even if \$libdir does
23360 # not exist.
23361 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23363 # Whether we need a single -rpath flag with a separated argument.
23364 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23366 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23367 # resulting binary.
23368 hardcode_direct=$hardcode_direct_F77
23370 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23371 # resulting binary.
23372 hardcode_minus_L=$hardcode_minus_L_F77
23374 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23375 # the resulting binary.
23376 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23378 # Set to yes if building a shared library automatically hardcodes DIR into the library
23379 # and all subsequent libraries and executables linked against it.
23380 hardcode_automatic=$hardcode_automatic_F77
23382 # Variables whose values should be saved in libtool wrapper scripts and
23383 # restored at relink time.
23384 variables_saved_for_relink="$variables_saved_for_relink"
23386 # Whether libtool must link a program against all its dependency libraries.
23387 link_all_deplibs=$link_all_deplibs_F77
23389 # Compile-time system search path for libraries
23390 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23392 # Run-time system search path for libraries
23393 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23395 # Fix the shell variable \$srcfile for the compiler.
23396 fix_srcfile_path="$fix_srcfile_path_F77"
23398 # Set to yes if exported symbols are required.
23399 always_export_symbols=$always_export_symbols_F77
23401 # The commands to list exported symbols.
23402 export_symbols_cmds=$lt_export_symbols_cmds_F77
23404 # The commands to extract the exported symbol list from a shared archive.
23405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23407 # Symbols that should not be listed in the preloaded symbols.
23408 exclude_expsyms=$lt_exclude_expsyms_F77
23410 # Symbols that must always be exported.
23411 include_expsyms=$lt_include_expsyms_F77
23413 # ### END LIBTOOL TAG CONFIG: $tagname
23415 __EOF__
23418 else
23419 # If there is no Makefile yet, we rely on a make rule to execute
23420 # `config.status --recheck' to rerun these tests and create the
23421 # libtool script then.
23422 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23423 if test -f "$ltmain_in"; then
23424 test -f Makefile && make "$ltmain"
23429 ac_ext=c
23430 ac_cpp='$CPP $CPPFLAGS'
23431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23435 CC="$lt_save_CC"
23437 else
23438 tagname=""
23442 GCJ)
23443 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23444 ac_ext=c
23445 ac_cpp='$CPP $CPPFLAGS'
23446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23451 # Source file extension for Java test sources.
23452 ac_ext=java
23454 # Object file extension for compiled Java test sources.
23455 objext=o
23456 objext_GCJ=$objext
23458 # Code to be used in simple compile tests
23459 lt_simple_compile_test_code="class foo {}\n"
23461 # Code to be used in simple link tests
23462 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
23464 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23466 # If no C compiler was specified, use CC.
23467 LTCC=${LTCC-"$CC"}
23469 # If no C compiler flags were specified, use CFLAGS.
23470 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23472 # Allow CC to be a program name with arguments.
23473 compiler=$CC
23476 # save warnings/boilerplate of simple test code
23477 ac_outfile=conftest.$ac_objext
23478 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23479 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23480 _lt_compiler_boilerplate=`cat conftest.err`
23481 $rm conftest*
23483 ac_outfile=conftest.$ac_objext
23484 printf "$lt_simple_link_test_code" >conftest.$ac_ext
23485 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23486 _lt_linker_boilerplate=`cat conftest.err`
23487 $rm conftest*
23490 # Allow CC to be a program name with arguments.
23491 lt_save_CC="$CC"
23492 CC=${GCJ-"gcj"}
23493 compiler=$CC
23494 compiler_GCJ=$CC
23495 for cc_temp in $compiler""; do
23496 case $cc_temp in
23497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23499 \-*) ;;
23500 *) break;;
23501 esac
23502 done
23503 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23506 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23507 archive_cmds_need_lc_GCJ=no
23509 old_archive_cmds_GCJ=$old_archive_cmds
23512 lt_prog_compiler_no_builtin_flag_GCJ=
23514 if test "$GCC" = yes; then
23515 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23518 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23519 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23520 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23521 echo $ECHO_N "(cached) $ECHO_C" >&6
23522 else
23523 lt_cv_prog_compiler_rtti_exceptions=no
23524 ac_outfile=conftest.$ac_objext
23525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23526 lt_compiler_flag="-fno-rtti -fno-exceptions"
23527 # Insert the option either (1) after the last *FLAGS variable, or
23528 # (2) before a word containing "conftest.", or (3) at the end.
23529 # Note that $ac_compile itself does not contain backslashes and begins
23530 # with a dollar sign (not a hyphen), so the echo should work correctly.
23531 # The option is referenced via a variable to avoid confusing sed.
23532 lt_compile=`echo "$ac_compile" | $SED \
23533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23535 -e 's:$: $lt_compiler_flag:'`
23536 (eval echo "\"\$as_me:23536: $lt_compile\"" >&5)
23537 (eval "$lt_compile" 2>conftest.err)
23538 ac_status=$?
23539 cat conftest.err >&5
23540 echo "$as_me:23540: \$? = $ac_status" >&5
23541 if (exit $ac_status) && test -s "$ac_outfile"; then
23542 # The compiler can only warn and ignore the option if not recognized
23543 # So say no if there are warnings other than the usual output.
23544 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23546 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23547 lt_cv_prog_compiler_rtti_exceptions=yes
23550 $rm conftest*
23553 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23554 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23556 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23557 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23558 else
23564 lt_prog_compiler_wl_GCJ=
23565 lt_prog_compiler_pic_GCJ=
23566 lt_prog_compiler_static_GCJ=
23568 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23571 if test "$GCC" = yes; then
23572 lt_prog_compiler_wl_GCJ='-Wl,'
23573 lt_prog_compiler_static_GCJ='-static'
23575 case $host_os in
23576 aix*)
23577 # All AIX code is PIC.
23578 if test "$host_cpu" = ia64; then
23579 # AIX 5 now supports IA64 processor
23580 lt_prog_compiler_static_GCJ='-Bstatic'
23584 amigaos*)
23585 # FIXME: we need at least 68020 code to build shared libraries, but
23586 # adding the `-m68020' flag to GCC prevents building anything better,
23587 # like `-m68040'.
23588 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23591 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23592 # PIC is the default for these OSes.
23595 mingw* | pw32* | os2*)
23596 # This hack is so that the source file can tell whether it is being
23597 # built for inclusion in a dll (and should export symbols for example).
23598 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23601 darwin* | rhapsody*)
23602 # PIC is the default on this platform
23603 # Common symbols not allowed in MH_DYLIB files
23604 lt_prog_compiler_pic_GCJ='-fno-common'
23607 interix3*)
23608 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23609 # Instead, we relocate shared libraries at runtime.
23612 msdosdjgpp*)
23613 # Just because we use GCC doesn't mean we suddenly get shared libraries
23614 # on systems that don't support them.
23615 lt_prog_compiler_can_build_shared_GCJ=no
23616 enable_shared=no
23619 sysv4*MP*)
23620 if test -d /usr/nec; then
23621 lt_prog_compiler_pic_GCJ=-Kconform_pic
23625 hpux*)
23626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23627 # not for PA HP-UX.
23628 case $host_cpu in
23629 hppa*64*|ia64*)
23630 # +Z the default
23633 lt_prog_compiler_pic_GCJ='-fPIC'
23635 esac
23639 lt_prog_compiler_pic_GCJ='-fPIC'
23641 esac
23642 else
23643 # PORTME Check for flag to pass linker flags through the system compiler.
23644 case $host_os in
23645 aix*)
23646 lt_prog_compiler_wl_GCJ='-Wl,'
23647 if test "$host_cpu" = ia64; then
23648 # AIX 5 now supports IA64 processor
23649 lt_prog_compiler_static_GCJ='-Bstatic'
23650 else
23651 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23654 darwin*)
23655 # PIC is the default on this platform
23656 # Common symbols not allowed in MH_DYLIB files
23657 case $cc_basename in
23658 xlc*)
23659 lt_prog_compiler_pic_GCJ='-qnocommon'
23660 lt_prog_compiler_wl_GCJ='-Wl,'
23662 esac
23665 mingw* | pw32* | os2*)
23666 # This hack is so that the source file can tell whether it is being
23667 # built for inclusion in a dll (and should export symbols for example).
23668 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23671 hpux9* | hpux10* | hpux11*)
23672 lt_prog_compiler_wl_GCJ='-Wl,'
23673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23674 # not for PA HP-UX.
23675 case $host_cpu in
23676 hppa*64*|ia64*)
23677 # +Z the default
23680 lt_prog_compiler_pic_GCJ='+Z'
23682 esac
23683 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23684 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23687 irix5* | irix6* | nonstopux*)
23688 lt_prog_compiler_wl_GCJ='-Wl,'
23689 # PIC (with -KPIC) is the default.
23690 lt_prog_compiler_static_GCJ='-non_shared'
23693 newsos6)
23694 lt_prog_compiler_pic_GCJ='-KPIC'
23695 lt_prog_compiler_static_GCJ='-Bstatic'
23698 linux*)
23699 case $cc_basename in
23700 icc* | ecc*)
23701 lt_prog_compiler_wl_GCJ='-Wl,'
23702 lt_prog_compiler_pic_GCJ='-KPIC'
23703 lt_prog_compiler_static_GCJ='-static'
23705 pgcc* | pgf77* | pgf90* | pgf95*)
23706 # Portland Group compilers (*not* the Pentium gcc compiler,
23707 # which looks to be a dead project)
23708 lt_prog_compiler_wl_GCJ='-Wl,'
23709 lt_prog_compiler_pic_GCJ='-fpic'
23710 lt_prog_compiler_static_GCJ='-Bstatic'
23712 ccc*)
23713 lt_prog_compiler_wl_GCJ='-Wl,'
23714 # All Alpha code is PIC.
23715 lt_prog_compiler_static_GCJ='-non_shared'
23717 esac
23720 osf3* | osf4* | osf5*)
23721 lt_prog_compiler_wl_GCJ='-Wl,'
23722 # All OSF/1 code is PIC.
23723 lt_prog_compiler_static_GCJ='-non_shared'
23726 solaris*)
23727 lt_prog_compiler_pic_GCJ='-KPIC'
23728 lt_prog_compiler_static_GCJ='-Bstatic'
23729 case $cc_basename in
23730 f77* | f90* | f95*)
23731 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23733 lt_prog_compiler_wl_GCJ='-Wl,';;
23734 esac
23737 sunos4*)
23738 lt_prog_compiler_wl_GCJ='-Qoption ld '
23739 lt_prog_compiler_pic_GCJ='-PIC'
23740 lt_prog_compiler_static_GCJ='-Bstatic'
23743 sysv4 | sysv4.2uw2* | sysv4.3*)
23744 lt_prog_compiler_wl_GCJ='-Wl,'
23745 lt_prog_compiler_pic_GCJ='-KPIC'
23746 lt_prog_compiler_static_GCJ='-Bstatic'
23749 sysv4*MP*)
23750 if test -d /usr/nec ;then
23751 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23752 lt_prog_compiler_static_GCJ='-Bstatic'
23756 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23757 lt_prog_compiler_wl_GCJ='-Wl,'
23758 lt_prog_compiler_pic_GCJ='-KPIC'
23759 lt_prog_compiler_static_GCJ='-Bstatic'
23762 unicos*)
23763 lt_prog_compiler_wl_GCJ='-Wl,'
23764 lt_prog_compiler_can_build_shared_GCJ=no
23767 uts4*)
23768 lt_prog_compiler_pic_GCJ='-pic'
23769 lt_prog_compiler_static_GCJ='-Bstatic'
23773 lt_prog_compiler_can_build_shared_GCJ=no
23775 esac
23778 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23779 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23782 # Check to make sure the PIC flag actually works.
23784 if test -n "$lt_prog_compiler_pic_GCJ"; then
23786 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23787 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23788 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23789 echo $ECHO_N "(cached) $ECHO_C" >&6
23790 else
23791 lt_prog_compiler_pic_works_GCJ=no
23792 ac_outfile=conftest.$ac_objext
23793 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23794 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23795 # Insert the option either (1) after the last *FLAGS variable, or
23796 # (2) before a word containing "conftest.", or (3) at the end.
23797 # Note that $ac_compile itself does not contain backslashes and begins
23798 # with a dollar sign (not a hyphen), so the echo should work correctly.
23799 # The option is referenced via a variable to avoid confusing sed.
23800 lt_compile=`echo "$ac_compile" | $SED \
23801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23803 -e 's:$: $lt_compiler_flag:'`
23804 (eval echo "\"\$as_me:23804: $lt_compile\"" >&5)
23805 (eval "$lt_compile" 2>conftest.err)
23806 ac_status=$?
23807 cat conftest.err >&5
23808 echo "$as_me:23808: \$? = $ac_status" >&5
23809 if (exit $ac_status) && test -s "$ac_outfile"; then
23810 # The compiler can only warn and ignore the option if not recognized
23811 # So say no if there are warnings other than the usual output.
23812 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23815 lt_prog_compiler_pic_works_GCJ=yes
23818 $rm conftest*
23821 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23822 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23824 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23825 case $lt_prog_compiler_pic_GCJ in
23826 "" | " "*) ;;
23827 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23828 esac
23829 else
23830 lt_prog_compiler_pic_GCJ=
23831 lt_prog_compiler_can_build_shared_GCJ=no
23835 case $host_os in
23836 # For platforms which do not support PIC, -DPIC is meaningless:
23837 *djgpp*)
23838 lt_prog_compiler_pic_GCJ=
23841 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23843 esac
23846 # Check to make sure the static flag actually works.
23848 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23849 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23850 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23851 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23852 echo $ECHO_N "(cached) $ECHO_C" >&6
23853 else
23854 lt_prog_compiler_static_works_GCJ=no
23855 save_LDFLAGS="$LDFLAGS"
23856 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23857 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23859 # The linker can only warn and ignore the option if not recognized
23860 # So say no if there are warnings
23861 if test -s conftest.err; then
23862 # Append any errors to the config.log.
23863 cat conftest.err 1>&5
23864 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23866 if diff conftest.exp conftest.er2 >/dev/null; then
23867 lt_prog_compiler_static_works_GCJ=yes
23869 else
23870 lt_prog_compiler_static_works_GCJ=yes
23873 $rm conftest*
23874 LDFLAGS="$save_LDFLAGS"
23877 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23878 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23880 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23882 else
23883 lt_prog_compiler_static_GCJ=
23887 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23888 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23889 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23890 echo $ECHO_N "(cached) $ECHO_C" >&6
23891 else
23892 lt_cv_prog_compiler_c_o_GCJ=no
23893 $rm -r conftest 2>/dev/null
23894 mkdir conftest
23895 cd conftest
23896 mkdir out
23897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23899 lt_compiler_flag="-o out/conftest2.$ac_objext"
23900 # Insert the option either (1) after the last *FLAGS variable, or
23901 # (2) before a word containing "conftest.", or (3) at the end.
23902 # Note that $ac_compile itself does not contain backslashes and begins
23903 # with a dollar sign (not a hyphen), so the echo should work correctly.
23904 lt_compile=`echo "$ac_compile" | $SED \
23905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23907 -e 's:$: $lt_compiler_flag:'`
23908 (eval echo "\"\$as_me:23908: $lt_compile\"" >&5)
23909 (eval "$lt_compile" 2>out/conftest.err)
23910 ac_status=$?
23911 cat out/conftest.err >&5
23912 echo "$as_me:23912: \$? = $ac_status" >&5
23913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23914 then
23915 # The compiler can only warn and ignore the option if not recognized
23916 # So say no if there are warnings
23917 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23920 lt_cv_prog_compiler_c_o_GCJ=yes
23923 chmod u+w . 2>&5
23924 $rm conftest*
23925 # SGI C++ compiler will create directory out/ii_files/ for
23926 # template instantiation
23927 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23928 $rm out/* && rmdir out
23929 cd ..
23930 rmdir conftest
23931 $rm conftest*
23934 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23935 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23938 hard_links="nottested"
23939 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23940 # do not overwrite the value of need_locks provided by the user
23941 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23942 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23943 hard_links=yes
23944 $rm conftest*
23945 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23946 touch conftest.a
23947 ln conftest.a conftest.b 2>&5 || hard_links=no
23948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23949 { echo "$as_me:$LINENO: result: $hard_links" >&5
23950 echo "${ECHO_T}$hard_links" >&6; }
23951 if test "$hard_links" = no; then
23952 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23953 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23954 need_locks=warn
23956 else
23957 need_locks=no
23960 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23961 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23963 runpath_var=
23964 allow_undefined_flag_GCJ=
23965 enable_shared_with_static_runtimes_GCJ=no
23966 archive_cmds_GCJ=
23967 archive_expsym_cmds_GCJ=
23968 old_archive_From_new_cmds_GCJ=
23969 old_archive_from_expsyms_cmds_GCJ=
23970 export_dynamic_flag_spec_GCJ=
23971 whole_archive_flag_spec_GCJ=
23972 thread_safe_flag_spec_GCJ=
23973 hardcode_libdir_flag_spec_GCJ=
23974 hardcode_libdir_flag_spec_ld_GCJ=
23975 hardcode_libdir_separator_GCJ=
23976 hardcode_direct_GCJ=no
23977 hardcode_minus_L_GCJ=no
23978 hardcode_shlibpath_var_GCJ=unsupported
23979 link_all_deplibs_GCJ=unknown
23980 hardcode_automatic_GCJ=no
23981 module_cmds_GCJ=
23982 module_expsym_cmds_GCJ=
23983 always_export_symbols_GCJ=no
23984 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23985 # include_expsyms should be a list of space-separated symbols to be *always*
23986 # included in the symbol list
23987 include_expsyms_GCJ=
23988 # exclude_expsyms can be an extended regexp of symbols to exclude
23989 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23990 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23991 # as well as any symbol that contains `d'.
23992 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23993 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23994 # platforms (ab)use it in PIC code, but their linkers get confused if
23995 # the symbol is explicitly referenced. Since portable code cannot
23996 # rely on this symbol name, it's probably fine to never include it in
23997 # preloaded symbol tables.
23998 extract_expsyms_cmds=
23999 # Just being paranoid about ensuring that cc_basename is set.
24000 for cc_temp in $compiler""; do
24001 case $cc_temp in
24002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24004 \-*) ;;
24005 *) break;;
24006 esac
24007 done
24008 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24010 case $host_os in
24011 cygwin* | mingw* | pw32*)
24012 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24013 # When not using gcc, we currently assume that we are using
24014 # Microsoft Visual C++.
24015 if test "$GCC" != yes; then
24016 with_gnu_ld=no
24019 interix*)
24020 # we just hope/assume this is gcc and not c89 (= MSVC++)
24021 with_gnu_ld=yes
24023 openbsd*)
24024 with_gnu_ld=no
24026 esac
24028 ld_shlibs_GCJ=yes
24029 if test "$with_gnu_ld" = yes; then
24030 # If archive_cmds runs LD, not CC, wlarc should be empty
24031 wlarc='${wl}'
24033 # Set some defaults for GNU ld with shared library support. These
24034 # are reset later if shared libraries are not supported. Putting them
24035 # here allows them to be overridden if necessary.
24036 runpath_var=LD_RUN_PATH
24037 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24038 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24039 # ancient GNU ld didn't support --whole-archive et. al.
24040 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24041 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24042 else
24043 whole_archive_flag_spec_GCJ=
24045 supports_anon_versioning=no
24046 case `$LD -v 2>/dev/null` in
24047 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24048 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24049 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24050 *\ 2.11.*) ;; # other 2.11 versions
24051 *) supports_anon_versioning=yes ;;
24052 esac
24054 # See if GNU ld supports shared libraries.
24055 case $host_os in
24056 aix3* | aix4* | aix5*)
24057 # On AIX/PPC, the GNU linker is very broken
24058 if test "$host_cpu" != ia64; then
24059 ld_shlibs_GCJ=no
24060 cat <<EOF 1>&2
24062 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24063 *** to be unable to reliably create shared libraries on AIX.
24064 *** Therefore, libtool is disabling shared libraries support. If you
24065 *** really care for shared libraries, you may want to modify your PATH
24066 *** so that a non-GNU linker is found, and then restart.
24072 amigaos*)
24073 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)'
24074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24075 hardcode_minus_L_GCJ=yes
24077 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24078 # that the semantics of dynamic libraries on AmigaOS, at least up
24079 # to version 4, is to share data among multiple programs linked
24080 # with the same dynamic library. Since this doesn't match the
24081 # behavior of shared libraries on other platforms, we can't use
24082 # them.
24083 ld_shlibs_GCJ=no
24086 beos*)
24087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24088 allow_undefined_flag_GCJ=unsupported
24089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24090 # support --undefined. This deserves some investigation. FIXME
24091 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24092 else
24093 ld_shlibs_GCJ=no
24097 cygwin* | mingw* | pw32*)
24098 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24099 # as there is no search path for DLLs.
24100 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24101 allow_undefined_flag_GCJ=unsupported
24102 always_export_symbols_GCJ=no
24103 enable_shared_with_static_runtimes_GCJ=yes
24104 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24106 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24107 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24108 # If the export-symbols file already is a .def file (1st line
24109 # is EXPORTS), use it as is; otherwise, prepend...
24110 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24111 cp $export_symbols $output_objdir/$soname.def;
24112 else
24113 echo EXPORTS > $output_objdir/$soname.def;
24114 cat $export_symbols >> $output_objdir/$soname.def;
24116 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24117 else
24118 ld_shlibs_GCJ=no
24122 interix3*)
24123 hardcode_direct_GCJ=no
24124 hardcode_shlibpath_var_GCJ=no
24125 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24126 export_dynamic_flag_spec_GCJ='${wl}-E'
24127 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24128 # Instead, shared libraries are loaded at an image base (0x10000000 by
24129 # default) and relocated if they conflict, which is a slow very memory
24130 # consuming and fragmenting process. To avoid this, we pick a random,
24131 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24132 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24133 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'
24134 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'
24137 linux*)
24138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24139 tmp_addflag=
24140 case $cc_basename,$host_cpu in
24141 pgcc*) # Portland Group C compiler
24142 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'
24143 tmp_addflag=' $pic_flag'
24145 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24146 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'
24147 tmp_addflag=' $pic_flag -Mnomain' ;;
24148 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24149 tmp_addflag=' -i_dynamic' ;;
24150 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24151 tmp_addflag=' -i_dynamic -nofor_main' ;;
24152 ifc* | ifort*) # Intel Fortran compiler
24153 tmp_addflag=' -nofor_main' ;;
24154 esac
24155 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24157 if test $supports_anon_versioning = yes; then
24158 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24159 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24160 $echo "local: *; };" >> $output_objdir/$libname.ver~
24161 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24163 else
24164 ld_shlibs_GCJ=no
24168 netbsd*)
24169 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24170 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24171 wlarc=
24172 else
24173 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24174 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24178 solaris*)
24179 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24180 ld_shlibs_GCJ=no
24181 cat <<EOF 1>&2
24183 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24184 *** create shared libraries on Solaris systems. Therefore, libtool
24185 *** is disabling shared libraries support. We urge you to upgrade GNU
24186 *** binutils to release 2.9.1 or newer. Another option is to modify
24187 *** your PATH or compiler configuration so that the native linker is
24188 *** used, and then restart.
24191 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24192 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24193 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24194 else
24195 ld_shlibs_GCJ=no
24199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24200 case `$LD -v 2>&1` in
24201 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24202 ld_shlibs_GCJ=no
24203 cat <<_LT_EOF 1>&2
24205 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24206 *** reliably create shared libraries on SCO systems. Therefore, libtool
24207 *** is disabling shared libraries support. We urge you to upgrade GNU
24208 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24209 *** your PATH or compiler configuration so that the native linker is
24210 *** used, and then restart.
24212 _LT_EOF
24215 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24216 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24217 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24218 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24219 else
24220 ld_shlibs_GCJ=no
24223 esac
24226 sunos4*)
24227 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24228 wlarc=
24229 hardcode_direct_GCJ=yes
24230 hardcode_shlibpath_var_GCJ=no
24234 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24235 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24236 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24237 else
24238 ld_shlibs_GCJ=no
24241 esac
24243 if test "$ld_shlibs_GCJ" = no; then
24244 runpath_var=
24245 hardcode_libdir_flag_spec_GCJ=
24246 export_dynamic_flag_spec_GCJ=
24247 whole_archive_flag_spec_GCJ=
24249 else
24250 # PORTME fill in a description of your system's linker (not GNU ld)
24251 case $host_os in
24252 aix3*)
24253 allow_undefined_flag_GCJ=unsupported
24254 always_export_symbols_GCJ=yes
24255 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'
24256 # Note: this linker hardcodes the directories in LIBPATH if there
24257 # are no directories specified by -L.
24258 hardcode_minus_L_GCJ=yes
24259 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24260 # Neither direct hardcoding nor static linking is supported with a
24261 # broken collect2.
24262 hardcode_direct_GCJ=unsupported
24266 aix4* | aix5*)
24267 if test "$host_cpu" = ia64; then
24268 # On IA64, the linker does run time linking by default, so we don't
24269 # have to do anything special.
24270 aix_use_runtimelinking=no
24271 exp_sym_flag='-Bexport'
24272 no_entry_flag=""
24273 else
24274 # If we're using GNU nm, then we don't want the "-C" option.
24275 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24276 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24277 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'
24278 else
24279 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'
24281 aix_use_runtimelinking=no
24283 # Test if we are trying to use run time linking or normal
24284 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24285 # need to do runtime linking.
24286 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24287 for ld_flag in $LDFLAGS; do
24288 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24289 aix_use_runtimelinking=yes
24290 break
24292 done
24294 esac
24296 exp_sym_flag='-bexport'
24297 no_entry_flag='-bnoentry'
24300 # When large executables or shared objects are built, AIX ld can
24301 # have problems creating the table of contents. If linking a library
24302 # or program results in "error TOC overflow" add -mminimal-toc to
24303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24306 archive_cmds_GCJ=''
24307 hardcode_direct_GCJ=yes
24308 hardcode_libdir_separator_GCJ=':'
24309 link_all_deplibs_GCJ=yes
24311 if test "$GCC" = yes; then
24312 case $host_os in aix4.[012]|aix4.[012].*)
24313 # We only want to do this on AIX 4.2 and lower, the check
24314 # below for broken collect2 doesn't work under 4.3+
24315 collect2name=`${CC} -print-prog-name=collect2`
24316 if test -f "$collect2name" && \
24317 strings "$collect2name" | grep resolve_lib_name >/dev/null
24318 then
24319 # We have reworked collect2
24320 hardcode_direct_GCJ=yes
24321 else
24322 # We have old collect2
24323 hardcode_direct_GCJ=unsupported
24324 # It fails to find uninstalled libraries when the uninstalled
24325 # path is not listed in the libpath. Setting hardcode_minus_L
24326 # to unsupported forces relinking
24327 hardcode_minus_L_GCJ=yes
24328 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24329 hardcode_libdir_separator_GCJ=
24332 esac
24333 shared_flag='-shared'
24334 if test "$aix_use_runtimelinking" = yes; then
24335 shared_flag="$shared_flag "'${wl}-G'
24337 else
24338 # not using gcc
24339 if test "$host_cpu" = ia64; then
24340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24341 # chokes on -Wl,-G. The following line is correct:
24342 shared_flag='-G'
24343 else
24344 if test "$aix_use_runtimelinking" = yes; then
24345 shared_flag='${wl}-G'
24346 else
24347 shared_flag='${wl}-bM:SRE'
24352 # It seems that -bexpall does not export symbols beginning with
24353 # underscore (_), so it is better to generate a list of symbols to export.
24354 always_export_symbols_GCJ=yes
24355 if test "$aix_use_runtimelinking" = yes; then
24356 # Warning - without using the other runtime loading flags (-brtl),
24357 # -berok will link without error, but may produce a broken library.
24358 allow_undefined_flag_GCJ='-berok'
24359 # Determine the default libpath from the value encoded in an empty executable.
24360 cat >conftest.$ac_ext <<_ACEOF
24361 /* confdefs.h. */
24362 _ACEOF
24363 cat confdefs.h >>conftest.$ac_ext
24364 cat >>conftest.$ac_ext <<_ACEOF
24365 /* end confdefs.h. */
24368 main ()
24372 return 0;
24374 _ACEOF
24375 rm -f conftest.$ac_objext conftest$ac_exeext
24376 if { (ac_try="$ac_link"
24377 case "(($ac_try" in
24378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24379 *) ac_try_echo=$ac_try;;
24380 esac
24381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24382 (eval "$ac_link") 2>conftest.er1
24383 ac_status=$?
24384 grep -v '^ *+' conftest.er1 >conftest.err
24385 rm -f conftest.er1
24386 cat conftest.err >&5
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); } &&
24389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24390 { (case "(($ac_try" in
24391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392 *) ac_try_echo=$ac_try;;
24393 esac
24394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395 (eval "$ac_try") 2>&5
24396 ac_status=$?
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; } &&
24399 { ac_try='test -s conftest$ac_exeext'
24400 { (case "(($ac_try" in
24401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24402 *) ac_try_echo=$ac_try;;
24403 esac
24404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24405 (eval "$ac_try") 2>&5
24406 ac_status=$?
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); }; }; then
24410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24412 # Check for a 64-bit object if we didn't find anything.
24413 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; }
24414 }'`; fi
24415 else
24416 echo "$as_me: failed program was:" >&5
24417 sed 's/^/| /' conftest.$ac_ext >&5
24422 rm -f core conftest.err conftest.$ac_objext \
24423 conftest$ac_exeext conftest.$ac_ext
24424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24426 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24427 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"
24428 else
24429 if test "$host_cpu" = ia64; then
24430 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24431 allow_undefined_flag_GCJ="-z nodefs"
24432 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"
24433 else
24434 # Determine the default libpath from the value encoded in an empty executable.
24435 cat >conftest.$ac_ext <<_ACEOF
24436 /* confdefs.h. */
24437 _ACEOF
24438 cat confdefs.h >>conftest.$ac_ext
24439 cat >>conftest.$ac_ext <<_ACEOF
24440 /* end confdefs.h. */
24443 main ()
24447 return 0;
24449 _ACEOF
24450 rm -f conftest.$ac_objext conftest$ac_exeext
24451 if { (ac_try="$ac_link"
24452 case "(($ac_try" in
24453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454 *) ac_try_echo=$ac_try;;
24455 esac
24456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24457 (eval "$ac_link") 2>conftest.er1
24458 ac_status=$?
24459 grep -v '^ *+' conftest.er1 >conftest.err
24460 rm -f conftest.er1
24461 cat conftest.err >&5
24462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); } &&
24464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24465 { (case "(($ac_try" in
24466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24467 *) ac_try_echo=$ac_try;;
24468 esac
24469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24470 (eval "$ac_try") 2>&5
24471 ac_status=$?
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); }; } &&
24474 { ac_try='test -s conftest$ac_exeext'
24475 { (case "(($ac_try" in
24476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477 *) ac_try_echo=$ac_try;;
24478 esac
24479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24480 (eval "$ac_try") 2>&5
24481 ac_status=$?
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; }; then
24485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24487 # Check for a 64-bit object if we didn't find anything.
24488 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; }
24489 }'`; fi
24490 else
24491 echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24497 rm -f core conftest.err conftest.$ac_objext \
24498 conftest$ac_exeext conftest.$ac_ext
24499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24501 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24502 # Warning - without using the other run time loading flags,
24503 # -berok will link without error, but may produce a broken library.
24504 no_undefined_flag_GCJ=' ${wl}-bernotok'
24505 allow_undefined_flag_GCJ=' ${wl}-berok'
24506 # Exported symbols can be pulled into shared objects from archives
24507 whole_archive_flag_spec_GCJ='$convenience'
24508 archive_cmds_need_lc_GCJ=yes
24509 # This is similar to how AIX traditionally builds its shared libraries.
24510 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'
24515 amigaos*)
24516 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)'
24517 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24518 hardcode_minus_L_GCJ=yes
24519 # see comment about different semantics on the GNU ld section
24520 ld_shlibs_GCJ=no
24523 bsdi[45]*)
24524 export_dynamic_flag_spec_GCJ=-rdynamic
24527 cygwin* | mingw* | pw32*)
24528 # When not using gcc, we currently assume that we are using
24529 # Microsoft Visual C++.
24530 # hardcode_libdir_flag_spec is actually meaningless, as there is
24531 # no search path for DLLs.
24532 hardcode_libdir_flag_spec_GCJ=' '
24533 allow_undefined_flag_GCJ=unsupported
24534 # Tell ltmain to make .lib files, not .a files.
24535 libext=lib
24536 # Tell ltmain to make .dll files, not .so files.
24537 shrext_cmds=".dll"
24538 # FIXME: Setting linknames here is a bad hack.
24539 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24540 # The linker will automatically build a .lib file if we build a DLL.
24541 old_archive_From_new_cmds_GCJ='true'
24542 # FIXME: Should let the user specify the lib program.
24543 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
24544 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24545 enable_shared_with_static_runtimes_GCJ=yes
24548 darwin* | rhapsody*)
24549 case $host_os in
24550 rhapsody* | darwin1.[012])
24551 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24553 *) # Darwin 1.3 on
24554 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24555 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24556 else
24557 case ${MACOSX_DEPLOYMENT_TARGET} in
24558 10.[012])
24559 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24561 10.*)
24562 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24564 esac
24567 esac
24568 archive_cmds_need_lc_GCJ=no
24569 hardcode_direct_GCJ=no
24570 hardcode_automatic_GCJ=yes
24571 hardcode_shlibpath_var_GCJ=unsupported
24572 whole_archive_flag_spec_GCJ=''
24573 link_all_deplibs_GCJ=yes
24574 if test "$GCC" = yes ; then
24575 output_verbose_link_cmd='echo'
24576 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24577 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24578 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24579 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}'
24580 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}'
24581 else
24582 case $cc_basename in
24583 xlc*)
24584 output_verbose_link_cmd='echo'
24585 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24586 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24587 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24588 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}'
24589 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}'
24592 ld_shlibs_GCJ=no
24594 esac
24598 dgux*)
24599 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24600 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24601 hardcode_shlibpath_var_GCJ=no
24604 freebsd1*)
24605 ld_shlibs_GCJ=no
24608 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24609 # support. Future versions do this automatically, but an explicit c++rt0.o
24610 # does not break anything, and helps significantly (at the cost of a little
24611 # extra space).
24612 freebsd2.2*)
24613 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24614 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24615 hardcode_direct_GCJ=yes
24616 hardcode_shlibpath_var_GCJ=no
24619 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24620 freebsd2*)
24621 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24622 hardcode_direct_GCJ=yes
24623 hardcode_minus_L_GCJ=yes
24624 hardcode_shlibpath_var_GCJ=no
24627 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24628 freebsd* | kfreebsd*-gnu | dragonfly*)
24629 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24630 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24631 hardcode_direct_GCJ=yes
24632 hardcode_shlibpath_var_GCJ=no
24635 hpux9*)
24636 if test "$GCC" = yes; then
24637 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'
24638 else
24639 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'
24641 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24642 hardcode_libdir_separator_GCJ=:
24643 hardcode_direct_GCJ=yes
24645 # hardcode_minus_L: Not really in the search PATH,
24646 # but as the default location of the library.
24647 hardcode_minus_L_GCJ=yes
24648 export_dynamic_flag_spec_GCJ='${wl}-E'
24651 hpux10*)
24652 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24653 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24654 else
24655 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24657 if test "$with_gnu_ld" = no; then
24658 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24659 hardcode_libdir_separator_GCJ=:
24661 hardcode_direct_GCJ=yes
24662 export_dynamic_flag_spec_GCJ='${wl}-E'
24664 # hardcode_minus_L: Not really in the search PATH,
24665 # but as the default location of the library.
24666 hardcode_minus_L_GCJ=yes
24670 hpux11*)
24671 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24672 case $host_cpu in
24673 hppa*64*)
24674 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24676 ia64*)
24677 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24680 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24682 esac
24683 else
24684 case $host_cpu in
24685 hppa*64*)
24686 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24688 ia64*)
24689 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24692 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24694 esac
24696 if test "$with_gnu_ld" = no; then
24697 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24698 hardcode_libdir_separator_GCJ=:
24700 case $host_cpu in
24701 hppa*64*|ia64*)
24702 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24703 hardcode_direct_GCJ=no
24704 hardcode_shlibpath_var_GCJ=no
24707 hardcode_direct_GCJ=yes
24708 export_dynamic_flag_spec_GCJ='${wl}-E'
24710 # hardcode_minus_L: Not really in the search PATH,
24711 # but as the default location of the library.
24712 hardcode_minus_L_GCJ=yes
24714 esac
24718 irix5* | irix6* | nonstopux*)
24719 if test "$GCC" = yes; then
24720 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'
24721 else
24722 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'
24723 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24725 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24726 hardcode_libdir_separator_GCJ=:
24727 link_all_deplibs_GCJ=yes
24730 netbsd*)
24731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24732 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24733 else
24734 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24736 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24737 hardcode_direct_GCJ=yes
24738 hardcode_shlibpath_var_GCJ=no
24741 newsos6)
24742 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24743 hardcode_direct_GCJ=yes
24744 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24745 hardcode_libdir_separator_GCJ=:
24746 hardcode_shlibpath_var_GCJ=no
24749 openbsd*)
24750 hardcode_direct_GCJ=yes
24751 hardcode_shlibpath_var_GCJ=no
24752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24753 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24754 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24755 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24756 export_dynamic_flag_spec_GCJ='${wl}-E'
24757 else
24758 case $host_os in
24759 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24760 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24761 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24764 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24765 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24767 esac
24771 os2*)
24772 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24773 hardcode_minus_L_GCJ=yes
24774 allow_undefined_flag_GCJ=unsupported
24775 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'
24776 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24779 osf3*)
24780 if test "$GCC" = yes; then
24781 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24782 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'
24783 else
24784 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24785 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'
24787 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24788 hardcode_libdir_separator_GCJ=:
24791 osf4* | osf5*) # as osf3* with the addition of -msym flag
24792 if test "$GCC" = yes; then
24793 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24794 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'
24795 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24796 else
24797 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24798 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'
24799 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~
24800 $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'
24802 # Both c and cxx compiler support -rpath directly
24803 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24805 hardcode_libdir_separator_GCJ=:
24808 solaris*)
24809 no_undefined_flag_GCJ=' -z text'
24810 if test "$GCC" = yes; then
24811 wlarc='${wl}'
24812 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24813 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24814 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24815 else
24816 wlarc=''
24817 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24818 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24819 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24821 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24822 hardcode_shlibpath_var_GCJ=no
24823 case $host_os in
24824 solaris2.[0-5] | solaris2.[0-5].*) ;;
24826 # The compiler driver will combine linker options so we
24827 # cannot just pass the convience library names through
24828 # without $wl, iff we do not link with $LD.
24829 # Luckily, gcc supports the same syntax we need for Sun Studio.
24830 # Supported since Solaris 2.6 (maybe 2.5.1?)
24831 case $wlarc in
24833 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24835 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' ;;
24836 esac ;;
24837 esac
24838 link_all_deplibs_GCJ=yes
24841 sunos4*)
24842 if test "x$host_vendor" = xsequent; then
24843 # Use $CC to link under sequent, because it throws in some extra .o
24844 # files that make .init and .fini sections work.
24845 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24846 else
24847 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24849 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24850 hardcode_direct_GCJ=yes
24851 hardcode_minus_L_GCJ=yes
24852 hardcode_shlibpath_var_GCJ=no
24855 sysv4)
24856 case $host_vendor in
24857 sni)
24858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24859 hardcode_direct_GCJ=yes # is this really true???
24861 siemens)
24862 ## LD is ld it makes a PLAMLIB
24863 ## CC just makes a GrossModule.
24864 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24865 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24866 hardcode_direct_GCJ=no
24868 motorola)
24869 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24870 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24872 esac
24873 runpath_var='LD_RUN_PATH'
24874 hardcode_shlibpath_var_GCJ=no
24877 sysv4.3*)
24878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24879 hardcode_shlibpath_var_GCJ=no
24880 export_dynamic_flag_spec_GCJ='-Bexport'
24883 sysv4*MP*)
24884 if test -d /usr/nec; then
24885 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24886 hardcode_shlibpath_var_GCJ=no
24887 runpath_var=LD_RUN_PATH
24888 hardcode_runpath_var=yes
24889 ld_shlibs_GCJ=yes
24893 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24894 no_undefined_flag_GCJ='${wl}-z,text'
24895 archive_cmds_need_lc_GCJ=no
24896 hardcode_shlibpath_var_GCJ=no
24897 runpath_var='LD_RUN_PATH'
24899 if test "$GCC" = yes; then
24900 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24901 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24902 else
24903 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24904 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24908 sysv5* | sco3.2v5* | sco5v6*)
24909 # Note: We can NOT use -z defs as we might desire, because we do not
24910 # link with -lc, and that would cause any symbols used from libc to
24911 # always be unresolved, which means just about no library would
24912 # ever link correctly. If we're not using GNU ld we use -z text
24913 # though, which does catch some bad symbols but isn't as heavy-handed
24914 # as -z defs.
24915 no_undefined_flag_GCJ='${wl}-z,text'
24916 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24917 archive_cmds_need_lc_GCJ=no
24918 hardcode_shlibpath_var_GCJ=no
24919 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24920 hardcode_libdir_separator_GCJ=':'
24921 link_all_deplibs_GCJ=yes
24922 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24923 runpath_var='LD_RUN_PATH'
24925 if test "$GCC" = yes; then
24926 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24927 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24928 else
24929 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24930 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24934 uts4*)
24935 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24937 hardcode_shlibpath_var_GCJ=no
24941 ld_shlibs_GCJ=no
24943 esac
24946 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24947 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24948 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24951 # Do we need to explicitly link libc?
24953 case "x$archive_cmds_need_lc_GCJ" in
24954 x|xyes)
24955 # Assume -lc should be added
24956 archive_cmds_need_lc_GCJ=yes
24958 if test "$enable_shared" = yes && test "$GCC" = yes; then
24959 case $archive_cmds_GCJ in
24960 *'~'*)
24961 # FIXME: we may have to deal with multi-command sequences.
24963 '$CC '*)
24964 # Test whether the compiler implicitly links with -lc since on some
24965 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24966 # to ld, don't add -lc before -lgcc.
24967 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24969 $rm conftest*
24970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24973 (eval $ac_compile) 2>&5
24974 ac_status=$?
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } 2>conftest.err; then
24977 soname=conftest
24978 lib=conftest
24979 libobjs=conftest.$ac_objext
24980 deplibs=
24981 wl=$lt_prog_compiler_wl_GCJ
24982 pic_flag=$lt_prog_compiler_pic_GCJ
24983 compiler_flags=-v
24984 linker_flags=-v
24985 verstring=
24986 output_objdir=.
24987 libname=conftest
24988 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24989 allow_undefined_flag_GCJ=
24990 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24991 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24992 ac_status=$?
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }
24995 then
24996 archive_cmds_need_lc_GCJ=no
24997 else
24998 archive_cmds_need_lc_GCJ=yes
25000 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25001 else
25002 cat conftest.err 1>&5
25004 $rm conftest*
25005 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25006 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25008 esac
25011 esac
25013 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25014 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25015 library_names_spec=
25016 libname_spec='lib$name'
25017 soname_spec=
25018 shrext_cmds=".so"
25019 postinstall_cmds=
25020 postuninstall_cmds=
25021 finish_cmds=
25022 finish_eval=
25023 shlibpath_var=
25024 shlibpath_overrides_runpath=unknown
25025 version_type=none
25026 dynamic_linker="$host_os ld.so"
25027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25028 if test "$GCC" = yes; then
25029 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25030 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25031 # if the path contains ";" then we assume it to be the separator
25032 # otherwise default to the standard path separator (i.e. ":") - it is
25033 # assumed that no part of a normal pathname contains ";" but that should
25034 # okay in the real world where ";" in dirpaths is itself problematic.
25035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25036 else
25037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25039 else
25040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25042 need_lib_prefix=unknown
25043 hardcode_into_libs=no
25045 # when you set need_version to no, make sure it does not cause -set_version
25046 # flags to be left without arguments
25047 need_version=unknown
25049 case $host_os in
25050 aix3*)
25051 version_type=linux
25052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25053 shlibpath_var=LIBPATH
25055 # AIX 3 has no versioning support, so we append a major version to the name.
25056 soname_spec='${libname}${release}${shared_ext}$major'
25059 aix4* | aix5*)
25060 version_type=linux
25061 need_lib_prefix=no
25062 need_version=no
25063 hardcode_into_libs=yes
25064 if test "$host_cpu" = ia64; then
25065 # AIX 5 supports IA64
25066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25067 shlibpath_var=LD_LIBRARY_PATH
25068 else
25069 # With GCC up to 2.95.x, collect2 would create an import file
25070 # for dependence libraries. The import file would start with
25071 # the line `#! .'. This would cause the generated library to
25072 # depend on `.', always an invalid library. This was fixed in
25073 # development snapshots of GCC prior to 3.0.
25074 case $host_os in
25075 aix4 | aix4.[01] | aix4.[01].*)
25076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25077 echo ' yes '
25078 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25080 else
25081 can_build_shared=no
25084 esac
25085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25086 # soname into executable. Probably we can add versioning support to
25087 # collect2, so additional links can be useful in future.
25088 if test "$aix_use_runtimelinking" = yes; then
25089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25090 # instead of lib<name>.a to let people know that these are not
25091 # typical AIX shared libraries.
25092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25093 else
25094 # We preserve .a as extension for shared libraries through AIX4.2
25095 # and later when we are not doing run time linking.
25096 library_names_spec='${libname}${release}.a $libname.a'
25097 soname_spec='${libname}${release}${shared_ext}$major'
25099 shlibpath_var=LIBPATH
25103 amigaos*)
25104 library_names_spec='$libname.ixlibrary $libname.a'
25105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
25106 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'
25109 beos*)
25110 library_names_spec='${libname}${shared_ext}'
25111 dynamic_linker="$host_os ld.so"
25112 shlibpath_var=LIBRARY_PATH
25115 bsdi[45]*)
25116 version_type=linux
25117 need_version=no
25118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25119 soname_spec='${libname}${release}${shared_ext}$major'
25120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25121 shlibpath_var=LD_LIBRARY_PATH
25122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25124 # the default ld.so.conf also contains /usr/contrib/lib and
25125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25126 # libtool to hard-code these into programs
25129 cygwin* | mingw* | pw32*)
25130 version_type=windows
25131 shrext_cmds=".dll"
25132 need_version=no
25133 need_lib_prefix=no
25135 case $GCC,$host_os in
25136 yes,cygwin* | yes,mingw* | yes,pw32*)
25137 library_names_spec='$libname.dll.a'
25138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
25139 postinstall_cmds='base_file=`basename \${file}`~
25140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25141 dldir=$destdir/`dirname \$dlpath`~
25142 test -d \$dldir || mkdir -p \$dldir~
25143 $install_prog $dir/$dlname \$dldir/$dlname~
25144 chmod a+x \$dldir/$dlname'
25145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25146 dlpath=$dir/\$dldll~
25147 $rm \$dlpath'
25148 shlibpath_overrides_runpath=yes
25150 case $host_os in
25151 cygwin*)
25152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25153 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25154 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25156 mingw*)
25157 # MinGW DLLs use traditional 'lib' prefix
25158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25160 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25161 # It is most probably a Windows format PATH printed by
25162 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25163 # path with ; separators, and with drive letters. We can handle the
25164 # drive letters (cygwin fileutils understands them), so leave them,
25165 # especially as we might pass files found there to a mingw objdump,
25166 # which wouldn't understand a cygwinified path. Ahh.
25167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25168 else
25169 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25172 pw32*)
25173 # pw32 DLLs use 'pw' prefix rather than 'lib'
25174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25176 esac
25180 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25182 esac
25183 dynamic_linker='Win32 ld.exe'
25184 # FIXME: first we should search . and the directory the executable is in
25185 shlibpath_var=PATH
25188 darwin* | rhapsody*)
25189 dynamic_linker="$host_os dyld"
25190 version_type=darwin
25191 need_lib_prefix=no
25192 need_version=no
25193 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25194 soname_spec='${libname}${release}${major}$shared_ext'
25195 shlibpath_overrides_runpath=yes
25196 shlibpath_var=DYLD_LIBRARY_PATH
25197 shrext_cmds='.dylib'
25198 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25199 if test "$GCC" = yes; then
25200 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"`
25201 else
25202 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25207 dgux*)
25208 version_type=linux
25209 need_lib_prefix=no
25210 need_version=no
25211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25212 soname_spec='${libname}${release}${shared_ext}$major'
25213 shlibpath_var=LD_LIBRARY_PATH
25216 freebsd1*)
25217 dynamic_linker=no
25220 kfreebsd*-gnu)
25221 version_type=linux
25222 need_lib_prefix=no
25223 need_version=no
25224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25225 soname_spec='${libname}${release}${shared_ext}$major'
25226 shlibpath_var=LD_LIBRARY_PATH
25227 shlibpath_overrides_runpath=no
25228 hardcode_into_libs=yes
25229 dynamic_linker='GNU ld.so'
25232 freebsd* | dragonfly*)
25233 # DragonFly does not have aout. When/if they implement a new
25234 # versioning mechanism, adjust this.
25235 if test -x /usr/bin/objformat; then
25236 objformat=`/usr/bin/objformat`
25237 else
25238 case $host_os in
25239 freebsd[123]*) objformat=aout ;;
25240 *) objformat=elf ;;
25241 esac
25243 version_type=freebsd-$objformat
25244 case $version_type in
25245 freebsd-elf*)
25246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25247 need_version=no
25248 need_lib_prefix=no
25250 freebsd-*)
25251 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25252 need_version=yes
25254 esac
25255 shlibpath_var=LD_LIBRARY_PATH
25256 case $host_os in
25257 freebsd2*)
25258 shlibpath_overrides_runpath=yes
25260 freebsd3.[01]* | freebsdelf3.[01]*)
25261 shlibpath_overrides_runpath=yes
25262 hardcode_into_libs=yes
25264 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25265 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25266 shlibpath_overrides_runpath=no
25267 hardcode_into_libs=yes
25269 freebsd*) # from 4.6 on
25270 shlibpath_overrides_runpath=yes
25271 hardcode_into_libs=yes
25273 esac
25276 gnu*)
25277 version_type=linux
25278 need_lib_prefix=no
25279 need_version=no
25280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25281 soname_spec='${libname}${release}${shared_ext}$major'
25282 shlibpath_var=LD_LIBRARY_PATH
25283 hardcode_into_libs=yes
25286 hpux9* | hpux10* | hpux11*)
25287 # Give a soname corresponding to the major version so that dld.sl refuses to
25288 # link against other versions.
25289 version_type=sunos
25290 need_lib_prefix=no
25291 need_version=no
25292 case $host_cpu in
25293 ia64*)
25294 shrext_cmds='.so'
25295 hardcode_into_libs=yes
25296 dynamic_linker="$host_os dld.so"
25297 shlibpath_var=LD_LIBRARY_PATH
25298 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25300 soname_spec='${libname}${release}${shared_ext}$major'
25301 if test "X$HPUX_IA64_MODE" = X32; then
25302 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25303 else
25304 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25306 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25308 hppa*64*)
25309 shrext_cmds='.sl'
25310 hardcode_into_libs=yes
25311 dynamic_linker="$host_os dld.sl"
25312 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25313 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25315 soname_spec='${libname}${release}${shared_ext}$major'
25316 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25317 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25320 shrext_cmds='.sl'
25321 dynamic_linker="$host_os dld.sl"
25322 shlibpath_var=SHLIB_PATH
25323 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25325 soname_spec='${libname}${release}${shared_ext}$major'
25327 esac
25328 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25329 postinstall_cmds='chmod 555 $lib'
25332 interix3*)
25333 version_type=linux
25334 need_lib_prefix=no
25335 need_version=no
25336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25337 soname_spec='${libname}${release}${shared_ext}$major'
25338 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25339 shlibpath_var=LD_LIBRARY_PATH
25340 shlibpath_overrides_runpath=no
25341 hardcode_into_libs=yes
25344 irix5* | irix6* | nonstopux*)
25345 case $host_os in
25346 nonstopux*) version_type=nonstopux ;;
25348 if test "$lt_cv_prog_gnu_ld" = yes; then
25349 version_type=linux
25350 else
25351 version_type=irix
25352 fi ;;
25353 esac
25354 need_lib_prefix=no
25355 need_version=no
25356 soname_spec='${libname}${release}${shared_ext}$major'
25357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25358 case $host_os in
25359 irix5* | nonstopux*)
25360 libsuff= shlibsuff=
25363 case $LD in # libtool.m4 will add one of these switches to LD
25364 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25365 libsuff= shlibsuff= libmagic=32-bit;;
25366 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25367 libsuff=32 shlibsuff=N32 libmagic=N32;;
25368 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25369 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25370 *) libsuff= shlibsuff= libmagic=never-match;;
25371 esac
25373 esac
25374 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25375 shlibpath_overrides_runpath=no
25376 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25377 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25378 hardcode_into_libs=yes
25381 # No shared lib support for Linux oldld, aout, or coff.
25382 linux*oldld* | linux*aout* | linux*coff*)
25383 dynamic_linker=no
25386 # This must be Linux ELF.
25387 linux*)
25388 version_type=linux
25389 need_lib_prefix=no
25390 need_version=no
25391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25392 soname_spec='${libname}${release}${shared_ext}$major'
25393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25394 shlibpath_var=LD_LIBRARY_PATH
25395 shlibpath_overrides_runpath=no
25396 # This implies no fast_install, which is unacceptable.
25397 # Some rework will be needed to allow for fast_install
25398 # before this can be enabled.
25399 hardcode_into_libs=yes
25401 # Append ld.so.conf contents to the search path
25402 if test -f /etc/ld.so.conf; then
25403 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' ' '`
25404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25407 # We used to test for /lib/ld.so.1 and disable shared libraries on
25408 # powerpc, because MkLinux only supported shared libraries with the
25409 # GNU dynamic linker. Since this was broken with cross compilers,
25410 # most powerpc-linux boxes support dynamic linking these days and
25411 # people can always --disable-shared, the test was removed, and we
25412 # assume the GNU/Linux dynamic linker is in use.
25413 dynamic_linker='GNU/Linux ld.so'
25416 knetbsd*-gnu)
25417 version_type=linux
25418 need_lib_prefix=no
25419 need_version=no
25420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25421 soname_spec='${libname}${release}${shared_ext}$major'
25422 shlibpath_var=LD_LIBRARY_PATH
25423 shlibpath_overrides_runpath=no
25424 hardcode_into_libs=yes
25425 dynamic_linker='GNU ld.so'
25428 netbsd*)
25429 version_type=sunos
25430 need_lib_prefix=no
25431 need_version=no
25432 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25435 dynamic_linker='NetBSD (a.out) ld.so'
25436 else
25437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25438 soname_spec='${libname}${release}${shared_ext}$major'
25439 dynamic_linker='NetBSD ld.elf_so'
25441 shlibpath_var=LD_LIBRARY_PATH
25442 shlibpath_overrides_runpath=yes
25443 hardcode_into_libs=yes
25446 newsos6)
25447 version_type=linux
25448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25449 shlibpath_var=LD_LIBRARY_PATH
25450 shlibpath_overrides_runpath=yes
25453 nto-qnx*)
25454 version_type=linux
25455 need_lib_prefix=no
25456 need_version=no
25457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25458 soname_spec='${libname}${release}${shared_ext}$major'
25459 shlibpath_var=LD_LIBRARY_PATH
25460 shlibpath_overrides_runpath=yes
25463 openbsd*)
25464 version_type=sunos
25465 sys_lib_dlsearch_path_spec="/usr/lib"
25466 need_lib_prefix=no
25467 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25468 case $host_os in
25469 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25470 *) need_version=no ;;
25471 esac
25472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25474 shlibpath_var=LD_LIBRARY_PATH
25475 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25476 case $host_os in
25477 openbsd2.[89] | openbsd2.[89].*)
25478 shlibpath_overrides_runpath=no
25481 shlibpath_overrides_runpath=yes
25483 esac
25484 else
25485 shlibpath_overrides_runpath=yes
25489 os2*)
25490 libname_spec='$name'
25491 shrext_cmds=".dll"
25492 need_lib_prefix=no
25493 library_names_spec='$libname${shared_ext} $libname.a'
25494 dynamic_linker='OS/2 ld.exe'
25495 shlibpath_var=LIBPATH
25498 osf3* | osf4* | osf5*)
25499 version_type=osf
25500 need_lib_prefix=no
25501 need_version=no
25502 soname_spec='${libname}${release}${shared_ext}$major'
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25504 shlibpath_var=LD_LIBRARY_PATH
25505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25509 solaris*)
25510 version_type=linux
25511 need_lib_prefix=no
25512 need_version=no
25513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25514 soname_spec='${libname}${release}${shared_ext}$major'
25515 shlibpath_var=LD_LIBRARY_PATH
25516 shlibpath_overrides_runpath=yes
25517 hardcode_into_libs=yes
25518 # ldd complains unless libraries are executable
25519 postinstall_cmds='chmod +x $lib'
25522 sunos4*)
25523 version_type=sunos
25524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25526 shlibpath_var=LD_LIBRARY_PATH
25527 shlibpath_overrides_runpath=yes
25528 if test "$with_gnu_ld" = yes; then
25529 need_lib_prefix=no
25531 need_version=yes
25534 sysv4 | sysv4.3*)
25535 version_type=linux
25536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25537 soname_spec='${libname}${release}${shared_ext}$major'
25538 shlibpath_var=LD_LIBRARY_PATH
25539 case $host_vendor in
25540 sni)
25541 shlibpath_overrides_runpath=no
25542 need_lib_prefix=no
25543 export_dynamic_flag_spec='${wl}-Blargedynsym'
25544 runpath_var=LD_RUN_PATH
25546 siemens)
25547 need_lib_prefix=no
25549 motorola)
25550 need_lib_prefix=no
25551 need_version=no
25552 shlibpath_overrides_runpath=no
25553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25555 esac
25558 sysv4*MP*)
25559 if test -d /usr/nec ;then
25560 version_type=linux
25561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25562 soname_spec='$libname${shared_ext}.$major'
25563 shlibpath_var=LD_LIBRARY_PATH
25567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25568 version_type=freebsd-elf
25569 need_lib_prefix=no
25570 need_version=no
25571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25572 soname_spec='${libname}${release}${shared_ext}$major'
25573 shlibpath_var=LD_LIBRARY_PATH
25574 hardcode_into_libs=yes
25575 if test "$with_gnu_ld" = yes; then
25576 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25577 shlibpath_overrides_runpath=no
25578 else
25579 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25580 shlibpath_overrides_runpath=yes
25581 case $host_os in
25582 sco3.2v5*)
25583 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25585 esac
25587 sys_lib_dlsearch_path_spec='/usr/lib'
25590 uts4*)
25591 version_type=linux
25592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25593 soname_spec='${libname}${release}${shared_ext}$major'
25594 shlibpath_var=LD_LIBRARY_PATH
25598 dynamic_linker=no
25600 esac
25601 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25602 echo "${ECHO_T}$dynamic_linker" >&6; }
25603 test "$dynamic_linker" = no && can_build_shared=no
25605 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25606 if test "$GCC" = yes; then
25607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25610 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25611 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25612 hardcode_action_GCJ=
25613 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25614 test -n "$runpath_var_GCJ" || \
25615 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25617 # We can hardcode non-existant directories.
25618 if test "$hardcode_direct_GCJ" != no &&
25619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25620 # have to relink, otherwise we might link with an installed library
25621 # when we should be linking with a yet-to-be-installed one
25622 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25623 test "$hardcode_minus_L_GCJ" != no; then
25624 # Linking always hardcodes the temporary library directory.
25625 hardcode_action_GCJ=relink
25626 else
25627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25628 hardcode_action_GCJ=immediate
25630 else
25631 # We cannot hardcode anything, or else we can only hardcode existing
25632 # directories.
25633 hardcode_action_GCJ=unsupported
25635 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25636 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25638 if test "$hardcode_action_GCJ" = relink; then
25639 # Fast installation is not supported
25640 enable_fast_install=no
25641 elif test "$shlibpath_overrides_runpath" = yes ||
25642 test "$enable_shared" = no; then
25643 # Fast installation is not necessary
25644 enable_fast_install=needless
25648 # The else clause should only fire when bootstrapping the
25649 # libtool distribution, otherwise you forgot to ship ltmain.sh
25650 # with your package, and you will get complaints that there are
25651 # no rules to generate ltmain.sh.
25652 if test -f "$ltmain"; then
25653 # See if we are running on zsh, and set the options which allow our commands through
25654 # without removal of \ escapes.
25655 if test -n "${ZSH_VERSION+set}" ; then
25656 setopt NO_GLOB_SUBST
25658 # Now quote all the things that may contain metacharacters while being
25659 # careful not to overquote the AC_SUBSTed values. We take copies of the
25660 # variables and quote the copies for generation of the libtool script.
25661 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25662 SED SHELL STRIP \
25663 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25664 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25665 deplibs_check_method reload_flag reload_cmds need_locks \
25666 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25667 lt_cv_sys_global_symbol_to_c_name_address \
25668 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25669 old_postinstall_cmds old_postuninstall_cmds \
25670 compiler_GCJ \
25671 CC_GCJ \
25672 LD_GCJ \
25673 lt_prog_compiler_wl_GCJ \
25674 lt_prog_compiler_pic_GCJ \
25675 lt_prog_compiler_static_GCJ \
25676 lt_prog_compiler_no_builtin_flag_GCJ \
25677 export_dynamic_flag_spec_GCJ \
25678 thread_safe_flag_spec_GCJ \
25679 whole_archive_flag_spec_GCJ \
25680 enable_shared_with_static_runtimes_GCJ \
25681 old_archive_cmds_GCJ \
25682 old_archive_from_new_cmds_GCJ \
25683 predep_objects_GCJ \
25684 postdep_objects_GCJ \
25685 predeps_GCJ \
25686 postdeps_GCJ \
25687 compiler_lib_search_path_GCJ \
25688 archive_cmds_GCJ \
25689 archive_expsym_cmds_GCJ \
25690 postinstall_cmds_GCJ \
25691 postuninstall_cmds_GCJ \
25692 old_archive_from_expsyms_cmds_GCJ \
25693 allow_undefined_flag_GCJ \
25694 no_undefined_flag_GCJ \
25695 export_symbols_cmds_GCJ \
25696 hardcode_libdir_flag_spec_GCJ \
25697 hardcode_libdir_flag_spec_ld_GCJ \
25698 hardcode_libdir_separator_GCJ \
25699 hardcode_automatic_GCJ \
25700 module_cmds_GCJ \
25701 module_expsym_cmds_GCJ \
25702 lt_cv_prog_compiler_c_o_GCJ \
25703 exclude_expsyms_GCJ \
25704 include_expsyms_GCJ; do
25706 case $var in
25707 old_archive_cmds_GCJ | \
25708 old_archive_from_new_cmds_GCJ | \
25709 archive_cmds_GCJ | \
25710 archive_expsym_cmds_GCJ | \
25711 module_cmds_GCJ | \
25712 module_expsym_cmds_GCJ | \
25713 old_archive_from_expsyms_cmds_GCJ | \
25714 export_symbols_cmds_GCJ | \
25715 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25716 postinstall_cmds | postuninstall_cmds | \
25717 old_postinstall_cmds | old_postuninstall_cmds | \
25718 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25719 # Double-quote double-evaled strings.
25720 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25723 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25725 esac
25726 done
25728 case $lt_echo in
25729 *'\$0 --fallback-echo"')
25730 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25732 esac
25734 cfgfile="$ofile"
25736 cat <<__EOF__ >> "$cfgfile"
25737 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25739 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25741 # Shell to use when invoking shell scripts.
25742 SHELL=$lt_SHELL
25744 # Whether or not to build shared libraries.
25745 build_libtool_libs=$enable_shared
25747 # Whether or not to build static libraries.
25748 build_old_libs=$enable_static
25750 # Whether or not to add -lc for building shared libraries.
25751 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25753 # Whether or not to disallow shared libs when runtime libs are static
25754 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25756 # Whether or not to optimize for fast installation.
25757 fast_install=$enable_fast_install
25759 # The host system.
25760 host_alias=$host_alias
25761 host=$host
25762 host_os=$host_os
25764 # The build system.
25765 build_alias=$build_alias
25766 build=$build
25767 build_os=$build_os
25769 # An echo program that does not interpret backslashes.
25770 echo=$lt_echo
25772 # The archiver.
25773 AR=$lt_AR
25774 AR_FLAGS=$lt_AR_FLAGS
25776 # A C compiler.
25777 LTCC=$lt_LTCC
25779 # LTCC compiler flags.
25780 LTCFLAGS=$lt_LTCFLAGS
25782 # A language-specific compiler.
25783 CC=$lt_compiler_GCJ
25785 # Is the compiler the GNU C compiler?
25786 with_gcc=$GCC_GCJ
25788 # An ERE matcher.
25789 EGREP=$lt_EGREP
25791 # The linker used to build libraries.
25792 LD=$lt_LD_GCJ
25794 # Whether we need hard or soft links.
25795 LN_S=$lt_LN_S
25797 # A BSD-compatible nm program.
25798 NM=$lt_NM
25800 # A symbol stripping program
25801 STRIP=$lt_STRIP
25803 # Used to examine libraries when file_magic_cmd begins "file"
25804 MAGIC_CMD=$MAGIC_CMD
25806 # Used on cygwin: DLL creation program.
25807 DLLTOOL="$DLLTOOL"
25809 # Used on cygwin: object dumper.
25810 OBJDUMP="$OBJDUMP"
25812 # Used on cygwin: assembler.
25813 AS="$AS"
25815 # The name of the directory that contains temporary libtool files.
25816 objdir=$objdir
25818 # How to create reloadable object files.
25819 reload_flag=$lt_reload_flag
25820 reload_cmds=$lt_reload_cmds
25822 # How to pass a linker flag through the compiler.
25823 wl=$lt_lt_prog_compiler_wl_GCJ
25825 # Object file suffix (normally "o").
25826 objext="$ac_objext"
25828 # Old archive suffix (normally "a").
25829 libext="$libext"
25831 # Shared library suffix (normally ".so").
25832 shrext_cmds='$shrext_cmds'
25834 # Executable file suffix (normally "").
25835 exeext="$exeext"
25837 # Additional compiler flags for building library objects.
25838 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25839 pic_mode=$pic_mode
25841 # What is the maximum length of a command?
25842 max_cmd_len=$lt_cv_sys_max_cmd_len
25844 # Does compiler simultaneously support -c and -o options?
25845 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25847 # Must we lock files when doing compilation?
25848 need_locks=$lt_need_locks
25850 # Do we need the lib prefix for modules?
25851 need_lib_prefix=$need_lib_prefix
25853 # Do we need a version for libraries?
25854 need_version=$need_version
25856 # Whether dlopen is supported.
25857 dlopen_support=$enable_dlopen
25859 # Whether dlopen of programs is supported.
25860 dlopen_self=$enable_dlopen_self
25862 # Whether dlopen of statically linked programs is supported.
25863 dlopen_self_static=$enable_dlopen_self_static
25865 # Compiler flag to prevent dynamic linking.
25866 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25868 # Compiler flag to turn off builtin functions.
25869 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25871 # Compiler flag to allow reflexive dlopens.
25872 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25874 # Compiler flag to generate shared objects directly from archives.
25875 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25877 # Compiler flag to generate thread-safe objects.
25878 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25880 # Library versioning type.
25881 version_type=$version_type
25883 # Format of library name prefix.
25884 libname_spec=$lt_libname_spec
25886 # List of archive names. First name is the real one, the rest are links.
25887 # The last name is the one that the linker finds with -lNAME.
25888 library_names_spec=$lt_library_names_spec
25890 # The coded name of the library, if different from the real name.
25891 soname_spec=$lt_soname_spec
25893 # Commands used to build and install an old-style archive.
25894 RANLIB=$lt_RANLIB
25895 old_archive_cmds=$lt_old_archive_cmds_GCJ
25896 old_postinstall_cmds=$lt_old_postinstall_cmds
25897 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25899 # Create an old-style archive from a shared archive.
25900 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25902 # Create a temporary old-style archive to link instead of a shared archive.
25903 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25905 # Commands used to build and install a shared archive.
25906 archive_cmds=$lt_archive_cmds_GCJ
25907 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25908 postinstall_cmds=$lt_postinstall_cmds
25909 postuninstall_cmds=$lt_postuninstall_cmds
25911 # Commands used to build a loadable module (assumed same as above if empty)
25912 module_cmds=$lt_module_cmds_GCJ
25913 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25915 # Commands to strip libraries.
25916 old_striplib=$lt_old_striplib
25917 striplib=$lt_striplib
25919 # Dependencies to place before the objects being linked to create a
25920 # shared library.
25921 predep_objects=$lt_predep_objects_GCJ
25923 # Dependencies to place after the objects being linked to create a
25924 # shared library.
25925 postdep_objects=$lt_postdep_objects_GCJ
25927 # Dependencies to place before the objects being linked to create a
25928 # shared library.
25929 predeps=$lt_predeps_GCJ
25931 # Dependencies to place after the objects being linked to create a
25932 # shared library.
25933 postdeps=$lt_postdeps_GCJ
25935 # The library search path used internally by the compiler when linking
25936 # a shared library.
25937 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25939 # Method to check whether dependent libraries are shared objects.
25940 deplibs_check_method=$lt_deplibs_check_method
25942 # Command to use when deplibs_check_method == file_magic.
25943 file_magic_cmd=$lt_file_magic_cmd
25945 # Flag that allows shared libraries with undefined symbols to be built.
25946 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25948 # Flag that forces no undefined symbols.
25949 no_undefined_flag=$lt_no_undefined_flag_GCJ
25951 # Commands used to finish a libtool library installation in a directory.
25952 finish_cmds=$lt_finish_cmds
25954 # Same as above, but a single script fragment to be evaled but not shown.
25955 finish_eval=$lt_finish_eval
25957 # Take the output of nm and produce a listing of raw symbols and C names.
25958 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25960 # Transform the output of nm in a proper C declaration
25961 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25963 # Transform the output of nm in a C name address pair
25964 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25966 # This is the shared library runtime path variable.
25967 runpath_var=$runpath_var
25969 # This is the shared library path variable.
25970 shlibpath_var=$shlibpath_var
25972 # Is shlibpath searched before the hard-coded library search path?
25973 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25975 # How to hardcode a shared library path into an executable.
25976 hardcode_action=$hardcode_action_GCJ
25978 # Whether we should hardcode library paths into libraries.
25979 hardcode_into_libs=$hardcode_into_libs
25981 # Flag to hardcode \$libdir into a binary during linking.
25982 # This must work even if \$libdir does not exist.
25983 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25985 # If ld is used when linking, flag to hardcode \$libdir into
25986 # a binary during linking. This must work even if \$libdir does
25987 # not exist.
25988 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25990 # Whether we need a single -rpath flag with a separated argument.
25991 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25993 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25994 # resulting binary.
25995 hardcode_direct=$hardcode_direct_GCJ
25997 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25998 # resulting binary.
25999 hardcode_minus_L=$hardcode_minus_L_GCJ
26001 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26002 # the resulting binary.
26003 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26005 # Set to yes if building a shared library automatically hardcodes DIR into the library
26006 # and all subsequent libraries and executables linked against it.
26007 hardcode_automatic=$hardcode_automatic_GCJ
26009 # Variables whose values should be saved in libtool wrapper scripts and
26010 # restored at relink time.
26011 variables_saved_for_relink="$variables_saved_for_relink"
26013 # Whether libtool must link a program against all its dependency libraries.
26014 link_all_deplibs=$link_all_deplibs_GCJ
26016 # Compile-time system search path for libraries
26017 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26019 # Run-time system search path for libraries
26020 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26022 # Fix the shell variable \$srcfile for the compiler.
26023 fix_srcfile_path="$fix_srcfile_path_GCJ"
26025 # Set to yes if exported symbols are required.
26026 always_export_symbols=$always_export_symbols_GCJ
26028 # The commands to list exported symbols.
26029 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26031 # The commands to extract the exported symbol list from a shared archive.
26032 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26034 # Symbols that should not be listed in the preloaded symbols.
26035 exclude_expsyms=$lt_exclude_expsyms_GCJ
26037 # Symbols that must always be exported.
26038 include_expsyms=$lt_include_expsyms_GCJ
26040 # ### END LIBTOOL TAG CONFIG: $tagname
26042 __EOF__
26045 else
26046 # If there is no Makefile yet, we rely on a make rule to execute
26047 # `config.status --recheck' to rerun these tests and create the
26048 # libtool script then.
26049 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26050 if test -f "$ltmain_in"; then
26051 test -f Makefile && make "$ltmain"
26056 ac_ext=c
26057 ac_cpp='$CPP $CPPFLAGS'
26058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26062 CC="$lt_save_CC"
26064 else
26065 tagname=""
26070 ac_ext=c
26071 ac_cpp='$CPP $CPPFLAGS'
26072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26077 # Source file extension for RC test sources.
26078 ac_ext=rc
26080 # Object file extension for compiled RC test sources.
26081 objext=o
26082 objext_RC=$objext
26084 # Code to be used in simple compile tests
26085 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26087 # Code to be used in simple link tests
26088 lt_simple_link_test_code="$lt_simple_compile_test_code"
26090 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26092 # If no C compiler was specified, use CC.
26093 LTCC=${LTCC-"$CC"}
26095 # If no C compiler flags were specified, use CFLAGS.
26096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26098 # Allow CC to be a program name with arguments.
26099 compiler=$CC
26102 # save warnings/boilerplate of simple test code
26103 ac_outfile=conftest.$ac_objext
26104 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26105 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26106 _lt_compiler_boilerplate=`cat conftest.err`
26107 $rm conftest*
26109 ac_outfile=conftest.$ac_objext
26110 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26111 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26112 _lt_linker_boilerplate=`cat conftest.err`
26113 $rm conftest*
26116 # Allow CC to be a program name with arguments.
26117 lt_save_CC="$CC"
26118 CC=${RC-"windres"}
26119 compiler=$CC
26120 compiler_RC=$CC
26121 for cc_temp in $compiler""; do
26122 case $cc_temp in
26123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26125 \-*) ;;
26126 *) break;;
26127 esac
26128 done
26129 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26131 lt_cv_prog_compiler_c_o_RC=yes
26133 # The else clause should only fire when bootstrapping the
26134 # libtool distribution, otherwise you forgot to ship ltmain.sh
26135 # with your package, and you will get complaints that there are
26136 # no rules to generate ltmain.sh.
26137 if test -f "$ltmain"; then
26138 # See if we are running on zsh, and set the options which allow our commands through
26139 # without removal of \ escapes.
26140 if test -n "${ZSH_VERSION+set}" ; then
26141 setopt NO_GLOB_SUBST
26143 # Now quote all the things that may contain metacharacters while being
26144 # careful not to overquote the AC_SUBSTed values. We take copies of the
26145 # variables and quote the copies for generation of the libtool script.
26146 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26147 SED SHELL STRIP \
26148 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26149 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26150 deplibs_check_method reload_flag reload_cmds need_locks \
26151 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26152 lt_cv_sys_global_symbol_to_c_name_address \
26153 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26154 old_postinstall_cmds old_postuninstall_cmds \
26155 compiler_RC \
26156 CC_RC \
26157 LD_RC \
26158 lt_prog_compiler_wl_RC \
26159 lt_prog_compiler_pic_RC \
26160 lt_prog_compiler_static_RC \
26161 lt_prog_compiler_no_builtin_flag_RC \
26162 export_dynamic_flag_spec_RC \
26163 thread_safe_flag_spec_RC \
26164 whole_archive_flag_spec_RC \
26165 enable_shared_with_static_runtimes_RC \
26166 old_archive_cmds_RC \
26167 old_archive_from_new_cmds_RC \
26168 predep_objects_RC \
26169 postdep_objects_RC \
26170 predeps_RC \
26171 postdeps_RC \
26172 compiler_lib_search_path_RC \
26173 archive_cmds_RC \
26174 archive_expsym_cmds_RC \
26175 postinstall_cmds_RC \
26176 postuninstall_cmds_RC \
26177 old_archive_from_expsyms_cmds_RC \
26178 allow_undefined_flag_RC \
26179 no_undefined_flag_RC \
26180 export_symbols_cmds_RC \
26181 hardcode_libdir_flag_spec_RC \
26182 hardcode_libdir_flag_spec_ld_RC \
26183 hardcode_libdir_separator_RC \
26184 hardcode_automatic_RC \
26185 module_cmds_RC \
26186 module_expsym_cmds_RC \
26187 lt_cv_prog_compiler_c_o_RC \
26188 exclude_expsyms_RC \
26189 include_expsyms_RC; do
26191 case $var in
26192 old_archive_cmds_RC | \
26193 old_archive_from_new_cmds_RC | \
26194 archive_cmds_RC | \
26195 archive_expsym_cmds_RC | \
26196 module_cmds_RC | \
26197 module_expsym_cmds_RC | \
26198 old_archive_from_expsyms_cmds_RC | \
26199 export_symbols_cmds_RC | \
26200 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26201 postinstall_cmds | postuninstall_cmds | \
26202 old_postinstall_cmds | old_postuninstall_cmds | \
26203 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26204 # Double-quote double-evaled strings.
26205 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26208 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26210 esac
26211 done
26213 case $lt_echo in
26214 *'\$0 --fallback-echo"')
26215 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26217 esac
26219 cfgfile="$ofile"
26221 cat <<__EOF__ >> "$cfgfile"
26222 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26224 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26226 # Shell to use when invoking shell scripts.
26227 SHELL=$lt_SHELL
26229 # Whether or not to build shared libraries.
26230 build_libtool_libs=$enable_shared
26232 # Whether or not to build static libraries.
26233 build_old_libs=$enable_static
26235 # Whether or not to add -lc for building shared libraries.
26236 build_libtool_need_lc=$archive_cmds_need_lc_RC
26238 # Whether or not to disallow shared libs when runtime libs are static
26239 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26241 # Whether or not to optimize for fast installation.
26242 fast_install=$enable_fast_install
26244 # The host system.
26245 host_alias=$host_alias
26246 host=$host
26247 host_os=$host_os
26249 # The build system.
26250 build_alias=$build_alias
26251 build=$build
26252 build_os=$build_os
26254 # An echo program that does not interpret backslashes.
26255 echo=$lt_echo
26257 # The archiver.
26258 AR=$lt_AR
26259 AR_FLAGS=$lt_AR_FLAGS
26261 # A C compiler.
26262 LTCC=$lt_LTCC
26264 # LTCC compiler flags.
26265 LTCFLAGS=$lt_LTCFLAGS
26267 # A language-specific compiler.
26268 CC=$lt_compiler_RC
26270 # Is the compiler the GNU C compiler?
26271 with_gcc=$GCC_RC
26273 # An ERE matcher.
26274 EGREP=$lt_EGREP
26276 # The linker used to build libraries.
26277 LD=$lt_LD_RC
26279 # Whether we need hard or soft links.
26280 LN_S=$lt_LN_S
26282 # A BSD-compatible nm program.
26283 NM=$lt_NM
26285 # A symbol stripping program
26286 STRIP=$lt_STRIP
26288 # Used to examine libraries when file_magic_cmd begins "file"
26289 MAGIC_CMD=$MAGIC_CMD
26291 # Used on cygwin: DLL creation program.
26292 DLLTOOL="$DLLTOOL"
26294 # Used on cygwin: object dumper.
26295 OBJDUMP="$OBJDUMP"
26297 # Used on cygwin: assembler.
26298 AS="$AS"
26300 # The name of the directory that contains temporary libtool files.
26301 objdir=$objdir
26303 # How to create reloadable object files.
26304 reload_flag=$lt_reload_flag
26305 reload_cmds=$lt_reload_cmds
26307 # How to pass a linker flag through the compiler.
26308 wl=$lt_lt_prog_compiler_wl_RC
26310 # Object file suffix (normally "o").
26311 objext="$ac_objext"
26313 # Old archive suffix (normally "a").
26314 libext="$libext"
26316 # Shared library suffix (normally ".so").
26317 shrext_cmds='$shrext_cmds'
26319 # Executable file suffix (normally "").
26320 exeext="$exeext"
26322 # Additional compiler flags for building library objects.
26323 pic_flag=$lt_lt_prog_compiler_pic_RC
26324 pic_mode=$pic_mode
26326 # What is the maximum length of a command?
26327 max_cmd_len=$lt_cv_sys_max_cmd_len
26329 # Does compiler simultaneously support -c and -o options?
26330 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26332 # Must we lock files when doing compilation?
26333 need_locks=$lt_need_locks
26335 # Do we need the lib prefix for modules?
26336 need_lib_prefix=$need_lib_prefix
26338 # Do we need a version for libraries?
26339 need_version=$need_version
26341 # Whether dlopen is supported.
26342 dlopen_support=$enable_dlopen
26344 # Whether dlopen of programs is supported.
26345 dlopen_self=$enable_dlopen_self
26347 # Whether dlopen of statically linked programs is supported.
26348 dlopen_self_static=$enable_dlopen_self_static
26350 # Compiler flag to prevent dynamic linking.
26351 link_static_flag=$lt_lt_prog_compiler_static_RC
26353 # Compiler flag to turn off builtin functions.
26354 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26356 # Compiler flag to allow reflexive dlopens.
26357 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26359 # Compiler flag to generate shared objects directly from archives.
26360 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26362 # Compiler flag to generate thread-safe objects.
26363 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26365 # Library versioning type.
26366 version_type=$version_type
26368 # Format of library name prefix.
26369 libname_spec=$lt_libname_spec
26371 # List of archive names. First name is the real one, the rest are links.
26372 # The last name is the one that the linker finds with -lNAME.
26373 library_names_spec=$lt_library_names_spec
26375 # The coded name of the library, if different from the real name.
26376 soname_spec=$lt_soname_spec
26378 # Commands used to build and install an old-style archive.
26379 RANLIB=$lt_RANLIB
26380 old_archive_cmds=$lt_old_archive_cmds_RC
26381 old_postinstall_cmds=$lt_old_postinstall_cmds
26382 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26384 # Create an old-style archive from a shared archive.
26385 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26387 # Create a temporary old-style archive to link instead of a shared archive.
26388 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26390 # Commands used to build and install a shared archive.
26391 archive_cmds=$lt_archive_cmds_RC
26392 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26393 postinstall_cmds=$lt_postinstall_cmds
26394 postuninstall_cmds=$lt_postuninstall_cmds
26396 # Commands used to build a loadable module (assumed same as above if empty)
26397 module_cmds=$lt_module_cmds_RC
26398 module_expsym_cmds=$lt_module_expsym_cmds_RC
26400 # Commands to strip libraries.
26401 old_striplib=$lt_old_striplib
26402 striplib=$lt_striplib
26404 # Dependencies to place before the objects being linked to create a
26405 # shared library.
26406 predep_objects=$lt_predep_objects_RC
26408 # Dependencies to place after the objects being linked to create a
26409 # shared library.
26410 postdep_objects=$lt_postdep_objects_RC
26412 # Dependencies to place before the objects being linked to create a
26413 # shared library.
26414 predeps=$lt_predeps_RC
26416 # Dependencies to place after the objects being linked to create a
26417 # shared library.
26418 postdeps=$lt_postdeps_RC
26420 # The library search path used internally by the compiler when linking
26421 # a shared library.
26422 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26424 # Method to check whether dependent libraries are shared objects.
26425 deplibs_check_method=$lt_deplibs_check_method
26427 # Command to use when deplibs_check_method == file_magic.
26428 file_magic_cmd=$lt_file_magic_cmd
26430 # Flag that allows shared libraries with undefined symbols to be built.
26431 allow_undefined_flag=$lt_allow_undefined_flag_RC
26433 # Flag that forces no undefined symbols.
26434 no_undefined_flag=$lt_no_undefined_flag_RC
26436 # Commands used to finish a libtool library installation in a directory.
26437 finish_cmds=$lt_finish_cmds
26439 # Same as above, but a single script fragment to be evaled but not shown.
26440 finish_eval=$lt_finish_eval
26442 # Take the output of nm and produce a listing of raw symbols and C names.
26443 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26445 # Transform the output of nm in a proper C declaration
26446 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26448 # Transform the output of nm in a C name address pair
26449 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26451 # This is the shared library runtime path variable.
26452 runpath_var=$runpath_var
26454 # This is the shared library path variable.
26455 shlibpath_var=$shlibpath_var
26457 # Is shlibpath searched before the hard-coded library search path?
26458 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26460 # How to hardcode a shared library path into an executable.
26461 hardcode_action=$hardcode_action_RC
26463 # Whether we should hardcode library paths into libraries.
26464 hardcode_into_libs=$hardcode_into_libs
26466 # Flag to hardcode \$libdir into a binary during linking.
26467 # This must work even if \$libdir does not exist.
26468 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26470 # If ld is used when linking, flag to hardcode \$libdir into
26471 # a binary during linking. This must work even if \$libdir does
26472 # not exist.
26473 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26475 # Whether we need a single -rpath flag with a separated argument.
26476 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26478 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26479 # resulting binary.
26480 hardcode_direct=$hardcode_direct_RC
26482 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26483 # resulting binary.
26484 hardcode_minus_L=$hardcode_minus_L_RC
26486 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26487 # the resulting binary.
26488 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26490 # Set to yes if building a shared library automatically hardcodes DIR into the library
26491 # and all subsequent libraries and executables linked against it.
26492 hardcode_automatic=$hardcode_automatic_RC
26494 # Variables whose values should be saved in libtool wrapper scripts and
26495 # restored at relink time.
26496 variables_saved_for_relink="$variables_saved_for_relink"
26498 # Whether libtool must link a program against all its dependency libraries.
26499 link_all_deplibs=$link_all_deplibs_RC
26501 # Compile-time system search path for libraries
26502 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26504 # Run-time system search path for libraries
26505 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26507 # Fix the shell variable \$srcfile for the compiler.
26508 fix_srcfile_path="$fix_srcfile_path_RC"
26510 # Set to yes if exported symbols are required.
26511 always_export_symbols=$always_export_symbols_RC
26513 # The commands to list exported symbols.
26514 export_symbols_cmds=$lt_export_symbols_cmds_RC
26516 # The commands to extract the exported symbol list from a shared archive.
26517 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26519 # Symbols that should not be listed in the preloaded symbols.
26520 exclude_expsyms=$lt_exclude_expsyms_RC
26522 # Symbols that must always be exported.
26523 include_expsyms=$lt_include_expsyms_RC
26525 # ### END LIBTOOL TAG CONFIG: $tagname
26527 __EOF__
26530 else
26531 # If there is no Makefile yet, we rely on a make rule to execute
26532 # `config.status --recheck' to rerun these tests and create the
26533 # libtool script then.
26534 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26535 if test -f "$ltmain_in"; then
26536 test -f Makefile && make "$ltmain"
26541 ac_ext=c
26542 ac_cpp='$CPP $CPPFLAGS'
26543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26547 CC="$lt_save_CC"
26552 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26553 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26554 { (exit 1); exit 1; }; }
26556 esac
26558 # Append the new tag name to the list of available tags.
26559 if test -n "$tagname" ; then
26560 available_tags="$available_tags $tagname"
26563 done
26564 IFS="$lt_save_ifs"
26566 # Now substitute the updated list of available tags.
26567 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26568 mv "${ofile}T" "$ofile"
26569 chmod +x "$ofile"
26570 else
26571 rm -f "${ofile}T"
26572 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26573 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26574 { (exit 1); exit 1; }; }
26580 # This can be used to rebuild libtool when needed
26581 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26583 # Always use our own libtool.
26584 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
26586 # Prevent multiple expansion
26608 if test "$lt_cv_dlopen_self" = "yes" ; then
26610 cat >>confdefs.h <<\_ACEOF
26611 #define CAN_DLOPEN_SELF 1
26612 _ACEOF
26616 etags_version=`$ETAGS --version 2>&1`
26617 case "$etags_version" in
26618 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26619 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26620 *) ETAGSFLAGS="" ;;
26621 esac
26622 ETAGSFLAGS=$ETAGSFLAGS
26625 if test "$WITH_LLVMGCCDIR" = "default" ; then
26626 LLVMGCC="llvm-gcc${EXEEXT}"
26627 LLVMGXX="llvm-g++${EXEEXT}"
26628 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26629 set dummy $LLVMGCC; ac_word=$2
26630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26632 if test "${ac_cv_path_LLVMGCC+set}" = set; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26634 else
26635 case $LLVMGCC in
26636 [\\/]* | ?:[\\/]*)
26637 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26641 for as_dir in $PATH
26643 IFS=$as_save_IFS
26644 test -z "$as_dir" && as_dir=.
26645 for ac_exec_ext in '' $ac_executable_extensions; do
26646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26647 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26649 break 2
26651 done
26652 done
26653 IFS=$as_save_IFS
26656 esac
26658 LLVMGCC=$ac_cv_path_LLVMGCC
26659 if test -n "$LLVMGCC"; then
26660 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26661 echo "${ECHO_T}$LLVMGCC" >&6; }
26662 else
26663 { echo "$as_me:$LINENO: result: no" >&5
26664 echo "${ECHO_T}no" >&6; }
26668 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26669 set dummy $LLVMGXX; ac_word=$2
26670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26672 if test "${ac_cv_path_LLVMGXX+set}" = set; then
26673 echo $ECHO_N "(cached) $ECHO_C" >&6
26674 else
26675 case $LLVMGXX in
26676 [\\/]* | ?:[\\/]*)
26677 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26681 for as_dir in $PATH
26683 IFS=$as_save_IFS
26684 test -z "$as_dir" && as_dir=.
26685 for ac_exec_ext in '' $ac_executable_extensions; do
26686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
26687 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26689 break 2
26691 done
26692 done
26693 IFS=$as_save_IFS
26696 esac
26698 LLVMGXX=$ac_cv_path_LLVMGXX
26699 if test -n "$LLVMGXX"; then
26700 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26701 echo "${ECHO_T}$LLVMGXX" >&6; }
26702 else
26703 { echo "$as_me:$LINENO: result: no" >&5
26704 echo "${ECHO_T}no" >&6; }
26708 else
26709 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26710 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26711 LLVMGCC=$LLVMGCC
26713 LLVMGXX=$LLVMGXX
26717 { echo "$as_me:$LINENO: checking tool compatibility" >&5
26718 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
26720 ICC=no
26721 IXX=no
26722 case $CC in
26723 icc*|icpc*)
26724 ICC=yes
26725 IXX=yes
26729 esac
26731 if test "$GCC" != "yes" && test "$ICC" != "yes"
26732 then
26733 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26734 echo "$as_me: error: gcc|icc required but not found" >&2;}
26735 { (exit 1); exit 1; }; }
26738 if test "$GXX" != "yes" && test "$IXX" != "yes"
26739 then
26740 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26741 echo "$as_me: error: g++|icc required but not found" >&2;}
26742 { (exit 1); exit 1; }; }
26745 if test "$GCC" = "yes"
26746 then
26747 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
26748 if test "$gccmajor" -lt "3"
26749 then
26750 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26751 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26752 { (exit 1); exit 1; }; }
26756 if test -z "$llvm_cv_gnu_make_command"
26757 then
26758 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26759 echo "$as_me: error: GNU Make required but not found" >&2;}
26760 { (exit 1); exit 1; }; }
26763 { echo "$as_me:$LINENO: result: ok" >&5
26764 echo "${ECHO_T}ok" >&6; }
26768 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26769 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26770 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
26772 else
26773 ac_check_lib_save_LIBS=$LIBS
26774 LIBS="-lelf $LIBS"
26775 cat >conftest.$ac_ext <<_ACEOF
26776 /* confdefs.h. */
26777 _ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h. */
26782 /* Override any GCC internal prototype to avoid an error.
26783 Use char because int might match the return type of a GCC
26784 builtin and then its argument prototype would still apply. */
26785 #ifdef __cplusplus
26786 extern "C"
26787 #endif
26788 char elf_begin ();
26790 main ()
26792 return elf_begin ();
26794 return 0;
26796 _ACEOF
26797 rm -f conftest.$ac_objext conftest$ac_exeext
26798 if { (ac_try="$ac_link"
26799 case "(($ac_try" in
26800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26801 *) ac_try_echo=$ac_try;;
26802 esac
26803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26804 (eval "$ac_link") 2>conftest.er1
26805 ac_status=$?
26806 grep -v '^ *+' conftest.er1 >conftest.err
26807 rm -f conftest.er1
26808 cat conftest.err >&5
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); } &&
26811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26812 { (case "(($ac_try" in
26813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814 *) ac_try_echo=$ac_try;;
26815 esac
26816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817 (eval "$ac_try") 2>&5
26818 ac_status=$?
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; } &&
26821 { ac_try='test -s conftest$ac_exeext'
26822 { (case "(($ac_try" in
26823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26824 *) ac_try_echo=$ac_try;;
26825 esac
26826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26827 (eval "$ac_try") 2>&5
26828 ac_status=$?
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); }; }; then
26831 ac_cv_lib_elf_elf_begin=yes
26832 else
26833 echo "$as_me: failed program was:" >&5
26834 sed 's/^/| /' conftest.$ac_ext >&5
26836 ac_cv_lib_elf_elf_begin=no
26839 rm -f core conftest.err conftest.$ac_objext \
26840 conftest$ac_exeext conftest.$ac_ext
26841 LIBS=$ac_check_lib_save_LIBS
26843 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26844 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26845 if test $ac_cv_lib_elf_elf_begin = yes; then
26846 cat >>confdefs.h <<_ACEOF
26847 #define HAVE_LIBELF 1
26848 _ACEOF
26850 LIBS="-lelf $LIBS"
26855 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26856 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26857 if test "${ac_cv_lib_m_sin+set}" = set; then
26858 echo $ECHO_N "(cached) $ECHO_C" >&6
26859 else
26860 ac_check_lib_save_LIBS=$LIBS
26861 LIBS="-lm $LIBS"
26862 cat >conftest.$ac_ext <<_ACEOF
26863 /* confdefs.h. */
26864 _ACEOF
26865 cat confdefs.h >>conftest.$ac_ext
26866 cat >>conftest.$ac_ext <<_ACEOF
26867 /* end confdefs.h. */
26869 /* Override any GCC internal prototype to avoid an error.
26870 Use char because int might match the return type of a GCC
26871 builtin and then its argument prototype would still apply. */
26872 #ifdef __cplusplus
26873 extern "C"
26874 #endif
26875 char sin ();
26877 main ()
26879 return sin ();
26881 return 0;
26883 _ACEOF
26884 rm -f conftest.$ac_objext conftest$ac_exeext
26885 if { (ac_try="$ac_link"
26886 case "(($ac_try" in
26887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26888 *) ac_try_echo=$ac_try;;
26889 esac
26890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26891 (eval "$ac_link") 2>conftest.er1
26892 ac_status=$?
26893 grep -v '^ *+' conftest.er1 >conftest.err
26894 rm -f conftest.er1
26895 cat conftest.err >&5
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); } &&
26898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26899 { (case "(($ac_try" in
26900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26901 *) ac_try_echo=$ac_try;;
26902 esac
26903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26904 (eval "$ac_try") 2>&5
26905 ac_status=$?
26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); }; } &&
26908 { ac_try='test -s conftest$ac_exeext'
26909 { (case "(($ac_try" in
26910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26911 *) ac_try_echo=$ac_try;;
26912 esac
26913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26914 (eval "$ac_try") 2>&5
26915 ac_status=$?
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; }; then
26918 ac_cv_lib_m_sin=yes
26919 else
26920 echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26923 ac_cv_lib_m_sin=no
26926 rm -f core conftest.err conftest.$ac_objext \
26927 conftest$ac_exeext conftest.$ac_ext
26928 LIBS=$ac_check_lib_save_LIBS
26930 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26931 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26932 if test $ac_cv_lib_m_sin = yes; then
26933 cat >>confdefs.h <<_ACEOF
26934 #define HAVE_LIBM 1
26935 _ACEOF
26937 LIBS="-lm $LIBS"
26941 if test "$llvm_cv_os_type" = "MingW" ; then
26943 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26944 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26945 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26946 echo $ECHO_N "(cached) $ECHO_C" >&6
26947 else
26948 ac_check_lib_save_LIBS=$LIBS
26949 LIBS="-limagehlp $LIBS"
26950 cat >conftest.$ac_ext <<_ACEOF
26951 /* confdefs.h. */
26952 _ACEOF
26953 cat confdefs.h >>conftest.$ac_ext
26954 cat >>conftest.$ac_ext <<_ACEOF
26955 /* end confdefs.h. */
26959 main ()
26961 return main ();
26963 return 0;
26965 _ACEOF
26966 rm -f conftest.$ac_objext conftest$ac_exeext
26967 if { (ac_try="$ac_link"
26968 case "(($ac_try" in
26969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970 *) ac_try_echo=$ac_try;;
26971 esac
26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973 (eval "$ac_link") 2>conftest.er1
26974 ac_status=$?
26975 grep -v '^ *+' conftest.er1 >conftest.err
26976 rm -f conftest.er1
26977 cat conftest.err >&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
26980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26981 { (case "(($ac_try" in
26982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983 *) ac_try_echo=$ac_try;;
26984 esac
26985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986 (eval "$ac_try") 2>&5
26987 ac_status=$?
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; } &&
26990 { ac_try='test -s conftest$ac_exeext'
26991 { (case "(($ac_try" in
26992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993 *) ac_try_echo=$ac_try;;
26994 esac
26995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996 (eval "$ac_try") 2>&5
26997 ac_status=$?
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); }; }; then
27000 ac_cv_lib_imagehlp_main=yes
27001 else
27002 echo "$as_me: failed program was:" >&5
27003 sed 's/^/| /' conftest.$ac_ext >&5
27005 ac_cv_lib_imagehlp_main=no
27008 rm -f core conftest.err conftest.$ac_objext \
27009 conftest$ac_exeext conftest.$ac_ext
27010 LIBS=$ac_check_lib_save_LIBS
27012 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27013 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
27014 if test $ac_cv_lib_imagehlp_main = yes; then
27015 cat >>confdefs.h <<_ACEOF
27016 #define HAVE_LIBIMAGEHLP 1
27017 _ACEOF
27019 LIBS="-limagehlp $LIBS"
27024 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27025 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
27026 if test "${ac_cv_lib_psapi_main+set}" = set; then
27027 echo $ECHO_N "(cached) $ECHO_C" >&6
27028 else
27029 ac_check_lib_save_LIBS=$LIBS
27030 LIBS="-lpsapi $LIBS"
27031 cat >conftest.$ac_ext <<_ACEOF
27032 /* confdefs.h. */
27033 _ACEOF
27034 cat confdefs.h >>conftest.$ac_ext
27035 cat >>conftest.$ac_ext <<_ACEOF
27036 /* end confdefs.h. */
27040 main ()
27042 return main ();
27044 return 0;
27046 _ACEOF
27047 rm -f conftest.$ac_objext conftest$ac_exeext
27048 if { (ac_try="$ac_link"
27049 case "(($ac_try" in
27050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27051 *) ac_try_echo=$ac_try;;
27052 esac
27053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27054 (eval "$ac_link") 2>conftest.er1
27055 ac_status=$?
27056 grep -v '^ *+' conftest.er1 >conftest.err
27057 rm -f conftest.er1
27058 cat conftest.err >&5
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } &&
27061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27062 { (case "(($ac_try" in
27063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27064 *) ac_try_echo=$ac_try;;
27065 esac
27066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27067 (eval "$ac_try") 2>&5
27068 ac_status=$?
27069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); }; } &&
27071 { ac_try='test -s conftest$ac_exeext'
27072 { (case "(($ac_try" in
27073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27074 *) ac_try_echo=$ac_try;;
27075 esac
27076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27077 (eval "$ac_try") 2>&5
27078 ac_status=$?
27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); }; }; then
27081 ac_cv_lib_psapi_main=yes
27082 else
27083 echo "$as_me: failed program was:" >&5
27084 sed 's/^/| /' conftest.$ac_ext >&5
27086 ac_cv_lib_psapi_main=no
27089 rm -f core conftest.err conftest.$ac_objext \
27090 conftest$ac_exeext conftest.$ac_ext
27091 LIBS=$ac_check_lib_save_LIBS
27093 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27094 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
27095 if test $ac_cv_lib_psapi_main = yes; then
27096 cat >>confdefs.h <<_ACEOF
27097 #define HAVE_LIBPSAPI 1
27098 _ACEOF
27100 LIBS="-lpsapi $LIBS"
27106 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27107 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
27108 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27109 echo $ECHO_N "(cached) $ECHO_C" >&6
27110 else
27111 ac_func_search_save_LIBS=$LIBS
27112 cat >conftest.$ac_ext <<_ACEOF
27113 /* confdefs.h. */
27114 _ACEOF
27115 cat confdefs.h >>conftest.$ac_ext
27116 cat >>conftest.$ac_ext <<_ACEOF
27117 /* end confdefs.h. */
27119 /* Override any GCC internal prototype to avoid an error.
27120 Use char because int might match the return type of a GCC
27121 builtin and then its argument prototype would still apply. */
27122 #ifdef __cplusplus
27123 extern "C"
27124 #endif
27125 char lt_dlopen ();
27127 main ()
27129 return lt_dlopen ();
27131 return 0;
27133 _ACEOF
27134 for ac_lib in '' ltdl; do
27135 if test -z "$ac_lib"; then
27136 ac_res="none required"
27137 else
27138 ac_res=-l$ac_lib
27139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27141 rm -f conftest.$ac_objext conftest$ac_exeext
27142 if { (ac_try="$ac_link"
27143 case "(($ac_try" in
27144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145 *) ac_try_echo=$ac_try;;
27146 esac
27147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27148 (eval "$ac_link") 2>conftest.er1
27149 ac_status=$?
27150 grep -v '^ *+' conftest.er1 >conftest.err
27151 rm -f conftest.er1
27152 cat conftest.err >&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } &&
27155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27156 { (case "(($ac_try" in
27157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27158 *) ac_try_echo=$ac_try;;
27159 esac
27160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27161 (eval "$ac_try") 2>&5
27162 ac_status=$?
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); }; } &&
27165 { ac_try='test -s conftest$ac_exeext'
27166 { (case "(($ac_try" in
27167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168 *) ac_try_echo=$ac_try;;
27169 esac
27170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27171 (eval "$ac_try") 2>&5
27172 ac_status=$?
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); }; }; then
27175 ac_cv_search_lt_dlopen=$ac_res
27176 else
27177 echo "$as_me: failed program was:" >&5
27178 sed 's/^/| /' conftest.$ac_ext >&5
27183 rm -f core conftest.err conftest.$ac_objext \
27184 conftest$ac_exeext
27185 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27186 break
27188 done
27189 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27191 else
27192 ac_cv_search_lt_dlopen=no
27194 rm conftest.$ac_ext
27195 LIBS=$ac_func_search_save_LIBS
27197 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27198 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27199 ac_res=$ac_cv_search_lt_dlopen
27200 if test "$ac_res" != no; then
27201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27203 cat >>confdefs.h <<\_ACEOF
27204 #define HAVE_LT_DLOPEN 1
27205 _ACEOF
27207 else
27208 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27209 not be available" >&5
27210 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27211 not be available" >&2;}
27215 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27216 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27217 if test "${ac_cv_search_dlopen+set}" = set; then
27218 echo $ECHO_N "(cached) $ECHO_C" >&6
27219 else
27220 ac_func_search_save_LIBS=$LIBS
27221 cat >conftest.$ac_ext <<_ACEOF
27222 /* confdefs.h. */
27223 _ACEOF
27224 cat confdefs.h >>conftest.$ac_ext
27225 cat >>conftest.$ac_ext <<_ACEOF
27226 /* end confdefs.h. */
27228 /* Override any GCC internal prototype to avoid an error.
27229 Use char because int might match the return type of a GCC
27230 builtin and then its argument prototype would still apply. */
27231 #ifdef __cplusplus
27232 extern "C"
27233 #endif
27234 char dlopen ();
27236 main ()
27238 return dlopen ();
27240 return 0;
27242 _ACEOF
27243 for ac_lib in '' dl; do
27244 if test -z "$ac_lib"; then
27245 ac_res="none required"
27246 else
27247 ac_res=-l$ac_lib
27248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27250 rm -f conftest.$ac_objext conftest$ac_exeext
27251 if { (ac_try="$ac_link"
27252 case "(($ac_try" in
27253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27254 *) ac_try_echo=$ac_try;;
27255 esac
27256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27257 (eval "$ac_link") 2>conftest.er1
27258 ac_status=$?
27259 grep -v '^ *+' conftest.er1 >conftest.err
27260 rm -f conftest.er1
27261 cat conftest.err >&5
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); } &&
27264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27265 { (case "(($ac_try" in
27266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267 *) ac_try_echo=$ac_try;;
27268 esac
27269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270 (eval "$ac_try") 2>&5
27271 ac_status=$?
27272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273 (exit $ac_status); }; } &&
27274 { ac_try='test -s conftest$ac_exeext'
27275 { (case "(($ac_try" in
27276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27277 *) ac_try_echo=$ac_try;;
27278 esac
27279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27280 (eval "$ac_try") 2>&5
27281 ac_status=$?
27282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283 (exit $ac_status); }; }; then
27284 ac_cv_search_dlopen=$ac_res
27285 else
27286 echo "$as_me: failed program was:" >&5
27287 sed 's/^/| /' conftest.$ac_ext >&5
27292 rm -f core conftest.err conftest.$ac_objext \
27293 conftest$ac_exeext
27294 if test "${ac_cv_search_dlopen+set}" = set; then
27295 break
27297 done
27298 if test "${ac_cv_search_dlopen+set}" = set; then
27300 else
27301 ac_cv_search_dlopen=no
27303 rm conftest.$ac_ext
27304 LIBS=$ac_func_search_save_LIBS
27306 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27307 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27308 ac_res=$ac_cv_search_dlopen
27309 if test "$ac_res" != no; then
27310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27312 cat >>confdefs.h <<\_ACEOF
27313 #define HAVE_DLOPEN 1
27314 _ACEOF
27316 else
27317 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27318 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
27322 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27323 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
27324 if test "${ac_cv_search_mallinfo+set}" = set; then
27325 echo $ECHO_N "(cached) $ECHO_C" >&6
27326 else
27327 ac_func_search_save_LIBS=$LIBS
27328 cat >conftest.$ac_ext <<_ACEOF
27329 /* confdefs.h. */
27330 _ACEOF
27331 cat confdefs.h >>conftest.$ac_ext
27332 cat >>conftest.$ac_ext <<_ACEOF
27333 /* end confdefs.h. */
27335 /* Override any GCC internal prototype to avoid an error.
27336 Use char because int might match the return type of a GCC
27337 builtin and then its argument prototype would still apply. */
27338 #ifdef __cplusplus
27339 extern "C"
27340 #endif
27341 char mallinfo ();
27343 main ()
27345 return mallinfo ();
27347 return 0;
27349 _ACEOF
27350 for ac_lib in '' malloc; do
27351 if test -z "$ac_lib"; then
27352 ac_res="none required"
27353 else
27354 ac_res=-l$ac_lib
27355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27357 rm -f conftest.$ac_objext conftest$ac_exeext
27358 if { (ac_try="$ac_link"
27359 case "(($ac_try" in
27360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361 *) ac_try_echo=$ac_try;;
27362 esac
27363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364 (eval "$ac_link") 2>conftest.er1
27365 ac_status=$?
27366 grep -v '^ *+' conftest.er1 >conftest.err
27367 rm -f conftest.er1
27368 cat conftest.err >&5
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); } &&
27371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27372 { (case "(($ac_try" in
27373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374 *) ac_try_echo=$ac_try;;
27375 esac
27376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27377 (eval "$ac_try") 2>&5
27378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; } &&
27381 { ac_try='test -s conftest$ac_exeext'
27382 { (case "(($ac_try" in
27383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384 *) ac_try_echo=$ac_try;;
27385 esac
27386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387 (eval "$ac_try") 2>&5
27388 ac_status=$?
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; }; then
27391 ac_cv_search_mallinfo=$ac_res
27392 else
27393 echo "$as_me: failed program was:" >&5
27394 sed 's/^/| /' conftest.$ac_ext >&5
27399 rm -f core conftest.err conftest.$ac_objext \
27400 conftest$ac_exeext
27401 if test "${ac_cv_search_mallinfo+set}" = set; then
27402 break
27404 done
27405 if test "${ac_cv_search_mallinfo+set}" = set; then
27407 else
27408 ac_cv_search_mallinfo=no
27410 rm conftest.$ac_ext
27411 LIBS=$ac_func_search_save_LIBS
27413 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27414 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27415 ac_res=$ac_cv_search_mallinfo
27416 if test "$ac_res" != no; then
27417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27419 cat >>confdefs.h <<\_ACEOF
27420 #define HAVE_MALLINFO 1
27421 _ACEOF
27426 if test "$ENABLE_THREADS" -eq 1 ; then
27428 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27429 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
27430 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27431 echo $ECHO_N "(cached) $ECHO_C" >&6
27432 else
27433 ac_check_lib_save_LIBS=$LIBS
27434 LIBS="-lpthread $LIBS"
27435 cat >conftest.$ac_ext <<_ACEOF
27436 /* confdefs.h. */
27437 _ACEOF
27438 cat confdefs.h >>conftest.$ac_ext
27439 cat >>conftest.$ac_ext <<_ACEOF
27440 /* end confdefs.h. */
27442 /* Override any GCC internal prototype to avoid an error.
27443 Use char because int might match the return type of a GCC
27444 builtin and then its argument prototype would still apply. */
27445 #ifdef __cplusplus
27446 extern "C"
27447 #endif
27448 char pthread_mutex_init ();
27450 main ()
27452 return pthread_mutex_init ();
27454 return 0;
27456 _ACEOF
27457 rm -f conftest.$ac_objext conftest$ac_exeext
27458 if { (ac_try="$ac_link"
27459 case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27462 esac
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_link") 2>conftest.er1
27465 ac_status=$?
27466 grep -v '^ *+' conftest.er1 >conftest.err
27467 rm -f conftest.er1
27468 cat conftest.err >&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } &&
27471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27475 esac
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
27478 ac_status=$?
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; } &&
27481 { ac_try='test -s conftest$ac_exeext'
27482 { (case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27485 esac
27486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_try") 2>&5
27488 ac_status=$?
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; }; then
27491 ac_cv_lib_pthread_pthread_mutex_init=yes
27492 else
27493 echo "$as_me: failed program was:" >&5
27494 sed 's/^/| /' conftest.$ac_ext >&5
27496 ac_cv_lib_pthread_pthread_mutex_init=no
27499 rm -f core conftest.err conftest.$ac_objext \
27500 conftest$ac_exeext conftest.$ac_ext
27501 LIBS=$ac_check_lib_save_LIBS
27503 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27504 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
27505 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27506 cat >>confdefs.h <<_ACEOF
27507 #define HAVE_LIBPTHREAD 1
27508 _ACEOF
27510 LIBS="-lpthread $LIBS"
27514 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27515 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
27516 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27517 echo $ECHO_N "(cached) $ECHO_C" >&6
27518 else
27519 ac_func_search_save_LIBS=$LIBS
27520 cat >conftest.$ac_ext <<_ACEOF
27521 /* confdefs.h. */
27522 _ACEOF
27523 cat confdefs.h >>conftest.$ac_ext
27524 cat >>conftest.$ac_ext <<_ACEOF
27525 /* end confdefs.h. */
27527 /* Override any GCC internal prototype to avoid an error.
27528 Use char because int might match the return type of a GCC
27529 builtin and then its argument prototype would still apply. */
27530 #ifdef __cplusplus
27531 extern "C"
27532 #endif
27533 char pthread_mutex_lock ();
27535 main ()
27537 return pthread_mutex_lock ();
27539 return 0;
27541 _ACEOF
27542 for ac_lib in '' pthread; do
27543 if test -z "$ac_lib"; then
27544 ac_res="none required"
27545 else
27546 ac_res=-l$ac_lib
27547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27549 rm -f conftest.$ac_objext conftest$ac_exeext
27550 if { (ac_try="$ac_link"
27551 case "(($ac_try" in
27552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27553 *) ac_try_echo=$ac_try;;
27554 esac
27555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27556 (eval "$ac_link") 2>conftest.er1
27557 ac_status=$?
27558 grep -v '^ *+' conftest.er1 >conftest.err
27559 rm -f conftest.er1
27560 cat conftest.err >&5
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } &&
27563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27564 { (case "(($ac_try" in
27565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566 *) ac_try_echo=$ac_try;;
27567 esac
27568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569 (eval "$ac_try") 2>&5
27570 ac_status=$?
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; } &&
27573 { ac_try='test -s conftest$ac_exeext'
27574 { (case "(($ac_try" in
27575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576 *) ac_try_echo=$ac_try;;
27577 esac
27578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579 (eval "$ac_try") 2>&5
27580 ac_status=$?
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); }; }; then
27583 ac_cv_search_pthread_mutex_lock=$ac_res
27584 else
27585 echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27591 rm -f core conftest.err conftest.$ac_objext \
27592 conftest$ac_exeext
27593 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27594 break
27596 done
27597 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27599 else
27600 ac_cv_search_pthread_mutex_lock=no
27602 rm conftest.$ac_ext
27603 LIBS=$ac_func_search_save_LIBS
27605 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27606 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27607 ac_res=$ac_cv_search_pthread_mutex_lock
27608 if test "$ac_res" != no; then
27609 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27611 cat >>confdefs.h <<\_ACEOF
27612 #define HAVE_PTHREAD_MUTEX_LOCK 1
27613 _ACEOF
27620 # Check whether --with-udis86 was given.
27621 if test "${with_udis86+set}" = set; then
27622 withval=$with_udis86;
27623 USE_UDIS86=1
27625 case "$withval" in
27626 /usr/lib|yes) ;;
27627 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27628 esac
27630 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27631 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27632 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27633 echo $ECHO_N "(cached) $ECHO_C" >&6
27634 else
27635 ac_check_lib_save_LIBS=$LIBS
27636 LIBS="-ludis86 $LIBS"
27637 cat >conftest.$ac_ext <<_ACEOF
27638 /* confdefs.h. */
27639 _ACEOF
27640 cat confdefs.h >>conftest.$ac_ext
27641 cat >>conftest.$ac_ext <<_ACEOF
27642 /* end confdefs.h. */
27644 /* Override any GCC internal prototype to avoid an error.
27645 Use char because int might match the return type of a GCC
27646 builtin and then its argument prototype would still apply. */
27647 #ifdef __cplusplus
27648 extern "C"
27649 #endif
27650 char ud_init ();
27652 main ()
27654 return ud_init ();
27656 return 0;
27658 _ACEOF
27659 rm -f conftest.$ac_objext conftest$ac_exeext
27660 if { (ac_try="$ac_link"
27661 case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27664 esac
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_link") 2>conftest.er1
27667 ac_status=$?
27668 grep -v '^ *+' conftest.er1 >conftest.err
27669 rm -f conftest.er1
27670 cat conftest.err >&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } &&
27673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27674 { (case "(($ac_try" in
27675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676 *) ac_try_echo=$ac_try;;
27677 esac
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679 (eval "$ac_try") 2>&5
27680 ac_status=$?
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); }; } &&
27683 { ac_try='test -s conftest$ac_exeext'
27684 { (case "(($ac_try" in
27685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27686 *) ac_try_echo=$ac_try;;
27687 esac
27688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27689 (eval "$ac_try") 2>&5
27690 ac_status=$?
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); }; }; then
27693 ac_cv_lib_udis86_ud_init=yes
27694 else
27695 echo "$as_me: failed program was:" >&5
27696 sed 's/^/| /' conftest.$ac_ext >&5
27698 ac_cv_lib_udis86_ud_init=no
27701 rm -f core conftest.err conftest.$ac_objext \
27702 conftest$ac_exeext conftest.$ac_ext
27703 LIBS=$ac_check_lib_save_LIBS
27705 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27706 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27707 if test $ac_cv_lib_udis86_ud_init = yes; then
27708 cat >>confdefs.h <<_ACEOF
27709 #define HAVE_LIBUDIS86 1
27710 _ACEOF
27712 LIBS="-ludis86 $LIBS"
27714 else
27716 echo "Error! You need to have libudis86 around."
27717 exit -1
27722 else
27723 USE_UDIS86=0
27728 cat >>confdefs.h <<_ACEOF
27729 #define USE_UDIS86 $USE_UDIS86
27730 _ACEOF
27739 ac_header_dirent=no
27740 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27741 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27742 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27743 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27745 echo $ECHO_N "(cached) $ECHO_C" >&6
27746 else
27747 cat >conftest.$ac_ext <<_ACEOF
27748 /* confdefs.h. */
27749 _ACEOF
27750 cat confdefs.h >>conftest.$ac_ext
27751 cat >>conftest.$ac_ext <<_ACEOF
27752 /* end confdefs.h. */
27753 #include <sys/types.h>
27754 #include <$ac_hdr>
27757 main ()
27759 if ((DIR *) 0)
27760 return 0;
27762 return 0;
27764 _ACEOF
27765 rm -f conftest.$ac_objext
27766 if { (ac_try="$ac_compile"
27767 case "(($ac_try" in
27768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769 *) ac_try_echo=$ac_try;;
27770 esac
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772 (eval "$ac_compile") 2>conftest.er1
27773 ac_status=$?
27774 grep -v '^ *+' conftest.er1 >conftest.err
27775 rm -f conftest.er1
27776 cat conftest.err >&5
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); } &&
27779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27780 { (case "(($ac_try" in
27781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782 *) ac_try_echo=$ac_try;;
27783 esac
27784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785 (eval "$ac_try") 2>&5
27786 ac_status=$?
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); }; } &&
27789 { ac_try='test -s conftest.$ac_objext'
27790 { (case "(($ac_try" in
27791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27792 *) ac_try_echo=$ac_try;;
27793 esac
27794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27795 (eval "$ac_try") 2>&5
27796 ac_status=$?
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); }; }; then
27799 eval "$as_ac_Header=yes"
27800 else
27801 echo "$as_me: failed program was:" >&5
27802 sed 's/^/| /' conftest.$ac_ext >&5
27804 eval "$as_ac_Header=no"
27807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27809 ac_res=`eval echo '${'$as_ac_Header'}'`
27810 { echo "$as_me:$LINENO: result: $ac_res" >&5
27811 echo "${ECHO_T}$ac_res" >&6; }
27812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27813 cat >>confdefs.h <<_ACEOF
27814 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27815 _ACEOF
27817 ac_header_dirent=$ac_hdr; break
27820 done
27821 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27822 if test $ac_header_dirent = dirent.h; then
27823 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27824 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27825 if test "${ac_cv_search_opendir+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827 else
27828 ac_func_search_save_LIBS=$LIBS
27829 cat >conftest.$ac_ext <<_ACEOF
27830 /* confdefs.h. */
27831 _ACEOF
27832 cat confdefs.h >>conftest.$ac_ext
27833 cat >>conftest.$ac_ext <<_ACEOF
27834 /* end confdefs.h. */
27836 /* Override any GCC internal prototype to avoid an error.
27837 Use char because int might match the return type of a GCC
27838 builtin and then its argument prototype would still apply. */
27839 #ifdef __cplusplus
27840 extern "C"
27841 #endif
27842 char opendir ();
27844 main ()
27846 return opendir ();
27848 return 0;
27850 _ACEOF
27851 for ac_lib in '' dir; do
27852 if test -z "$ac_lib"; then
27853 ac_res="none required"
27854 else
27855 ac_res=-l$ac_lib
27856 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27858 rm -f conftest.$ac_objext conftest$ac_exeext
27859 if { (ac_try="$ac_link"
27860 case "(($ac_try" in
27861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862 *) ac_try_echo=$ac_try;;
27863 esac
27864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865 (eval "$ac_link") 2>conftest.er1
27866 ac_status=$?
27867 grep -v '^ *+' conftest.er1 >conftest.err
27868 rm -f conftest.er1
27869 cat conftest.err >&5
27870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27871 (exit $ac_status); } &&
27872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27873 { (case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27876 esac
27877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_try") 2>&5
27879 ac_status=$?
27880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881 (exit $ac_status); }; } &&
27882 { ac_try='test -s conftest$ac_exeext'
27883 { (case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27886 esac
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; }; then
27892 ac_cv_search_opendir=$ac_res
27893 else
27894 echo "$as_me: failed program was:" >&5
27895 sed 's/^/| /' conftest.$ac_ext >&5
27900 rm -f core conftest.err conftest.$ac_objext \
27901 conftest$ac_exeext
27902 if test "${ac_cv_search_opendir+set}" = set; then
27903 break
27905 done
27906 if test "${ac_cv_search_opendir+set}" = set; then
27908 else
27909 ac_cv_search_opendir=no
27911 rm conftest.$ac_ext
27912 LIBS=$ac_func_search_save_LIBS
27914 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27915 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27916 ac_res=$ac_cv_search_opendir
27917 if test "$ac_res" != no; then
27918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27922 else
27923 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27924 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
27925 if test "${ac_cv_search_opendir+set}" = set; then
27926 echo $ECHO_N "(cached) $ECHO_C" >&6
27927 else
27928 ac_func_search_save_LIBS=$LIBS
27929 cat >conftest.$ac_ext <<_ACEOF
27930 /* confdefs.h. */
27931 _ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h. */
27936 /* Override any GCC internal prototype to avoid an error.
27937 Use char because int might match the return type of a GCC
27938 builtin and then its argument prototype would still apply. */
27939 #ifdef __cplusplus
27940 extern "C"
27941 #endif
27942 char opendir ();
27944 main ()
27946 return opendir ();
27948 return 0;
27950 _ACEOF
27951 for ac_lib in '' x; do
27952 if test -z "$ac_lib"; then
27953 ac_res="none required"
27954 else
27955 ac_res=-l$ac_lib
27956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27958 rm -f conftest.$ac_objext conftest$ac_exeext
27959 if { (ac_try="$ac_link"
27960 case "(($ac_try" in
27961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962 *) ac_try_echo=$ac_try;;
27963 esac
27964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965 (eval "$ac_link") 2>conftest.er1
27966 ac_status=$?
27967 grep -v '^ *+' conftest.er1 >conftest.err
27968 rm -f conftest.er1
27969 cat conftest.err >&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971 (exit $ac_status); } &&
27972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27973 { (case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27976 esac
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_try") 2>&5
27979 ac_status=$?
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); }; } &&
27982 { ac_try='test -s conftest$ac_exeext'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27986 esac
27987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27989 ac_status=$?
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; }; then
27992 ac_cv_search_opendir=$ac_res
27993 else
27994 echo "$as_me: failed program was:" >&5
27995 sed 's/^/| /' conftest.$ac_ext >&5
28000 rm -f core conftest.err conftest.$ac_objext \
28001 conftest$ac_exeext
28002 if test "${ac_cv_search_opendir+set}" = set; then
28003 break
28005 done
28006 if test "${ac_cv_search_opendir+set}" = set; then
28008 else
28009 ac_cv_search_opendir=no
28011 rm conftest.$ac_ext
28012 LIBS=$ac_func_search_save_LIBS
28014 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28015 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28016 ac_res=$ac_cv_search_opendir
28017 if test "$ac_res" != no; then
28018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28024 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28025 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
28026 if test "${ac_cv_header_mmap_anon+set}" = set; then
28027 echo $ECHO_N "(cached) $ECHO_C" >&6
28028 else
28029 ac_ext=c
28030 ac_cpp='$CPP $CPPFLAGS'
28031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28035 cat >conftest.$ac_ext <<_ACEOF
28036 /* confdefs.h. */
28037 _ACEOF
28038 cat confdefs.h >>conftest.$ac_ext
28039 cat >>conftest.$ac_ext <<_ACEOF
28040 /* end confdefs.h. */
28041 #include <sys/mman.h>
28042 #include <unistd.h>
28043 #include <fcntl.h>
28045 main ()
28047 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28049 return 0;
28051 _ACEOF
28052 rm -f conftest.$ac_objext
28053 if { (ac_try="$ac_compile"
28054 case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28057 esac
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_compile") 2>conftest.er1
28060 ac_status=$?
28061 grep -v '^ *+' conftest.er1 >conftest.err
28062 rm -f conftest.er1
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28070 esac
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
28073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest.$ac_objext'
28077 { (case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28080 esac
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_try") 2>&5
28083 ac_status=$?
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
28086 ac_cv_header_mmap_anon=yes
28087 else
28088 echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28091 ac_cv_header_mmap_anon=no
28094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28095 ac_ext=c
28096 ac_cpp='$CPP $CPPFLAGS'
28097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28103 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28104 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
28105 if test "$ac_cv_header_mmap_anon" = yes; then
28107 cat >>confdefs.h <<\_ACEOF
28108 #define HAVE_MMAP_ANONYMOUS 1
28109 _ACEOF
28113 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28114 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
28115 if test "${ac_cv_header_stat_broken+set}" = set; then
28116 echo $ECHO_N "(cached) $ECHO_C" >&6
28117 else
28118 cat >conftest.$ac_ext <<_ACEOF
28119 /* confdefs.h. */
28120 _ACEOF
28121 cat confdefs.h >>conftest.$ac_ext
28122 cat >>conftest.$ac_ext <<_ACEOF
28123 /* end confdefs.h. */
28124 #include <sys/types.h>
28125 #include <sys/stat.h>
28127 #if defined S_ISBLK && defined S_IFDIR
28128 # if S_ISBLK (S_IFDIR)
28129 You lose.
28130 # endif
28131 #endif
28133 #if defined S_ISBLK && defined S_IFCHR
28134 # if S_ISBLK (S_IFCHR)
28135 You lose.
28136 # endif
28137 #endif
28139 #if defined S_ISLNK && defined S_IFREG
28140 # if S_ISLNK (S_IFREG)
28141 You lose.
28142 # endif
28143 #endif
28145 #if defined S_ISSOCK && defined S_IFREG
28146 # if S_ISSOCK (S_IFREG)
28147 You lose.
28148 # endif
28149 #endif
28151 _ACEOF
28152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28153 $EGREP "You lose" >/dev/null 2>&1; then
28154 ac_cv_header_stat_broken=yes
28155 else
28156 ac_cv_header_stat_broken=no
28158 rm -f conftest*
28161 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28162 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
28163 if test $ac_cv_header_stat_broken = yes; then
28165 cat >>confdefs.h <<\_ACEOF
28166 #define STAT_MACROS_BROKEN 1
28167 _ACEOF
28171 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28172 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
28173 if test "${ac_cv_header_stdc+set}" = set; then
28174 echo $ECHO_N "(cached) $ECHO_C" >&6
28175 else
28176 cat >conftest.$ac_ext <<_ACEOF
28177 /* confdefs.h. */
28178 _ACEOF
28179 cat confdefs.h >>conftest.$ac_ext
28180 cat >>conftest.$ac_ext <<_ACEOF
28181 /* end confdefs.h. */
28182 #include <stdlib.h>
28183 #include <stdarg.h>
28184 #include <string.h>
28185 #include <float.h>
28188 main ()
28192 return 0;
28194 _ACEOF
28195 rm -f conftest.$ac_objext
28196 if { (ac_try="$ac_compile"
28197 case "(($ac_try" in
28198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199 *) ac_try_echo=$ac_try;;
28200 esac
28201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28202 (eval "$ac_compile") 2>conftest.er1
28203 ac_status=$?
28204 grep -v '^ *+' conftest.er1 >conftest.err
28205 rm -f conftest.er1
28206 cat conftest.err >&5
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); } &&
28209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28210 { (case "(($ac_try" in
28211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28212 *) ac_try_echo=$ac_try;;
28213 esac
28214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28215 (eval "$ac_try") 2>&5
28216 ac_status=$?
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; } &&
28219 { ac_try='test -s conftest.$ac_objext'
28220 { (case "(($ac_try" in
28221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222 *) ac_try_echo=$ac_try;;
28223 esac
28224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28225 (eval "$ac_try") 2>&5
28226 ac_status=$?
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); }; }; then
28229 ac_cv_header_stdc=yes
28230 else
28231 echo "$as_me: failed program was:" >&5
28232 sed 's/^/| /' conftest.$ac_ext >&5
28234 ac_cv_header_stdc=no
28237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28239 if test $ac_cv_header_stdc = yes; then
28240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28241 cat >conftest.$ac_ext <<_ACEOF
28242 /* confdefs.h. */
28243 _ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h. */
28247 #include <string.h>
28249 _ACEOF
28250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28251 $EGREP "memchr" >/dev/null 2>&1; then
28253 else
28254 ac_cv_header_stdc=no
28256 rm -f conftest*
28260 if test $ac_cv_header_stdc = yes; then
28261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28262 cat >conftest.$ac_ext <<_ACEOF
28263 /* confdefs.h. */
28264 _ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h. */
28268 #include <stdlib.h>
28270 _ACEOF
28271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28272 $EGREP "free" >/dev/null 2>&1; then
28274 else
28275 ac_cv_header_stdc=no
28277 rm -f conftest*
28281 if test $ac_cv_header_stdc = yes; then
28282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28283 if test "$cross_compiling" = yes; then
28285 else
28286 cat >conftest.$ac_ext <<_ACEOF
28287 /* confdefs.h. */
28288 _ACEOF
28289 cat confdefs.h >>conftest.$ac_ext
28290 cat >>conftest.$ac_ext <<_ACEOF
28291 /* end confdefs.h. */
28292 #include <ctype.h>
28293 #include <stdlib.h>
28294 #if ((' ' & 0x0FF) == 0x020)
28295 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28296 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28297 #else
28298 # define ISLOWER(c) \
28299 (('a' <= (c) && (c) <= 'i') \
28300 || ('j' <= (c) && (c) <= 'r') \
28301 || ('s' <= (c) && (c) <= 'z'))
28302 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28303 #endif
28305 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28307 main ()
28309 int i;
28310 for (i = 0; i < 256; i++)
28311 if (XOR (islower (i), ISLOWER (i))
28312 || toupper (i) != TOUPPER (i))
28313 return 2;
28314 return 0;
28316 _ACEOF
28317 rm -f conftest$ac_exeext
28318 if { (ac_try="$ac_link"
28319 case "(($ac_try" in
28320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321 *) ac_try_echo=$ac_try;;
28322 esac
28323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324 (eval "$ac_link") 2>&5
28325 ac_status=$?
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28328 { (case "(($ac_try" in
28329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330 *) ac_try_echo=$ac_try;;
28331 esac
28332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333 (eval "$ac_try") 2>&5
28334 ac_status=$?
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); }; }; then
28338 else
28339 echo "$as_me: program exited with status $ac_status" >&5
28340 echo "$as_me: failed program was:" >&5
28341 sed 's/^/| /' conftest.$ac_ext >&5
28343 ( exit $ac_status )
28344 ac_cv_header_stdc=no
28346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28352 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28353 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
28354 if test $ac_cv_header_stdc = yes; then
28356 cat >>confdefs.h <<\_ACEOF
28357 #define STDC_HEADERS 1
28358 _ACEOF
28362 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28363 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
28364 if test "${ac_cv_header_sys_wait_h+set}" = set; then
28365 echo $ECHO_N "(cached) $ECHO_C" >&6
28366 else
28367 cat >conftest.$ac_ext <<_ACEOF
28368 /* confdefs.h. */
28369 _ACEOF
28370 cat confdefs.h >>conftest.$ac_ext
28371 cat >>conftest.$ac_ext <<_ACEOF
28372 /* end confdefs.h. */
28373 #include <sys/types.h>
28374 #include <sys/wait.h>
28375 #ifndef WEXITSTATUS
28376 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
28377 #endif
28378 #ifndef WIFEXITED
28379 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28380 #endif
28383 main ()
28385 int s;
28386 wait (&s);
28387 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28389 return 0;
28391 _ACEOF
28392 rm -f conftest.$ac_objext
28393 if { (ac_try="$ac_compile"
28394 case "(($ac_try" in
28395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396 *) ac_try_echo=$ac_try;;
28397 esac
28398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399 (eval "$ac_compile") 2>conftest.er1
28400 ac_status=$?
28401 grep -v '^ *+' conftest.er1 >conftest.err
28402 rm -f conftest.er1
28403 cat conftest.err >&5
28404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405 (exit $ac_status); } &&
28406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28407 { (case "(($ac_try" in
28408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28409 *) ac_try_echo=$ac_try;;
28410 esac
28411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28412 (eval "$ac_try") 2>&5
28413 ac_status=$?
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; } &&
28416 { ac_try='test -s conftest.$ac_objext'
28417 { (case "(($ac_try" in
28418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28419 *) ac_try_echo=$ac_try;;
28420 esac
28421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28422 (eval "$ac_try") 2>&5
28423 ac_status=$?
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); }; }; then
28426 ac_cv_header_sys_wait_h=yes
28427 else
28428 echo "$as_me: failed program was:" >&5
28429 sed 's/^/| /' conftest.$ac_ext >&5
28431 ac_cv_header_sys_wait_h=no
28434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28436 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28437 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
28438 if test $ac_cv_header_sys_wait_h = yes; then
28440 cat >>confdefs.h <<\_ACEOF
28441 #define HAVE_SYS_WAIT_H 1
28442 _ACEOF
28446 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28447 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
28448 if test "${ac_cv_header_time+set}" = set; then
28449 echo $ECHO_N "(cached) $ECHO_C" >&6
28450 else
28451 cat >conftest.$ac_ext <<_ACEOF
28452 /* confdefs.h. */
28453 _ACEOF
28454 cat confdefs.h >>conftest.$ac_ext
28455 cat >>conftest.$ac_ext <<_ACEOF
28456 /* end confdefs.h. */
28457 #include <sys/types.h>
28458 #include <sys/time.h>
28459 #include <time.h>
28462 main ()
28464 if ((struct tm *) 0)
28465 return 0;
28467 return 0;
28469 _ACEOF
28470 rm -f conftest.$ac_objext
28471 if { (ac_try="$ac_compile"
28472 case "(($ac_try" in
28473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28474 *) ac_try_echo=$ac_try;;
28475 esac
28476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28477 (eval "$ac_compile") 2>conftest.er1
28478 ac_status=$?
28479 grep -v '^ *+' conftest.er1 >conftest.err
28480 rm -f conftest.er1
28481 cat conftest.err >&5
28482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483 (exit $ac_status); } &&
28484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28485 { (case "(($ac_try" in
28486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28487 *) ac_try_echo=$ac_try;;
28488 esac
28489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28490 (eval "$ac_try") 2>&5
28491 ac_status=$?
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); }; } &&
28494 { ac_try='test -s conftest.$ac_objext'
28495 { (case "(($ac_try" in
28496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28497 *) ac_try_echo=$ac_try;;
28498 esac
28499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28500 (eval "$ac_try") 2>&5
28501 ac_status=$?
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); }; }; then
28504 ac_cv_header_time=yes
28505 else
28506 echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28509 ac_cv_header_time=no
28512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28514 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28515 echo "${ECHO_T}$ac_cv_header_time" >&6; }
28516 if test $ac_cv_header_time = yes; then
28518 cat >>confdefs.h <<\_ACEOF
28519 #define TIME_WITH_SYS_TIME 1
28520 _ACEOF
28531 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28538 echo $ECHO_N "(cached) $ECHO_C" >&6
28540 ac_res=`eval echo '${'$as_ac_Header'}'`
28541 { echo "$as_me:$LINENO: result: $ac_res" >&5
28542 echo "${ECHO_T}$ac_res" >&6; }
28543 else
28544 # Is the header compilable?
28545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28547 cat >conftest.$ac_ext <<_ACEOF
28548 /* confdefs.h. */
28549 _ACEOF
28550 cat confdefs.h >>conftest.$ac_ext
28551 cat >>conftest.$ac_ext <<_ACEOF
28552 /* end confdefs.h. */
28553 $ac_includes_default
28554 #include <$ac_header>
28555 _ACEOF
28556 rm -f conftest.$ac_objext
28557 if { (ac_try="$ac_compile"
28558 case "(($ac_try" in
28559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560 *) ac_try_echo=$ac_try;;
28561 esac
28562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28563 (eval "$ac_compile") 2>conftest.er1
28564 ac_status=$?
28565 grep -v '^ *+' conftest.er1 >conftest.err
28566 rm -f conftest.er1
28567 cat conftest.err >&5
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); } &&
28570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28571 { (case "(($ac_try" in
28572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28573 *) ac_try_echo=$ac_try;;
28574 esac
28575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28576 (eval "$ac_try") 2>&5
28577 ac_status=$?
28578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); }; } &&
28580 { ac_try='test -s conftest.$ac_objext'
28581 { (case "(($ac_try" in
28582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28583 *) ac_try_echo=$ac_try;;
28584 esac
28585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28586 (eval "$ac_try") 2>&5
28587 ac_status=$?
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); }; }; then
28590 ac_header_compiler=yes
28591 else
28592 echo "$as_me: failed program was:" >&5
28593 sed 's/^/| /' conftest.$ac_ext >&5
28595 ac_header_compiler=no
28598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28600 echo "${ECHO_T}$ac_header_compiler" >&6; }
28602 # Is the header present?
28603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28605 cat >conftest.$ac_ext <<_ACEOF
28606 /* confdefs.h. */
28607 _ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h. */
28611 #include <$ac_header>
28612 _ACEOF
28613 if { (ac_try="$ac_cpp conftest.$ac_ext"
28614 case "(($ac_try" in
28615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28616 *) ac_try_echo=$ac_try;;
28617 esac
28618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28620 ac_status=$?
28621 grep -v '^ *+' conftest.er1 >conftest.err
28622 rm -f conftest.er1
28623 cat conftest.err >&5
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); } >/dev/null; then
28626 if test -s conftest.err; then
28627 ac_cpp_err=$ac_c_preproc_warn_flag
28628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28629 else
28630 ac_cpp_err=
28632 else
28633 ac_cpp_err=yes
28635 if test -z "$ac_cpp_err"; then
28636 ac_header_preproc=yes
28637 else
28638 echo "$as_me: failed program was:" >&5
28639 sed 's/^/| /' conftest.$ac_ext >&5
28641 ac_header_preproc=no
28644 rm -f conftest.err conftest.$ac_ext
28645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28646 echo "${ECHO_T}$ac_header_preproc" >&6; }
28648 # So? What about this header?
28649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28650 yes:no: )
28651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28655 ac_header_preproc=yes
28657 no:yes:* )
28658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28670 ( cat <<\_ASBOX
28671 ## ----------------------------------- ##
28672 ## Report this to llvmbugs@cs.uiuc.edu ##
28673 ## ----------------------------------- ##
28674 _ASBOX
28675 ) | sed "s/^/$as_me: WARNING: /" >&2
28677 esac
28678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28681 echo $ECHO_N "(cached) $ECHO_C" >&6
28682 else
28683 eval "$as_ac_Header=\$ac_header_preproc"
28685 ac_res=`eval echo '${'$as_ac_Header'}'`
28686 { echo "$as_me:$LINENO: result: $ac_res" >&5
28687 echo "${ECHO_T}$ac_res" >&6; }
28690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28691 cat >>confdefs.h <<_ACEOF
28692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28693 _ACEOF
28697 done
28705 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
28707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28712 echo $ECHO_N "(cached) $ECHO_C" >&6
28714 ac_res=`eval echo '${'$as_ac_Header'}'`
28715 { echo "$as_me:$LINENO: result: $ac_res" >&5
28716 echo "${ECHO_T}$ac_res" >&6; }
28717 else
28718 # Is the header compilable?
28719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28721 cat >conftest.$ac_ext <<_ACEOF
28722 /* confdefs.h. */
28723 _ACEOF
28724 cat confdefs.h >>conftest.$ac_ext
28725 cat >>conftest.$ac_ext <<_ACEOF
28726 /* end confdefs.h. */
28727 $ac_includes_default
28728 #include <$ac_header>
28729 _ACEOF
28730 rm -f conftest.$ac_objext
28731 if { (ac_try="$ac_compile"
28732 case "(($ac_try" in
28733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734 *) ac_try_echo=$ac_try;;
28735 esac
28736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737 (eval "$ac_compile") 2>conftest.er1
28738 ac_status=$?
28739 grep -v '^ *+' conftest.er1 >conftest.err
28740 rm -f conftest.er1
28741 cat conftest.err >&5
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); } &&
28744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28745 { (case "(($ac_try" in
28746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747 *) ac_try_echo=$ac_try;;
28748 esac
28749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750 (eval "$ac_try") 2>&5
28751 ac_status=$?
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; } &&
28754 { ac_try='test -s conftest.$ac_objext'
28755 { (case "(($ac_try" in
28756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28757 *) ac_try_echo=$ac_try;;
28758 esac
28759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28760 (eval "$ac_try") 2>&5
28761 ac_status=$?
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); }; }; then
28764 ac_header_compiler=yes
28765 else
28766 echo "$as_me: failed program was:" >&5
28767 sed 's/^/| /' conftest.$ac_ext >&5
28769 ac_header_compiler=no
28772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28774 echo "${ECHO_T}$ac_header_compiler" >&6; }
28776 # Is the header present?
28777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28779 cat >conftest.$ac_ext <<_ACEOF
28780 /* confdefs.h. */
28781 _ACEOF
28782 cat confdefs.h >>conftest.$ac_ext
28783 cat >>conftest.$ac_ext <<_ACEOF
28784 /* end confdefs.h. */
28785 #include <$ac_header>
28786 _ACEOF
28787 if { (ac_try="$ac_cpp conftest.$ac_ext"
28788 case "(($ac_try" in
28789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28790 *) ac_try_echo=$ac_try;;
28791 esac
28792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28794 ac_status=$?
28795 grep -v '^ *+' conftest.er1 >conftest.err
28796 rm -f conftest.er1
28797 cat conftest.err >&5
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); } >/dev/null; then
28800 if test -s conftest.err; then
28801 ac_cpp_err=$ac_c_preproc_warn_flag
28802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28803 else
28804 ac_cpp_err=
28806 else
28807 ac_cpp_err=yes
28809 if test -z "$ac_cpp_err"; then
28810 ac_header_preproc=yes
28811 else
28812 echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28815 ac_header_preproc=no
28818 rm -f conftest.err conftest.$ac_ext
28819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28820 echo "${ECHO_T}$ac_header_preproc" >&6; }
28822 # So? What about this header?
28823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28824 yes:no: )
28825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28829 ac_header_preproc=yes
28831 no:yes:* )
28832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28844 ( cat <<\_ASBOX
28845 ## ----------------------------------- ##
28846 ## Report this to llvmbugs@cs.uiuc.edu ##
28847 ## ----------------------------------- ##
28848 _ASBOX
28849 ) | sed "s/^/$as_me: WARNING: /" >&2
28851 esac
28852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28855 echo $ECHO_N "(cached) $ECHO_C" >&6
28856 else
28857 eval "$as_ac_Header=\$ac_header_preproc"
28859 ac_res=`eval echo '${'$as_ac_Header'}'`
28860 { echo "$as_me:$LINENO: result: $ac_res" >&5
28861 echo "${ECHO_T}$ac_res" >&6; }
28864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28865 cat >>confdefs.h <<_ACEOF
28866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28867 _ACEOF
28871 done
28878 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
28880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28885 echo $ECHO_N "(cached) $ECHO_C" >&6
28887 ac_res=`eval echo '${'$as_ac_Header'}'`
28888 { echo "$as_me:$LINENO: result: $ac_res" >&5
28889 echo "${ECHO_T}$ac_res" >&6; }
28890 else
28891 # Is the header compilable?
28892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28894 cat >conftest.$ac_ext <<_ACEOF
28895 /* confdefs.h. */
28896 _ACEOF
28897 cat confdefs.h >>conftest.$ac_ext
28898 cat >>conftest.$ac_ext <<_ACEOF
28899 /* end confdefs.h. */
28900 $ac_includes_default
28901 #include <$ac_header>
28902 _ACEOF
28903 rm -f conftest.$ac_objext
28904 if { (ac_try="$ac_compile"
28905 case "(($ac_try" in
28906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907 *) ac_try_echo=$ac_try;;
28908 esac
28909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28910 (eval "$ac_compile") 2>conftest.er1
28911 ac_status=$?
28912 grep -v '^ *+' conftest.er1 >conftest.err
28913 rm -f conftest.er1
28914 cat conftest.err >&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); } &&
28917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28918 { (case "(($ac_try" in
28919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920 *) ac_try_echo=$ac_try;;
28921 esac
28922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923 (eval "$ac_try") 2>&5
28924 ac_status=$?
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; } &&
28927 { ac_try='test -s conftest.$ac_objext'
28928 { (case "(($ac_try" in
28929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930 *) ac_try_echo=$ac_try;;
28931 esac
28932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28933 (eval "$ac_try") 2>&5
28934 ac_status=$?
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); }; }; then
28937 ac_header_compiler=yes
28938 else
28939 echo "$as_me: failed program was:" >&5
28940 sed 's/^/| /' conftest.$ac_ext >&5
28942 ac_header_compiler=no
28945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28947 echo "${ECHO_T}$ac_header_compiler" >&6; }
28949 # Is the header present?
28950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28952 cat >conftest.$ac_ext <<_ACEOF
28953 /* confdefs.h. */
28954 _ACEOF
28955 cat confdefs.h >>conftest.$ac_ext
28956 cat >>conftest.$ac_ext <<_ACEOF
28957 /* end confdefs.h. */
28958 #include <$ac_header>
28959 _ACEOF
28960 if { (ac_try="$ac_cpp conftest.$ac_ext"
28961 case "(($ac_try" in
28962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963 *) ac_try_echo=$ac_try;;
28964 esac
28965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28967 ac_status=$?
28968 grep -v '^ *+' conftest.er1 >conftest.err
28969 rm -f conftest.er1
28970 cat conftest.err >&5
28971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); } >/dev/null; then
28973 if test -s conftest.err; then
28974 ac_cpp_err=$ac_c_preproc_warn_flag
28975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28976 else
28977 ac_cpp_err=
28979 else
28980 ac_cpp_err=yes
28982 if test -z "$ac_cpp_err"; then
28983 ac_header_preproc=yes
28984 else
28985 echo "$as_me: failed program was:" >&5
28986 sed 's/^/| /' conftest.$ac_ext >&5
28988 ac_header_preproc=no
28991 rm -f conftest.err conftest.$ac_ext
28992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28993 echo "${ECHO_T}$ac_header_preproc" >&6; }
28995 # So? What about this header?
28996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28997 yes:no: )
28998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29002 ac_header_preproc=yes
29004 no:yes:* )
29005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29017 ( cat <<\_ASBOX
29018 ## ----------------------------------- ##
29019 ## Report this to llvmbugs@cs.uiuc.edu ##
29020 ## ----------------------------------- ##
29021 _ASBOX
29022 ) | sed "s/^/$as_me: WARNING: /" >&2
29024 esac
29025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29028 echo $ECHO_N "(cached) $ECHO_C" >&6
29029 else
29030 eval "$as_ac_Header=\$ac_header_preproc"
29032 ac_res=`eval echo '${'$as_ac_Header'}'`
29033 { echo "$as_me:$LINENO: result: $ac_res" >&5
29034 echo "${ECHO_T}$ac_res" >&6; }
29037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29038 cat >>confdefs.h <<_ACEOF
29039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29040 _ACEOF
29044 done
29049 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
29051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29056 echo $ECHO_N "(cached) $ECHO_C" >&6
29058 ac_res=`eval echo '${'$as_ac_Header'}'`
29059 { echo "$as_me:$LINENO: result: $ac_res" >&5
29060 echo "${ECHO_T}$ac_res" >&6; }
29061 else
29062 # Is the header compilable?
29063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29065 cat >conftest.$ac_ext <<_ACEOF
29066 /* confdefs.h. */
29067 _ACEOF
29068 cat confdefs.h >>conftest.$ac_ext
29069 cat >>conftest.$ac_ext <<_ACEOF
29070 /* end confdefs.h. */
29071 $ac_includes_default
29072 #include <$ac_header>
29073 _ACEOF
29074 rm -f conftest.$ac_objext
29075 if { (ac_try="$ac_compile"
29076 case "(($ac_try" in
29077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29078 *) ac_try_echo=$ac_try;;
29079 esac
29080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29081 (eval "$ac_compile") 2>conftest.er1
29082 ac_status=$?
29083 grep -v '^ *+' conftest.er1 >conftest.err
29084 rm -f conftest.er1
29085 cat conftest.err >&5
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); } &&
29088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29089 { (case "(($ac_try" in
29090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091 *) ac_try_echo=$ac_try;;
29092 esac
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094 (eval "$ac_try") 2>&5
29095 ac_status=$?
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); }; } &&
29098 { ac_try='test -s conftest.$ac_objext'
29099 { (case "(($ac_try" in
29100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101 *) ac_try_echo=$ac_try;;
29102 esac
29103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104 (eval "$ac_try") 2>&5
29105 ac_status=$?
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); }; }; then
29108 ac_header_compiler=yes
29109 else
29110 echo "$as_me: failed program was:" >&5
29111 sed 's/^/| /' conftest.$ac_ext >&5
29113 ac_header_compiler=no
29116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29118 echo "${ECHO_T}$ac_header_compiler" >&6; }
29120 # Is the header present?
29121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29123 cat >conftest.$ac_ext <<_ACEOF
29124 /* confdefs.h. */
29125 _ACEOF
29126 cat confdefs.h >>conftest.$ac_ext
29127 cat >>conftest.$ac_ext <<_ACEOF
29128 /* end confdefs.h. */
29129 #include <$ac_header>
29130 _ACEOF
29131 if { (ac_try="$ac_cpp conftest.$ac_ext"
29132 case "(($ac_try" in
29133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134 *) ac_try_echo=$ac_try;;
29135 esac
29136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29138 ac_status=$?
29139 grep -v '^ *+' conftest.er1 >conftest.err
29140 rm -f conftest.er1
29141 cat conftest.err >&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); } >/dev/null; then
29144 if test -s conftest.err; then
29145 ac_cpp_err=$ac_c_preproc_warn_flag
29146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29147 else
29148 ac_cpp_err=
29150 else
29151 ac_cpp_err=yes
29153 if test -z "$ac_cpp_err"; then
29154 ac_header_preproc=yes
29155 else
29156 echo "$as_me: failed program was:" >&5
29157 sed 's/^/| /' conftest.$ac_ext >&5
29159 ac_header_preproc=no
29162 rm -f conftest.err conftest.$ac_ext
29163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29164 echo "${ECHO_T}$ac_header_preproc" >&6; }
29166 # So? What about this header?
29167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29168 yes:no: )
29169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29173 ac_header_preproc=yes
29175 no:yes:* )
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29188 ( cat <<\_ASBOX
29189 ## ----------------------------------- ##
29190 ## Report this to llvmbugs@cs.uiuc.edu ##
29191 ## ----------------------------------- ##
29192 _ASBOX
29193 ) | sed "s/^/$as_me: WARNING: /" >&2
29195 esac
29196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29199 echo $ECHO_N "(cached) $ECHO_C" >&6
29200 else
29201 eval "$as_ac_Header=\$ac_header_preproc"
29203 ac_res=`eval echo '${'$as_ac_Header'}'`
29204 { echo "$as_me:$LINENO: result: $ac_res" >&5
29205 echo "${ECHO_T}$ac_res" >&6; }
29208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29209 cat >>confdefs.h <<_ACEOF
29210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29211 _ACEOF
29215 done
29217 if test "$ENABLE_THREADS" -eq 1 ; then
29218 if test "${ac_cv_header_pthread_h+set}" = set; then
29219 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29220 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29221 if test "${ac_cv_header_pthread_h+set}" = set; then
29222 echo $ECHO_N "(cached) $ECHO_C" >&6
29224 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29225 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29226 else
29227 # Is the header compilable?
29228 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
29229 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
29230 cat >conftest.$ac_ext <<_ACEOF
29231 /* confdefs.h. */
29232 _ACEOF
29233 cat confdefs.h >>conftest.$ac_ext
29234 cat >>conftest.$ac_ext <<_ACEOF
29235 /* end confdefs.h. */
29236 $ac_includes_default
29237 #include <pthread.h>
29238 _ACEOF
29239 rm -f conftest.$ac_objext
29240 if { (ac_try="$ac_compile"
29241 case "(($ac_try" in
29242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29243 *) ac_try_echo=$ac_try;;
29244 esac
29245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246 (eval "$ac_compile") 2>conftest.er1
29247 ac_status=$?
29248 grep -v '^ *+' conftest.er1 >conftest.err
29249 rm -f conftest.er1
29250 cat conftest.err >&5
29251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252 (exit $ac_status); } &&
29253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29254 { (case "(($ac_try" in
29255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29256 *) ac_try_echo=$ac_try;;
29257 esac
29258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29259 (eval "$ac_try") 2>&5
29260 ac_status=$?
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); }; } &&
29263 { ac_try='test -s conftest.$ac_objext'
29264 { (case "(($ac_try" in
29265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29266 *) ac_try_echo=$ac_try;;
29267 esac
29268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29269 (eval "$ac_try") 2>&5
29270 ac_status=$?
29271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); }; }; then
29273 ac_header_compiler=yes
29274 else
29275 echo "$as_me: failed program was:" >&5
29276 sed 's/^/| /' conftest.$ac_ext >&5
29278 ac_header_compiler=no
29281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29283 echo "${ECHO_T}$ac_header_compiler" >&6; }
29285 # Is the header present?
29286 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
29287 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
29288 cat >conftest.$ac_ext <<_ACEOF
29289 /* confdefs.h. */
29290 _ACEOF
29291 cat confdefs.h >>conftest.$ac_ext
29292 cat >>conftest.$ac_ext <<_ACEOF
29293 /* end confdefs.h. */
29294 #include <pthread.h>
29295 _ACEOF
29296 if { (ac_try="$ac_cpp conftest.$ac_ext"
29297 case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29300 esac
29301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29303 ac_status=$?
29304 grep -v '^ *+' conftest.er1 >conftest.err
29305 rm -f conftest.er1
29306 cat conftest.err >&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); } >/dev/null; then
29309 if test -s conftest.err; then
29310 ac_cpp_err=$ac_c_preproc_warn_flag
29311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29312 else
29313 ac_cpp_err=
29315 else
29316 ac_cpp_err=yes
29318 if test -z "$ac_cpp_err"; then
29319 ac_header_preproc=yes
29320 else
29321 echo "$as_me: failed program was:" >&5
29322 sed 's/^/| /' conftest.$ac_ext >&5
29324 ac_header_preproc=no
29327 rm -f conftest.err conftest.$ac_ext
29328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29329 echo "${ECHO_T}$ac_header_preproc" >&6; }
29331 # So? What about this header?
29332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29333 yes:no: )
29334 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29335 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29336 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29337 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
29338 ac_header_preproc=yes
29340 no:yes:* )
29341 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29342 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29343 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29344 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29345 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29346 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29347 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29348 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29349 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29350 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29351 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29352 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
29353 ( cat <<\_ASBOX
29354 ## ----------------------------------- ##
29355 ## Report this to llvmbugs@cs.uiuc.edu ##
29356 ## ----------------------------------- ##
29357 _ASBOX
29358 ) | sed "s/^/$as_me: WARNING: /" >&2
29360 esac
29361 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29362 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29363 if test "${ac_cv_header_pthread_h+set}" = set; then
29364 echo $ECHO_N "(cached) $ECHO_C" >&6
29365 else
29366 ac_cv_header_pthread_h=$ac_header_preproc
29368 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29369 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
29372 if test $ac_cv_header_pthread_h = yes; then
29373 HAVE_PTHREAD=1
29375 else
29376 HAVE_PTHREAD=0
29381 else
29382 HAVE_PTHREAD=0
29388 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29389 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29390 if test "${ac_cv_huge_val_sanity+set}" = set; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
29392 else
29394 ac_ext=cpp
29395 ac_cpp='$CXXCPP $CPPFLAGS'
29396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29400 CXXFLAGS=-pedantic
29401 if test "$cross_compiling" = yes; then
29402 ac_cv_huge_val_sanity=yes
29403 else
29404 cat >conftest.$ac_ext <<_ACEOF
29405 /* confdefs.h. */
29406 _ACEOF
29407 cat confdefs.h >>conftest.$ac_ext
29408 cat >>conftest.$ac_ext <<_ACEOF
29409 /* end confdefs.h. */
29410 #include <math.h>
29412 main ()
29414 double x = HUGE_VAL; return x != x;
29416 return 0;
29418 _ACEOF
29419 rm -f conftest$ac_exeext
29420 if { (ac_try="$ac_link"
29421 case "(($ac_try" in
29422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29423 *) ac_try_echo=$ac_try;;
29424 esac
29425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29426 (eval "$ac_link") 2>&5
29427 ac_status=$?
29428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29430 { (case "(($ac_try" in
29431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29432 *) ac_try_echo=$ac_try;;
29433 esac
29434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29435 (eval "$ac_try") 2>&5
29436 ac_status=$?
29437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 (exit $ac_status); }; }; then
29439 ac_cv_huge_val_sanity=yes
29440 else
29441 echo "$as_me: program exited with status $ac_status" >&5
29442 echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29445 ( exit $ac_status )
29446 ac_cv_huge_val_sanity=no
29448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29452 ac_ext=c
29453 ac_cpp='$CPP $CPPFLAGS'
29454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29460 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29461 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29462 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29465 { echo "$as_me:$LINENO: checking for pid_t" >&5
29466 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
29467 if test "${ac_cv_type_pid_t+set}" = set; then
29468 echo $ECHO_N "(cached) $ECHO_C" >&6
29469 else
29470 cat >conftest.$ac_ext <<_ACEOF
29471 /* confdefs.h. */
29472 _ACEOF
29473 cat confdefs.h >>conftest.$ac_ext
29474 cat >>conftest.$ac_ext <<_ACEOF
29475 /* end confdefs.h. */
29476 $ac_includes_default
29477 typedef pid_t ac__type_new_;
29479 main ()
29481 if ((ac__type_new_ *) 0)
29482 return 0;
29483 if (sizeof (ac__type_new_))
29484 return 0;
29486 return 0;
29488 _ACEOF
29489 rm -f conftest.$ac_objext
29490 if { (ac_try="$ac_compile"
29491 case "(($ac_try" in
29492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493 *) ac_try_echo=$ac_try;;
29494 esac
29495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496 (eval "$ac_compile") 2>conftest.er1
29497 ac_status=$?
29498 grep -v '^ *+' conftest.er1 >conftest.err
29499 rm -f conftest.er1
29500 cat conftest.err >&5
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); } &&
29503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29504 { (case "(($ac_try" in
29505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29506 *) ac_try_echo=$ac_try;;
29507 esac
29508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29509 (eval "$ac_try") 2>&5
29510 ac_status=$?
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; } &&
29513 { ac_try='test -s conftest.$ac_objext'
29514 { (case "(($ac_try" in
29515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516 *) ac_try_echo=$ac_try;;
29517 esac
29518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519 (eval "$ac_try") 2>&5
29520 ac_status=$?
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); }; }; then
29523 ac_cv_type_pid_t=yes
29524 else
29525 echo "$as_me: failed program was:" >&5
29526 sed 's/^/| /' conftest.$ac_ext >&5
29528 ac_cv_type_pid_t=no
29531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29533 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29534 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
29535 if test $ac_cv_type_pid_t = yes; then
29537 else
29539 cat >>confdefs.h <<_ACEOF
29540 #define pid_t int
29541 _ACEOF
29545 { echo "$as_me:$LINENO: checking for size_t" >&5
29546 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
29547 if test "${ac_cv_type_size_t+set}" = set; then
29548 echo $ECHO_N "(cached) $ECHO_C" >&6
29549 else
29550 cat >conftest.$ac_ext <<_ACEOF
29551 /* confdefs.h. */
29552 _ACEOF
29553 cat confdefs.h >>conftest.$ac_ext
29554 cat >>conftest.$ac_ext <<_ACEOF
29555 /* end confdefs.h. */
29556 $ac_includes_default
29557 typedef size_t ac__type_new_;
29559 main ()
29561 if ((ac__type_new_ *) 0)
29562 return 0;
29563 if (sizeof (ac__type_new_))
29564 return 0;
29566 return 0;
29568 _ACEOF
29569 rm -f conftest.$ac_objext
29570 if { (ac_try="$ac_compile"
29571 case "(($ac_try" in
29572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29573 *) ac_try_echo=$ac_try;;
29574 esac
29575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29576 (eval "$ac_compile") 2>conftest.er1
29577 ac_status=$?
29578 grep -v '^ *+' conftest.er1 >conftest.err
29579 rm -f conftest.er1
29580 cat conftest.err >&5
29581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582 (exit $ac_status); } &&
29583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29584 { (case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29587 esac
29588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589 (eval "$ac_try") 2>&5
29590 ac_status=$?
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); }; } &&
29593 { ac_try='test -s conftest.$ac_objext'
29594 { (case "(($ac_try" in
29595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29596 *) ac_try_echo=$ac_try;;
29597 esac
29598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29599 (eval "$ac_try") 2>&5
29600 ac_status=$?
29601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); }; }; then
29603 ac_cv_type_size_t=yes
29604 else
29605 echo "$as_me: failed program was:" >&5
29606 sed 's/^/| /' conftest.$ac_ext >&5
29608 ac_cv_type_size_t=no
29611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29613 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29614 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
29615 if test $ac_cv_type_size_t = yes; then
29617 else
29619 cat >>confdefs.h <<_ACEOF
29620 #define size_t unsigned int
29621 _ACEOF
29625 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29626 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
29627 if test "${ac_cv_type_signal+set}" = set; then
29628 echo $ECHO_N "(cached) $ECHO_C" >&6
29629 else
29630 cat >conftest.$ac_ext <<_ACEOF
29631 /* confdefs.h. */
29632 _ACEOF
29633 cat confdefs.h >>conftest.$ac_ext
29634 cat >>conftest.$ac_ext <<_ACEOF
29635 /* end confdefs.h. */
29636 #include <sys/types.h>
29637 #include <signal.h>
29640 main ()
29642 return *(signal (0, 0)) (0) == 1;
29644 return 0;
29646 _ACEOF
29647 rm -f conftest.$ac_objext
29648 if { (ac_try="$ac_compile"
29649 case "(($ac_try" in
29650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651 *) ac_try_echo=$ac_try;;
29652 esac
29653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654 (eval "$ac_compile") 2>conftest.er1
29655 ac_status=$?
29656 grep -v '^ *+' conftest.er1 >conftest.err
29657 rm -f conftest.er1
29658 cat conftest.err >&5
29659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660 (exit $ac_status); } &&
29661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29662 { (case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29665 esac
29666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667 (eval "$ac_try") 2>&5
29668 ac_status=$?
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); }; } &&
29671 { ac_try='test -s conftest.$ac_objext'
29672 { (case "(($ac_try" in
29673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29674 *) ac_try_echo=$ac_try;;
29675 esac
29676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29677 (eval "$ac_try") 2>&5
29678 ac_status=$?
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); }; }; then
29681 ac_cv_type_signal=int
29682 else
29683 echo "$as_me: failed program was:" >&5
29684 sed 's/^/| /' conftest.$ac_ext >&5
29686 ac_cv_type_signal=void
29689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29691 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29692 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
29694 cat >>confdefs.h <<_ACEOF
29695 #define RETSIGTYPE $ac_cv_type_signal
29696 _ACEOF
29699 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29700 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
29701 if test "${ac_cv_struct_tm+set}" = set; then
29702 echo $ECHO_N "(cached) $ECHO_C" >&6
29703 else
29704 cat >conftest.$ac_ext <<_ACEOF
29705 /* confdefs.h. */
29706 _ACEOF
29707 cat confdefs.h >>conftest.$ac_ext
29708 cat >>conftest.$ac_ext <<_ACEOF
29709 /* end confdefs.h. */
29710 #include <sys/types.h>
29711 #include <time.h>
29714 main ()
29716 struct tm *tp; tp->tm_sec;
29718 return 0;
29720 _ACEOF
29721 rm -f conftest.$ac_objext
29722 if { (ac_try="$ac_compile"
29723 case "(($ac_try" in
29724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29725 *) ac_try_echo=$ac_try;;
29726 esac
29727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29728 (eval "$ac_compile") 2>conftest.er1
29729 ac_status=$?
29730 grep -v '^ *+' conftest.er1 >conftest.err
29731 rm -f conftest.er1
29732 cat conftest.err >&5
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); } &&
29735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29736 { (case "(($ac_try" in
29737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29738 *) ac_try_echo=$ac_try;;
29739 esac
29740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29741 (eval "$ac_try") 2>&5
29742 ac_status=$?
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); }; } &&
29745 { ac_try='test -s conftest.$ac_objext'
29746 { (case "(($ac_try" in
29747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29748 *) ac_try_echo=$ac_try;;
29749 esac
29750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29751 (eval "$ac_try") 2>&5
29752 ac_status=$?
29753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754 (exit $ac_status); }; }; then
29755 ac_cv_struct_tm=time.h
29756 else
29757 echo "$as_me: failed program was:" >&5
29758 sed 's/^/| /' conftest.$ac_ext >&5
29760 ac_cv_struct_tm=sys/time.h
29763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29765 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29766 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
29767 if test $ac_cv_struct_tm = sys/time.h; then
29769 cat >>confdefs.h <<\_ACEOF
29770 #define TM_IN_SYS_TIME 1
29771 _ACEOF
29775 { echo "$as_me:$LINENO: checking for int64_t" >&5
29776 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
29777 if test "${ac_cv_type_int64_t+set}" = set; then
29778 echo $ECHO_N "(cached) $ECHO_C" >&6
29779 else
29780 cat >conftest.$ac_ext <<_ACEOF
29781 /* confdefs.h. */
29782 _ACEOF
29783 cat confdefs.h >>conftest.$ac_ext
29784 cat >>conftest.$ac_ext <<_ACEOF
29785 /* end confdefs.h. */
29786 $ac_includes_default
29787 typedef int64_t ac__type_new_;
29789 main ()
29791 if ((ac__type_new_ *) 0)
29792 return 0;
29793 if (sizeof (ac__type_new_))
29794 return 0;
29796 return 0;
29798 _ACEOF
29799 rm -f conftest.$ac_objext
29800 if { (ac_try="$ac_compile"
29801 case "(($ac_try" in
29802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29803 *) ac_try_echo=$ac_try;;
29804 esac
29805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29806 (eval "$ac_compile") 2>conftest.er1
29807 ac_status=$?
29808 grep -v '^ *+' conftest.er1 >conftest.err
29809 rm -f conftest.er1
29810 cat conftest.err >&5
29811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812 (exit $ac_status); } &&
29813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29814 { (case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29817 esac
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_try") 2>&5
29820 ac_status=$?
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); }; } &&
29823 { ac_try='test -s conftest.$ac_objext'
29824 { (case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29827 esac
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_try") 2>&5
29830 ac_status=$?
29831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832 (exit $ac_status); }; }; then
29833 ac_cv_type_int64_t=yes
29834 else
29835 echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29838 ac_cv_type_int64_t=no
29841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29843 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29844 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
29845 if test $ac_cv_type_int64_t = yes; then
29847 cat >>confdefs.h <<_ACEOF
29848 #define HAVE_INT64_T 1
29849 _ACEOF
29852 else
29853 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29854 echo "$as_me: error: Type int64_t required but not found" >&2;}
29855 { (exit 1); exit 1; }; }
29858 { echo "$as_me:$LINENO: checking for uint64_t" >&5
29859 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
29860 if test "${ac_cv_type_uint64_t+set}" = set; then
29861 echo $ECHO_N "(cached) $ECHO_C" >&6
29862 else
29863 cat >conftest.$ac_ext <<_ACEOF
29864 /* confdefs.h. */
29865 _ACEOF
29866 cat confdefs.h >>conftest.$ac_ext
29867 cat >>conftest.$ac_ext <<_ACEOF
29868 /* end confdefs.h. */
29869 $ac_includes_default
29870 typedef uint64_t ac__type_new_;
29872 main ()
29874 if ((ac__type_new_ *) 0)
29875 return 0;
29876 if (sizeof (ac__type_new_))
29877 return 0;
29879 return 0;
29881 _ACEOF
29882 rm -f conftest.$ac_objext
29883 if { (ac_try="$ac_compile"
29884 case "(($ac_try" in
29885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886 *) ac_try_echo=$ac_try;;
29887 esac
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889 (eval "$ac_compile") 2>conftest.er1
29890 ac_status=$?
29891 grep -v '^ *+' conftest.er1 >conftest.err
29892 rm -f conftest.er1
29893 cat conftest.err >&5
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); } &&
29896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29897 { (case "(($ac_try" in
29898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899 *) ac_try_echo=$ac_try;;
29900 esac
29901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902 (eval "$ac_try") 2>&5
29903 ac_status=$?
29904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29905 (exit $ac_status); }; } &&
29906 { ac_try='test -s conftest.$ac_objext'
29907 { (case "(($ac_try" in
29908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909 *) ac_try_echo=$ac_try;;
29910 esac
29911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912 (eval "$ac_try") 2>&5
29913 ac_status=$?
29914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915 (exit $ac_status); }; }; then
29916 ac_cv_type_uint64_t=yes
29917 else
29918 echo "$as_me: failed program was:" >&5
29919 sed 's/^/| /' conftest.$ac_ext >&5
29921 ac_cv_type_uint64_t=no
29924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29926 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29927 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
29928 if test $ac_cv_type_uint64_t = yes; then
29930 cat >>confdefs.h <<_ACEOF
29931 #define HAVE_UINT64_T 1
29932 _ACEOF
29935 else
29936 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29937 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
29938 if test "${ac_cv_type_u_int64_t+set}" = set; then
29939 echo $ECHO_N "(cached) $ECHO_C" >&6
29940 else
29941 cat >conftest.$ac_ext <<_ACEOF
29942 /* confdefs.h. */
29943 _ACEOF
29944 cat confdefs.h >>conftest.$ac_ext
29945 cat >>conftest.$ac_ext <<_ACEOF
29946 /* end confdefs.h. */
29947 $ac_includes_default
29948 typedef u_int64_t ac__type_new_;
29950 main ()
29952 if ((ac__type_new_ *) 0)
29953 return 0;
29954 if (sizeof (ac__type_new_))
29955 return 0;
29957 return 0;
29959 _ACEOF
29960 rm -f conftest.$ac_objext
29961 if { (ac_try="$ac_compile"
29962 case "(($ac_try" in
29963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29964 *) ac_try_echo=$ac_try;;
29965 esac
29966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29967 (eval "$ac_compile") 2>conftest.er1
29968 ac_status=$?
29969 grep -v '^ *+' conftest.er1 >conftest.err
29970 rm -f conftest.er1
29971 cat conftest.err >&5
29972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); } &&
29974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29975 { (case "(($ac_try" in
29976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977 *) ac_try_echo=$ac_try;;
29978 esac
29979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980 (eval "$ac_try") 2>&5
29981 ac_status=$?
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); }; } &&
29984 { ac_try='test -s conftest.$ac_objext'
29985 { (case "(($ac_try" in
29986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29987 *) ac_try_echo=$ac_try;;
29988 esac
29989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29990 (eval "$ac_try") 2>&5
29991 ac_status=$?
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); }; }; then
29994 ac_cv_type_u_int64_t=yes
29995 else
29996 echo "$as_me: failed program was:" >&5
29997 sed 's/^/| /' conftest.$ac_ext >&5
29999 ac_cv_type_u_int64_t=no
30002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30004 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30005 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
30006 if test $ac_cv_type_u_int64_t = yes; then
30008 cat >>confdefs.h <<_ACEOF
30009 #define HAVE_U_INT64_T 1
30010 _ACEOF
30013 else
30014 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30015 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30016 { (exit 1); exit 1; }; }
30030 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
30032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30036 echo $ECHO_N "(cached) $ECHO_C" >&6
30037 else
30038 cat >conftest.$ac_ext <<_ACEOF
30039 /* confdefs.h. */
30040 _ACEOF
30041 cat confdefs.h >>conftest.$ac_ext
30042 cat >>conftest.$ac_ext <<_ACEOF
30043 /* end confdefs.h. */
30044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30046 #define $ac_func innocuous_$ac_func
30048 /* System header to define __stub macros and hopefully few prototypes,
30049 which can conflict with char $ac_func (); below.
30050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30051 <limits.h> exists even on freestanding compilers. */
30053 #ifdef __STDC__
30054 # include <limits.h>
30055 #else
30056 # include <assert.h>
30057 #endif
30059 #undef $ac_func
30061 /* Override any GCC internal prototype to avoid an error.
30062 Use char because int might match the return type of a GCC
30063 builtin and then its argument prototype would still apply. */
30064 #ifdef __cplusplus
30065 extern "C"
30066 #endif
30067 char $ac_func ();
30068 /* The GNU C library defines this for functions which it implements
30069 to always fail with ENOSYS. Some functions are actually named
30070 something starting with __ and the normal name is an alias. */
30071 #if defined __stub_$ac_func || defined __stub___$ac_func
30072 choke me
30073 #endif
30076 main ()
30078 return $ac_func ();
30080 return 0;
30082 _ACEOF
30083 rm -f conftest.$ac_objext conftest$ac_exeext
30084 if { (ac_try="$ac_link"
30085 case "(($ac_try" in
30086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30087 *) ac_try_echo=$ac_try;;
30088 esac
30089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30090 (eval "$ac_link") 2>conftest.er1
30091 ac_status=$?
30092 grep -v '^ *+' conftest.er1 >conftest.err
30093 rm -f conftest.er1
30094 cat conftest.err >&5
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); } &&
30097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30098 { (case "(($ac_try" in
30099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30100 *) ac_try_echo=$ac_try;;
30101 esac
30102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30103 (eval "$ac_try") 2>&5
30104 ac_status=$?
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30106 (exit $ac_status); }; } &&
30107 { ac_try='test -s conftest$ac_exeext'
30108 { (case "(($ac_try" in
30109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30110 *) ac_try_echo=$ac_try;;
30111 esac
30112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30113 (eval "$ac_try") 2>&5
30114 ac_status=$?
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; }; then
30117 eval "$as_ac_var=yes"
30118 else
30119 echo "$as_me: failed program was:" >&5
30120 sed 's/^/| /' conftest.$ac_ext >&5
30122 eval "$as_ac_var=no"
30125 rm -f core conftest.err conftest.$ac_objext \
30126 conftest$ac_exeext conftest.$ac_ext
30128 ac_res=`eval echo '${'$as_ac_var'}'`
30129 { echo "$as_me:$LINENO: result: $ac_res" >&5
30130 echo "${ECHO_T}$ac_res" >&6; }
30131 if test `eval echo '${'$as_ac_var'}'` = yes; then
30132 cat >>confdefs.h <<_ACEOF
30133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30134 _ACEOF
30137 done
30144 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30150 echo $ECHO_N "(cached) $ECHO_C" >&6
30151 else
30152 cat >conftest.$ac_ext <<_ACEOF
30153 /* confdefs.h. */
30154 _ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h. */
30158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30160 #define $ac_func innocuous_$ac_func
30162 /* System header to define __stub macros and hopefully few prototypes,
30163 which can conflict with char $ac_func (); below.
30164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30165 <limits.h> exists even on freestanding compilers. */
30167 #ifdef __STDC__
30168 # include <limits.h>
30169 #else
30170 # include <assert.h>
30171 #endif
30173 #undef $ac_func
30175 /* Override any GCC internal prototype to avoid an error.
30176 Use char because int might match the return type of a GCC
30177 builtin and then its argument prototype would still apply. */
30178 #ifdef __cplusplus
30179 extern "C"
30180 #endif
30181 char $ac_func ();
30182 /* The GNU C library defines this for functions which it implements
30183 to always fail with ENOSYS. Some functions are actually named
30184 something starting with __ and the normal name is an alias. */
30185 #if defined __stub_$ac_func || defined __stub___$ac_func
30186 choke me
30187 #endif
30190 main ()
30192 return $ac_func ();
30194 return 0;
30196 _ACEOF
30197 rm -f conftest.$ac_objext conftest$ac_exeext
30198 if { (ac_try="$ac_link"
30199 case "(($ac_try" in
30200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30201 *) ac_try_echo=$ac_try;;
30202 esac
30203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30204 (eval "$ac_link") 2>conftest.er1
30205 ac_status=$?
30206 grep -v '^ *+' conftest.er1 >conftest.err
30207 rm -f conftest.er1
30208 cat conftest.err >&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); } &&
30211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30212 { (case "(($ac_try" in
30213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214 *) ac_try_echo=$ac_try;;
30215 esac
30216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30217 (eval "$ac_try") 2>&5
30218 ac_status=$?
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; } &&
30221 { ac_try='test -s conftest$ac_exeext'
30222 { (case "(($ac_try" in
30223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30224 *) ac_try_echo=$ac_try;;
30225 esac
30226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30227 (eval "$ac_try") 2>&5
30228 ac_status=$?
30229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230 (exit $ac_status); }; }; then
30231 eval "$as_ac_var=yes"
30232 else
30233 echo "$as_me: failed program was:" >&5
30234 sed 's/^/| /' conftest.$ac_ext >&5
30236 eval "$as_ac_var=no"
30239 rm -f core conftest.err conftest.$ac_objext \
30240 conftest$ac_exeext conftest.$ac_ext
30242 ac_res=`eval echo '${'$as_ac_var'}'`
30243 { echo "$as_me:$LINENO: result: $ac_res" >&5
30244 echo "${ECHO_T}$ac_res" >&6; }
30245 if test `eval echo '${'$as_ac_var'}'` = yes; then
30246 cat >>confdefs.h <<_ACEOF
30247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30248 _ACEOF
30251 done
30256 for ac_func in isatty mkdtemp mkstemp
30258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30262 echo $ECHO_N "(cached) $ECHO_C" >&6
30263 else
30264 cat >conftest.$ac_ext <<_ACEOF
30265 /* confdefs.h. */
30266 _ACEOF
30267 cat confdefs.h >>conftest.$ac_ext
30268 cat >>conftest.$ac_ext <<_ACEOF
30269 /* end confdefs.h. */
30270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30272 #define $ac_func innocuous_$ac_func
30274 /* System header to define __stub macros and hopefully few prototypes,
30275 which can conflict with char $ac_func (); below.
30276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30277 <limits.h> exists even on freestanding compilers. */
30279 #ifdef __STDC__
30280 # include <limits.h>
30281 #else
30282 # include <assert.h>
30283 #endif
30285 #undef $ac_func
30287 /* Override any GCC internal prototype to avoid an error.
30288 Use char because int might match the return type of a GCC
30289 builtin and then its argument prototype would still apply. */
30290 #ifdef __cplusplus
30291 extern "C"
30292 #endif
30293 char $ac_func ();
30294 /* The GNU C library defines this for functions which it implements
30295 to always fail with ENOSYS. Some functions are actually named
30296 something starting with __ and the normal name is an alias. */
30297 #if defined __stub_$ac_func || defined __stub___$ac_func
30298 choke me
30299 #endif
30302 main ()
30304 return $ac_func ();
30306 return 0;
30308 _ACEOF
30309 rm -f conftest.$ac_objext conftest$ac_exeext
30310 if { (ac_try="$ac_link"
30311 case "(($ac_try" in
30312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30313 *) ac_try_echo=$ac_try;;
30314 esac
30315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30316 (eval "$ac_link") 2>conftest.er1
30317 ac_status=$?
30318 grep -v '^ *+' conftest.er1 >conftest.err
30319 rm -f conftest.er1
30320 cat conftest.err >&5
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); } &&
30323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30324 { (case "(($ac_try" in
30325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326 *) ac_try_echo=$ac_try;;
30327 esac
30328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329 (eval "$ac_try") 2>&5
30330 ac_status=$?
30331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); }; } &&
30333 { ac_try='test -s conftest$ac_exeext'
30334 { (case "(($ac_try" in
30335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336 *) ac_try_echo=$ac_try;;
30337 esac
30338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339 (eval "$ac_try") 2>&5
30340 ac_status=$?
30341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342 (exit $ac_status); }; }; then
30343 eval "$as_ac_var=yes"
30344 else
30345 echo "$as_me: failed program was:" >&5
30346 sed 's/^/| /' conftest.$ac_ext >&5
30348 eval "$as_ac_var=no"
30351 rm -f core conftest.err conftest.$ac_objext \
30352 conftest$ac_exeext conftest.$ac_ext
30354 ac_res=`eval echo '${'$as_ac_var'}'`
30355 { echo "$as_me:$LINENO: result: $ac_res" >&5
30356 echo "${ECHO_T}$ac_res" >&6; }
30357 if test `eval echo '${'$as_ac_var'}'` = yes; then
30358 cat >>confdefs.h <<_ACEOF
30359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30360 _ACEOF
30363 done
30372 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
30374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30378 echo $ECHO_N "(cached) $ECHO_C" >&6
30379 else
30380 cat >conftest.$ac_ext <<_ACEOF
30381 /* confdefs.h. */
30382 _ACEOF
30383 cat confdefs.h >>conftest.$ac_ext
30384 cat >>conftest.$ac_ext <<_ACEOF
30385 /* end confdefs.h. */
30386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30388 #define $ac_func innocuous_$ac_func
30390 /* System header to define __stub macros and hopefully few prototypes,
30391 which can conflict with char $ac_func (); below.
30392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30393 <limits.h> exists even on freestanding compilers. */
30395 #ifdef __STDC__
30396 # include <limits.h>
30397 #else
30398 # include <assert.h>
30399 #endif
30401 #undef $ac_func
30403 /* Override any GCC internal prototype to avoid an error.
30404 Use char because int might match the return type of a GCC
30405 builtin and then its argument prototype would still apply. */
30406 #ifdef __cplusplus
30407 extern "C"
30408 #endif
30409 char $ac_func ();
30410 /* The GNU C library defines this for functions which it implements
30411 to always fail with ENOSYS. Some functions are actually named
30412 something starting with __ and the normal name is an alias. */
30413 #if defined __stub_$ac_func || defined __stub___$ac_func
30414 choke me
30415 #endif
30418 main ()
30420 return $ac_func ();
30422 return 0;
30424 _ACEOF
30425 rm -f conftest.$ac_objext conftest$ac_exeext
30426 if { (ac_try="$ac_link"
30427 case "(($ac_try" in
30428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30429 *) ac_try_echo=$ac_try;;
30430 esac
30431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30432 (eval "$ac_link") 2>conftest.er1
30433 ac_status=$?
30434 grep -v '^ *+' conftest.er1 >conftest.err
30435 rm -f conftest.er1
30436 cat conftest.err >&5
30437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438 (exit $ac_status); } &&
30439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30440 { (case "(($ac_try" in
30441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30442 *) ac_try_echo=$ac_try;;
30443 esac
30444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30445 (eval "$ac_try") 2>&5
30446 ac_status=$?
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); }; } &&
30449 { ac_try='test -s conftest$ac_exeext'
30450 { (case "(($ac_try" in
30451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30452 *) ac_try_echo=$ac_try;;
30453 esac
30454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30455 (eval "$ac_try") 2>&5
30456 ac_status=$?
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); }; }; then
30459 eval "$as_ac_var=yes"
30460 else
30461 echo "$as_me: failed program was:" >&5
30462 sed 's/^/| /' conftest.$ac_ext >&5
30464 eval "$as_ac_var=no"
30467 rm -f core conftest.err conftest.$ac_objext \
30468 conftest$ac_exeext conftest.$ac_ext
30470 ac_res=`eval echo '${'$as_ac_var'}'`
30471 { echo "$as_me:$LINENO: result: $ac_res" >&5
30472 echo "${ECHO_T}$ac_res" >&6; }
30473 if test `eval echo '${'$as_ac_var'}'` = yes; then
30474 cat >>confdefs.h <<_ACEOF
30475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30476 _ACEOF
30479 done
30485 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
30487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30491 echo $ECHO_N "(cached) $ECHO_C" >&6
30492 else
30493 cat >conftest.$ac_ext <<_ACEOF
30494 /* confdefs.h. */
30495 _ACEOF
30496 cat confdefs.h >>conftest.$ac_ext
30497 cat >>conftest.$ac_ext <<_ACEOF
30498 /* end confdefs.h. */
30499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30501 #define $ac_func innocuous_$ac_func
30503 /* System header to define __stub macros and hopefully few prototypes,
30504 which can conflict with char $ac_func (); below.
30505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30506 <limits.h> exists even on freestanding compilers. */
30508 #ifdef __STDC__
30509 # include <limits.h>
30510 #else
30511 # include <assert.h>
30512 #endif
30514 #undef $ac_func
30516 /* Override any GCC internal prototype to avoid an error.
30517 Use char because int might match the return type of a GCC
30518 builtin and then its argument prototype would still apply. */
30519 #ifdef __cplusplus
30520 extern "C"
30521 #endif
30522 char $ac_func ();
30523 /* The GNU C library defines this for functions which it implements
30524 to always fail with ENOSYS. Some functions are actually named
30525 something starting with __ and the normal name is an alias. */
30526 #if defined __stub_$ac_func || defined __stub___$ac_func
30527 choke me
30528 #endif
30531 main ()
30533 return $ac_func ();
30535 return 0;
30537 _ACEOF
30538 rm -f conftest.$ac_objext conftest$ac_exeext
30539 if { (ac_try="$ac_link"
30540 case "(($ac_try" in
30541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542 *) ac_try_echo=$ac_try;;
30543 esac
30544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545 (eval "$ac_link") 2>conftest.er1
30546 ac_status=$?
30547 grep -v '^ *+' conftest.er1 >conftest.err
30548 rm -f conftest.er1
30549 cat conftest.err >&5
30550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551 (exit $ac_status); } &&
30552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30553 { (case "(($ac_try" in
30554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30555 *) ac_try_echo=$ac_try;;
30556 esac
30557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30558 (eval "$ac_try") 2>&5
30559 ac_status=$?
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); }; } &&
30562 { ac_try='test -s conftest$ac_exeext'
30563 { (case "(($ac_try" in
30564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30565 *) ac_try_echo=$ac_try;;
30566 esac
30567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30568 (eval "$ac_try") 2>&5
30569 ac_status=$?
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); }; }; then
30572 eval "$as_ac_var=yes"
30573 else
30574 echo "$as_me: failed program was:" >&5
30575 sed 's/^/| /' conftest.$ac_ext >&5
30577 eval "$as_ac_var=no"
30580 rm -f core conftest.err conftest.$ac_objext \
30581 conftest$ac_exeext conftest.$ac_ext
30583 ac_res=`eval echo '${'$as_ac_var'}'`
30584 { echo "$as_me:$LINENO: result: $ac_res" >&5
30585 echo "${ECHO_T}$ac_res" >&6; }
30586 if test `eval echo '${'$as_ac_var'}'` = yes; then
30587 cat >>confdefs.h <<_ACEOF
30588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30589 _ACEOF
30592 done
30598 for ac_func in setjmp longjmp sigsetjmp siglongjmp
30600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30604 echo $ECHO_N "(cached) $ECHO_C" >&6
30605 else
30606 cat >conftest.$ac_ext <<_ACEOF
30607 /* confdefs.h. */
30608 _ACEOF
30609 cat confdefs.h >>conftest.$ac_ext
30610 cat >>conftest.$ac_ext <<_ACEOF
30611 /* end confdefs.h. */
30612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30614 #define $ac_func innocuous_$ac_func
30616 /* System header to define __stub macros and hopefully few prototypes,
30617 which can conflict with char $ac_func (); below.
30618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30619 <limits.h> exists even on freestanding compilers. */
30621 #ifdef __STDC__
30622 # include <limits.h>
30623 #else
30624 # include <assert.h>
30625 #endif
30627 #undef $ac_func
30629 /* Override any GCC internal prototype to avoid an error.
30630 Use char because int might match the return type of a GCC
30631 builtin and then its argument prototype would still apply. */
30632 #ifdef __cplusplus
30633 extern "C"
30634 #endif
30635 char $ac_func ();
30636 /* The GNU C library defines this for functions which it implements
30637 to always fail with ENOSYS. Some functions are actually named
30638 something starting with __ and the normal name is an alias. */
30639 #if defined __stub_$ac_func || defined __stub___$ac_func
30640 choke me
30641 #endif
30644 main ()
30646 return $ac_func ();
30648 return 0;
30650 _ACEOF
30651 rm -f conftest.$ac_objext conftest$ac_exeext
30652 if { (ac_try="$ac_link"
30653 case "(($ac_try" in
30654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655 *) ac_try_echo=$ac_try;;
30656 esac
30657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30658 (eval "$ac_link") 2>conftest.er1
30659 ac_status=$?
30660 grep -v '^ *+' conftest.er1 >conftest.err
30661 rm -f conftest.er1
30662 cat conftest.err >&5
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); } &&
30665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30666 { (case "(($ac_try" in
30667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30668 *) ac_try_echo=$ac_try;;
30669 esac
30670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30671 (eval "$ac_try") 2>&5
30672 ac_status=$?
30673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30674 (exit $ac_status); }; } &&
30675 { ac_try='test -s conftest$ac_exeext'
30676 { (case "(($ac_try" in
30677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30678 *) ac_try_echo=$ac_try;;
30679 esac
30680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30681 (eval "$ac_try") 2>&5
30682 ac_status=$?
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); }; }; then
30685 eval "$as_ac_var=yes"
30686 else
30687 echo "$as_me: failed program was:" >&5
30688 sed 's/^/| /' conftest.$ac_ext >&5
30690 eval "$as_ac_var=no"
30693 rm -f core conftest.err conftest.$ac_objext \
30694 conftest$ac_exeext conftest.$ac_ext
30696 ac_res=`eval echo '${'$as_ac_var'}'`
30697 { echo "$as_me:$LINENO: result: $ac_res" >&5
30698 echo "${ECHO_T}$ac_res" >&6; }
30699 if test `eval echo '${'$as_ac_var'}'` = yes; then
30700 cat >>confdefs.h <<_ACEOF
30701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30702 _ACEOF
30705 done
30707 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30708 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
30709 if test "${llvm_cv_c_printf_a+set}" = set; then
30710 echo $ECHO_N "(cached) $ECHO_C" >&6
30711 else
30712 ac_ext=c
30713 ac_cpp='$CPP $CPPFLAGS'
30714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30718 if test "$cross_compiling" = yes; then
30719 llvmac_cv_c_printf_a=no
30720 else
30721 cat >conftest.$ac_ext <<_ACEOF
30723 /* confdefs.h. */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30729 #include <stdio.h>
30730 #include <stdlib.h>
30733 main ()
30736 volatile double A, B;
30737 char Buffer[100];
30738 A = 1;
30739 A /= 10.0;
30740 sprintf(Buffer, "%a", A);
30741 B = atof(Buffer);
30742 if (A != B)
30743 return (1);
30744 if (A != 0x1.999999999999ap-4)
30745 return (1);
30746 return (0);
30748 return 0;
30750 _ACEOF
30751 rm -f conftest$ac_exeext
30752 if { (ac_try="$ac_link"
30753 case "(($ac_try" in
30754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755 *) ac_try_echo=$ac_try;;
30756 esac
30757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758 (eval "$ac_link") 2>&5
30759 ac_status=$?
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30762 { (case "(($ac_try" in
30763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764 *) ac_try_echo=$ac_try;;
30765 esac
30766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767 (eval "$ac_try") 2>&5
30768 ac_status=$?
30769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770 (exit $ac_status); }; }; then
30771 llvm_cv_c_printf_a=yes
30772 else
30773 echo "$as_me: program exited with status $ac_status" >&5
30774 echo "$as_me: failed program was:" >&5
30775 sed 's/^/| /' conftest.$ac_ext >&5
30777 ( exit $ac_status )
30778 llvmac_cv_c_printf_a=no
30780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30784 ac_ext=c
30785 ac_cpp='$CPP $CPPFLAGS'
30786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30791 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30792 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
30793 if test "$llvm_cv_c_printf_a" = "yes"; then
30795 cat >>confdefs.h <<\_ACEOF
30796 #define HAVE_PRINTF_A 1
30797 _ACEOF
30801 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30802 # for constant arguments. Useless!
30803 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
30804 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
30805 if test "${ac_cv_working_alloca_h+set}" = set; then
30806 echo $ECHO_N "(cached) $ECHO_C" >&6
30807 else
30808 cat >conftest.$ac_ext <<_ACEOF
30809 /* confdefs.h. */
30810 _ACEOF
30811 cat confdefs.h >>conftest.$ac_ext
30812 cat >>conftest.$ac_ext <<_ACEOF
30813 /* end confdefs.h. */
30814 #include <alloca.h>
30816 main ()
30818 char *p = (char *) alloca (2 * sizeof (int));
30819 if (p) return 0;
30821 return 0;
30823 _ACEOF
30824 rm -f conftest.$ac_objext conftest$ac_exeext
30825 if { (ac_try="$ac_link"
30826 case "(($ac_try" in
30827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30828 *) ac_try_echo=$ac_try;;
30829 esac
30830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30831 (eval "$ac_link") 2>conftest.er1
30832 ac_status=$?
30833 grep -v '^ *+' conftest.er1 >conftest.err
30834 rm -f conftest.er1
30835 cat conftest.err >&5
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); } &&
30838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30839 { (case "(($ac_try" in
30840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841 *) ac_try_echo=$ac_try;;
30842 esac
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844 (eval "$ac_try") 2>&5
30845 ac_status=$?
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); }; } &&
30848 { ac_try='test -s conftest$ac_exeext'
30849 { (case "(($ac_try" in
30850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30851 *) ac_try_echo=$ac_try;;
30852 esac
30853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30854 (eval "$ac_try") 2>&5
30855 ac_status=$?
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); }; }; then
30858 ac_cv_working_alloca_h=yes
30859 else
30860 echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30863 ac_cv_working_alloca_h=no
30866 rm -f core conftest.err conftest.$ac_objext \
30867 conftest$ac_exeext conftest.$ac_ext
30869 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30870 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
30871 if test $ac_cv_working_alloca_h = yes; then
30873 cat >>confdefs.h <<\_ACEOF
30874 #define HAVE_ALLOCA_H 1
30875 _ACEOF
30879 { echo "$as_me:$LINENO: checking for alloca" >&5
30880 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
30881 if test "${ac_cv_func_alloca_works+set}" = set; then
30882 echo $ECHO_N "(cached) $ECHO_C" >&6
30883 else
30884 cat >conftest.$ac_ext <<_ACEOF
30885 /* confdefs.h. */
30886 _ACEOF
30887 cat confdefs.h >>conftest.$ac_ext
30888 cat >>conftest.$ac_ext <<_ACEOF
30889 /* end confdefs.h. */
30890 #ifdef __GNUC__
30891 # define alloca __builtin_alloca
30892 #else
30893 # ifdef _MSC_VER
30894 # include <malloc.h>
30895 # define alloca _alloca
30896 # else
30897 # if HAVE_ALLOCA_H
30898 # include <alloca.h>
30899 # else
30900 # ifdef _AIX
30901 #pragma alloca
30902 # else
30903 # ifndef alloca /* predefined by HP cc +Olibcalls */
30904 char *alloca ();
30905 # endif
30906 # endif
30907 # endif
30908 # endif
30909 #endif
30912 main ()
30914 char *p = (char *) alloca (1);
30915 if (p) return 0;
30917 return 0;
30919 _ACEOF
30920 rm -f conftest.$ac_objext conftest$ac_exeext
30921 if { (ac_try="$ac_link"
30922 case "(($ac_try" in
30923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30924 *) ac_try_echo=$ac_try;;
30925 esac
30926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30927 (eval "$ac_link") 2>conftest.er1
30928 ac_status=$?
30929 grep -v '^ *+' conftest.er1 >conftest.err
30930 rm -f conftest.er1
30931 cat conftest.err >&5
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); } &&
30934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30935 { (case "(($ac_try" in
30936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30937 *) ac_try_echo=$ac_try;;
30938 esac
30939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30940 (eval "$ac_try") 2>&5
30941 ac_status=$?
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); }; } &&
30944 { ac_try='test -s conftest$ac_exeext'
30945 { (case "(($ac_try" in
30946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30947 *) ac_try_echo=$ac_try;;
30948 esac
30949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30950 (eval "$ac_try") 2>&5
30951 ac_status=$?
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); }; }; then
30954 ac_cv_func_alloca_works=yes
30955 else
30956 echo "$as_me: failed program was:" >&5
30957 sed 's/^/| /' conftest.$ac_ext >&5
30959 ac_cv_func_alloca_works=no
30962 rm -f core conftest.err conftest.$ac_objext \
30963 conftest$ac_exeext conftest.$ac_ext
30965 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30966 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
30968 if test $ac_cv_func_alloca_works = yes; then
30970 cat >>confdefs.h <<\_ACEOF
30971 #define HAVE_ALLOCA 1
30972 _ACEOF
30974 else
30975 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30976 # that cause trouble. Some versions do not even contain alloca or
30977 # contain a buggy version. If you still want to use their alloca,
30978 # use ar to extract alloca.o from them instead of compiling alloca.c.
30980 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
30982 cat >>confdefs.h <<\_ACEOF
30983 #define C_ALLOCA 1
30984 _ACEOF
30987 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30988 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
30989 if test "${ac_cv_os_cray+set}" = set; then
30990 echo $ECHO_N "(cached) $ECHO_C" >&6
30991 else
30992 cat >conftest.$ac_ext <<_ACEOF
30993 /* confdefs.h. */
30994 _ACEOF
30995 cat confdefs.h >>conftest.$ac_ext
30996 cat >>conftest.$ac_ext <<_ACEOF
30997 /* end confdefs.h. */
30998 #if defined CRAY && ! defined CRAY2
30999 webecray
31000 #else
31001 wenotbecray
31002 #endif
31004 _ACEOF
31005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31006 $EGREP "webecray" >/dev/null 2>&1; then
31007 ac_cv_os_cray=yes
31008 else
31009 ac_cv_os_cray=no
31011 rm -f conftest*
31014 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31015 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31016 if test $ac_cv_os_cray = yes; then
31017 for ac_func in _getb67 GETB67 getb67; do
31018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31022 echo $ECHO_N "(cached) $ECHO_C" >&6
31023 else
31024 cat >conftest.$ac_ext <<_ACEOF
31025 /* confdefs.h. */
31026 _ACEOF
31027 cat confdefs.h >>conftest.$ac_ext
31028 cat >>conftest.$ac_ext <<_ACEOF
31029 /* end confdefs.h. */
31030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31032 #define $ac_func innocuous_$ac_func
31034 /* System header to define __stub macros and hopefully few prototypes,
31035 which can conflict with char $ac_func (); below.
31036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31037 <limits.h> exists even on freestanding compilers. */
31039 #ifdef __STDC__
31040 # include <limits.h>
31041 #else
31042 # include <assert.h>
31043 #endif
31045 #undef $ac_func
31047 /* Override any GCC internal prototype to avoid an error.
31048 Use char because int might match the return type of a GCC
31049 builtin and then its argument prototype would still apply. */
31050 #ifdef __cplusplus
31051 extern "C"
31052 #endif
31053 char $ac_func ();
31054 /* The GNU C library defines this for functions which it implements
31055 to always fail with ENOSYS. Some functions are actually named
31056 something starting with __ and the normal name is an alias. */
31057 #if defined __stub_$ac_func || defined __stub___$ac_func
31058 choke me
31059 #endif
31062 main ()
31064 return $ac_func ();
31066 return 0;
31068 _ACEOF
31069 rm -f conftest.$ac_objext conftest$ac_exeext
31070 if { (ac_try="$ac_link"
31071 case "(($ac_try" in
31072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073 *) ac_try_echo=$ac_try;;
31074 esac
31075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076 (eval "$ac_link") 2>conftest.er1
31077 ac_status=$?
31078 grep -v '^ *+' conftest.er1 >conftest.err
31079 rm -f conftest.er1
31080 cat conftest.err >&5
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); } &&
31083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31084 { (case "(($ac_try" in
31085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31086 *) ac_try_echo=$ac_try;;
31087 esac
31088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31089 (eval "$ac_try") 2>&5
31090 ac_status=$?
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; } &&
31093 { ac_try='test -s conftest$ac_exeext'
31094 { (case "(($ac_try" in
31095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096 *) ac_try_echo=$ac_try;;
31097 esac
31098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099 (eval "$ac_try") 2>&5
31100 ac_status=$?
31101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102 (exit $ac_status); }; }; then
31103 eval "$as_ac_var=yes"
31104 else
31105 echo "$as_me: failed program was:" >&5
31106 sed 's/^/| /' conftest.$ac_ext >&5
31108 eval "$as_ac_var=no"
31111 rm -f core conftest.err conftest.$ac_objext \
31112 conftest$ac_exeext conftest.$ac_ext
31114 ac_res=`eval echo '${'$as_ac_var'}'`
31115 { echo "$as_me:$LINENO: result: $ac_res" >&5
31116 echo "${ECHO_T}$ac_res" >&6; }
31117 if test `eval echo '${'$as_ac_var'}'` = yes; then
31119 cat >>confdefs.h <<_ACEOF
31120 #define CRAY_STACKSEG_END $ac_func
31121 _ACEOF
31123 break
31126 done
31129 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31130 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31131 if test "${ac_cv_c_stack_direction+set}" = set; then
31132 echo $ECHO_N "(cached) $ECHO_C" >&6
31133 else
31134 if test "$cross_compiling" = yes; then
31135 ac_cv_c_stack_direction=0
31136 else
31137 cat >conftest.$ac_ext <<_ACEOF
31138 /* confdefs.h. */
31139 _ACEOF
31140 cat confdefs.h >>conftest.$ac_ext
31141 cat >>conftest.$ac_ext <<_ACEOF
31142 /* end confdefs.h. */
31143 $ac_includes_default
31145 find_stack_direction ()
31147 static char *addr = 0;
31148 auto char dummy;
31149 if (addr == 0)
31151 addr = &dummy;
31152 return find_stack_direction ();
31154 else
31155 return (&dummy > addr) ? 1 : -1;
31159 main ()
31161 return find_stack_direction () < 0;
31163 _ACEOF
31164 rm -f conftest$ac_exeext
31165 if { (ac_try="$ac_link"
31166 case "(($ac_try" in
31167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31168 *) ac_try_echo=$ac_try;;
31169 esac
31170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171 (eval "$ac_link") 2>&5
31172 ac_status=$?
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31175 { (case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31178 esac
31179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180 (eval "$ac_try") 2>&5
31181 ac_status=$?
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; }; then
31184 ac_cv_c_stack_direction=1
31185 else
31186 echo "$as_me: program exited with status $ac_status" >&5
31187 echo "$as_me: failed program was:" >&5
31188 sed 's/^/| /' conftest.$ac_ext >&5
31190 ( exit $ac_status )
31191 ac_cv_c_stack_direction=-1
31193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31198 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31199 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31201 cat >>confdefs.h <<_ACEOF
31202 #define STACK_DIRECTION $ac_cv_c_stack_direction
31203 _ACEOF
31209 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31210 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
31211 if test "${ac_cv_func_rand48+set}" = set; then
31212 echo $ECHO_N "(cached) $ECHO_C" >&6
31213 else
31214 ac_ext=cpp
31215 ac_cpp='$CXXCPP $CPPFLAGS'
31216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31220 cat >conftest.$ac_ext <<_ACEOF
31221 /* confdefs.h. */
31222 _ACEOF
31223 cat confdefs.h >>conftest.$ac_ext
31224 cat >>conftest.$ac_ext <<_ACEOF
31225 /* end confdefs.h. */
31226 #include <stdlib.h>
31228 main ()
31230 srand48(0);lrand48();drand48();
31232 return 0;
31234 _ACEOF
31235 rm -f conftest.$ac_objext
31236 if { (ac_try="$ac_compile"
31237 case "(($ac_try" in
31238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31239 *) ac_try_echo=$ac_try;;
31240 esac
31241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31242 (eval "$ac_compile") 2>conftest.er1
31243 ac_status=$?
31244 grep -v '^ *+' conftest.er1 >conftest.err
31245 rm -f conftest.er1
31246 cat conftest.err >&5
31247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248 (exit $ac_status); } &&
31249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31250 { (case "(($ac_try" in
31251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31252 *) ac_try_echo=$ac_try;;
31253 esac
31254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255 (eval "$ac_try") 2>&5
31256 ac_status=$?
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); }; } &&
31259 { ac_try='test -s conftest.$ac_objext'
31260 { (case "(($ac_try" in
31261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31262 *) ac_try_echo=$ac_try;;
31263 esac
31264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31265 (eval "$ac_try") 2>&5
31266 ac_status=$?
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); }; }; then
31269 ac_cv_func_rand48=yes
31270 else
31271 echo "$as_me: failed program was:" >&5
31272 sed 's/^/| /' conftest.$ac_ext >&5
31274 ac_cv_func_rand48=no
31277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31278 ac_ext=c
31279 ac_cpp='$CPP $CPPFLAGS'
31280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31285 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31286 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
31288 if test "$ac_cv_func_rand48" = "yes" ; then
31290 cat >>confdefs.h <<\_ACEOF
31291 #define HAVE_RAND48 1
31292 _ACEOF
31297 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31298 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
31299 if test "${ac_cv_cxx_namespaces+set}" = set; then
31300 echo $ECHO_N "(cached) $ECHO_C" >&6
31301 else
31302 ac_ext=cpp
31303 ac_cpp='$CXXCPP $CPPFLAGS'
31304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31308 cat >conftest.$ac_ext <<_ACEOF
31309 /* confdefs.h. */
31310 _ACEOF
31311 cat confdefs.h >>conftest.$ac_ext
31312 cat >>conftest.$ac_ext <<_ACEOF
31313 /* end confdefs.h. */
31314 namespace Outer { namespace Inner { int i = 0; }}
31316 main ()
31318 using namespace Outer::Inner; return i;
31320 return 0;
31322 _ACEOF
31323 rm -f conftest.$ac_objext
31324 if { (ac_try="$ac_compile"
31325 case "(($ac_try" in
31326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327 *) ac_try_echo=$ac_try;;
31328 esac
31329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330 (eval "$ac_compile") 2>conftest.er1
31331 ac_status=$?
31332 grep -v '^ *+' conftest.er1 >conftest.err
31333 rm -f conftest.er1
31334 cat conftest.err >&5
31335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336 (exit $ac_status); } &&
31337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31338 { (case "(($ac_try" in
31339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31340 *) ac_try_echo=$ac_try;;
31341 esac
31342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31343 (eval "$ac_try") 2>&5
31344 ac_status=$?
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); }; } &&
31347 { ac_try='test -s conftest.$ac_objext'
31348 { (case "(($ac_try" in
31349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31350 *) ac_try_echo=$ac_try;;
31351 esac
31352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31353 (eval "$ac_try") 2>&5
31354 ac_status=$?
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); }; }; then
31357 ac_cv_cxx_namespaces=yes
31358 else
31359 echo "$as_me: failed program was:" >&5
31360 sed 's/^/| /' conftest.$ac_ext >&5
31362 ac_cv_cxx_namespaces=no
31365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31366 ac_ext=c
31367 ac_cpp='$CPP $CPPFLAGS'
31368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31374 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31375 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
31376 if test "$ac_cv_cxx_namespaces" = yes; then
31378 cat >>confdefs.h <<\_ACEOF
31379 #define HAVE_NAMESPACES
31380 _ACEOF
31384 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31385 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
31386 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
31387 echo $ECHO_N "(cached) $ECHO_C" >&6
31388 else
31390 ac_ext=cpp
31391 ac_cpp='$CXXCPP $CPPFLAGS'
31392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31396 cat >conftest.$ac_ext <<_ACEOF
31397 /* confdefs.h. */
31398 _ACEOF
31399 cat confdefs.h >>conftest.$ac_ext
31400 cat >>conftest.$ac_ext <<_ACEOF
31401 /* end confdefs.h. */
31402 #include <ext/hash_map>
31403 #ifdef HAVE_NAMESPACES
31404 using namespace std;
31405 #endif
31407 main ()
31409 hash_map<int, int> t;
31411 return 0;
31413 _ACEOF
31414 rm -f conftest.$ac_objext
31415 if { (ac_try="$ac_compile"
31416 case "(($ac_try" in
31417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418 *) ac_try_echo=$ac_try;;
31419 esac
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421 (eval "$ac_compile") 2>conftest.er1
31422 ac_status=$?
31423 grep -v '^ *+' conftest.er1 >conftest.err
31424 rm -f conftest.er1
31425 cat conftest.err >&5
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } &&
31428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31429 { (case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31432 esac
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_try") 2>&5
31435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; } &&
31438 { ac_try='test -s conftest.$ac_objext'
31439 { (case "(($ac_try" in
31440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441 *) ac_try_echo=$ac_try;;
31442 esac
31443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444 (eval "$ac_try") 2>&5
31445 ac_status=$?
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); }; }; then
31448 ac_cv_cxx_have_std_ext_hash_map=yes
31449 else
31450 echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31453 ac_cv_cxx_have_std_ext_hash_map=no
31456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31457 ac_ext=c
31458 ac_cpp='$CPP $CPPFLAGS'
31459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31464 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31465 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
31466 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31467 then
31469 cat >>confdefs.h <<\_ACEOF
31470 #define HAVE_STD_EXT_HASH_MAP 1
31471 _ACEOF
31473 else
31475 cat >>confdefs.h <<\_ACEOF
31476 #define HAVE_STD_EXT_HASH_MAP 0
31477 _ACEOF
31481 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31482 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
31483 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31485 else
31487 ac_ext=cpp
31488 ac_cpp='$CXXCPP $CPPFLAGS'
31489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31493 cat >conftest.$ac_ext <<_ACEOF
31494 /* confdefs.h. */
31495 _ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499 #include <ext/hash_map>
31500 #ifdef HAVE_NAMESPACES
31501 using namespace __gnu_cxx;
31502 #endif
31504 main ()
31506 hash_map<int,int> t;
31508 return 0;
31510 _ACEOF
31511 rm -f conftest.$ac_objext
31512 if { (ac_try="$ac_compile"
31513 case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31516 esac
31517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_compile") 2>conftest.er1
31519 ac_status=$?
31520 grep -v '^ *+' conftest.er1 >conftest.err
31521 rm -f conftest.er1
31522 cat conftest.err >&5
31523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } &&
31525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31529 esac
31530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
31532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest.$ac_objext'
31536 { (case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31539 esac
31540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_try") 2>&5
31542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 ac_cv_cxx_have_gnu_ext_hash_map=yes
31546 else
31547 echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31550 ac_cv_cxx_have_gnu_ext_hash_map=no
31553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31554 ac_ext=c
31555 ac_cpp='$CPP $CPPFLAGS'
31556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31561 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31562 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
31563 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31564 then
31566 cat >>confdefs.h <<\_ACEOF
31567 #define HAVE_GNU_EXT_HASH_MAP 1
31568 _ACEOF
31570 else
31572 cat >>confdefs.h <<\_ACEOF
31573 #define HAVE_GNU_EXT_HASH_MAP 0
31574 _ACEOF
31578 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31579 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
31580 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31581 echo $ECHO_N "(cached) $ECHO_C" >&6
31582 else
31584 ac_ext=cpp
31585 ac_cpp='$CXXCPP $CPPFLAGS'
31586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31590 cat >conftest.$ac_ext <<_ACEOF
31591 /* confdefs.h. */
31592 _ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h. */
31596 #include <hash_map>
31598 main ()
31600 hash_map<int,int> t;
31602 return 0;
31604 _ACEOF
31605 rm -f conftest.$ac_objext
31606 if { (ac_try="$ac_compile"
31607 case "(($ac_try" in
31608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609 *) ac_try_echo=$ac_try;;
31610 esac
31611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612 (eval "$ac_compile") 2>conftest.er1
31613 ac_status=$?
31614 grep -v '^ *+' conftest.er1 >conftest.err
31615 rm -f conftest.er1
31616 cat conftest.err >&5
31617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); } &&
31619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31620 { (case "(($ac_try" in
31621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622 *) ac_try_echo=$ac_try;;
31623 esac
31624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625 (eval "$ac_try") 2>&5
31626 ac_status=$?
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); }; } &&
31629 { ac_try='test -s conftest.$ac_objext'
31630 { (case "(($ac_try" in
31631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632 *) ac_try_echo=$ac_try;;
31633 esac
31634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635 (eval "$ac_try") 2>&5
31636 ac_status=$?
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; }; then
31639 ac_cv_cxx_have_global_hash_map=yes
31640 else
31641 echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31644 ac_cv_cxx_have_global_hash_map=no
31647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31648 ac_ext=c
31649 ac_cpp='$CPP $CPPFLAGS'
31650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31655 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31656 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
31657 if test "$ac_cv_cxx_have_global_hash_map" = yes
31658 then
31660 cat >>confdefs.h <<\_ACEOF
31661 #define HAVE_GLOBAL_HASH_MAP 1
31662 _ACEOF
31664 else
31666 cat >>confdefs.h <<\_ACEOF
31667 #define HAVE_GLOBAL_HASH_MAP 0
31668 _ACEOF
31672 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31673 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
31674 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
31675 echo $ECHO_N "(cached) $ECHO_C" >&6
31676 else
31678 ac_ext=cpp
31679 ac_cpp='$CXXCPP $CPPFLAGS'
31680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31684 cat >conftest.$ac_ext <<_ACEOF
31685 /* confdefs.h. */
31686 _ACEOF
31687 cat confdefs.h >>conftest.$ac_ext
31688 cat >>conftest.$ac_ext <<_ACEOF
31689 /* end confdefs.h. */
31690 #include <ext/hash_set>
31691 #ifdef HAVE_NAMESPACES
31692 using namespace std;
31693 #endif
31695 main ()
31697 hash_set<int> t;
31699 return 0;
31701 _ACEOF
31702 rm -f conftest.$ac_objext
31703 if { (ac_try="$ac_compile"
31704 case "(($ac_try" in
31705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706 *) ac_try_echo=$ac_try;;
31707 esac
31708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709 (eval "$ac_compile") 2>conftest.er1
31710 ac_status=$?
31711 grep -v '^ *+' conftest.er1 >conftest.err
31712 rm -f conftest.er1
31713 cat conftest.err >&5
31714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); } &&
31716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31717 { (case "(($ac_try" in
31718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31719 *) ac_try_echo=$ac_try;;
31720 esac
31721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31722 (eval "$ac_try") 2>&5
31723 ac_status=$?
31724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725 (exit $ac_status); }; } &&
31726 { ac_try='test -s conftest.$ac_objext'
31727 { (case "(($ac_try" in
31728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31729 *) ac_try_echo=$ac_try;;
31730 esac
31731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31732 (eval "$ac_try") 2>&5
31733 ac_status=$?
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; }; then
31736 ac_cv_cxx_have_std_ext_hash_set=yes
31737 else
31738 echo "$as_me: failed program was:" >&5
31739 sed 's/^/| /' conftest.$ac_ext >&5
31741 ac_cv_cxx_have_std_ext_hash_set=no
31744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31745 ac_ext=c
31746 ac_cpp='$CPP $CPPFLAGS'
31747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31752 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31753 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
31754 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31755 then
31757 cat >>confdefs.h <<\_ACEOF
31758 #define HAVE_STD_EXT_HASH_SET 1
31759 _ACEOF
31761 else
31763 cat >>confdefs.h <<\_ACEOF
31764 #define HAVE_STD_EXT_HASH_SET 0
31765 _ACEOF
31769 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31770 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
31771 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31772 echo $ECHO_N "(cached) $ECHO_C" >&6
31773 else
31775 ac_ext=cpp
31776 ac_cpp='$CXXCPP $CPPFLAGS'
31777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31781 cat >conftest.$ac_ext <<_ACEOF
31782 /* confdefs.h. */
31783 _ACEOF
31784 cat confdefs.h >>conftest.$ac_ext
31785 cat >>conftest.$ac_ext <<_ACEOF
31786 /* end confdefs.h. */
31787 #include <ext/hash_set>
31788 #ifdef HAVE_NAMESPACES
31789 using namespace __gnu_cxx;
31790 #endif
31792 main ()
31794 hash_set<int> t;
31796 return 0;
31798 _ACEOF
31799 rm -f conftest.$ac_objext
31800 if { (ac_try="$ac_compile"
31801 case "(($ac_try" in
31802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803 *) ac_try_echo=$ac_try;;
31804 esac
31805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806 (eval "$ac_compile") 2>conftest.er1
31807 ac_status=$?
31808 grep -v '^ *+' conftest.er1 >conftest.err
31809 rm -f conftest.er1
31810 cat conftest.err >&5
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31812 (exit $ac_status); } &&
31813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31814 { (case "(($ac_try" in
31815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816 *) ac_try_echo=$ac_try;;
31817 esac
31818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819 (eval "$ac_try") 2>&5
31820 ac_status=$?
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; } &&
31823 { ac_try='test -s conftest.$ac_objext'
31824 { (case "(($ac_try" in
31825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826 *) ac_try_echo=$ac_try;;
31827 esac
31828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829 (eval "$ac_try") 2>&5
31830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; }; then
31833 ac_cv_cxx_have_gnu_ext_hash_set=yes
31834 else
31835 echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.$ac_ext >&5
31838 ac_cv_cxx_have_gnu_ext_hash_set=no
31841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31842 ac_ext=c
31843 ac_cpp='$CPP $CPPFLAGS'
31844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31849 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31850 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
31851 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31852 then
31854 cat >>confdefs.h <<\_ACEOF
31855 #define HAVE_GNU_EXT_HASH_SET 1
31856 _ACEOF
31858 else
31860 cat >>confdefs.h <<\_ACEOF
31861 #define HAVE_GNU_EXT_HASH_SET 0
31862 _ACEOF
31866 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31867 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
31868 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31869 echo $ECHO_N "(cached) $ECHO_C" >&6
31870 else
31872 ac_ext=cpp
31873 ac_cpp='$CXXCPP $CPPFLAGS'
31874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31878 cat >conftest.$ac_ext <<_ACEOF
31879 /* confdefs.h. */
31880 _ACEOF
31881 cat confdefs.h >>conftest.$ac_ext
31882 cat >>conftest.$ac_ext <<_ACEOF
31883 /* end confdefs.h. */
31884 #include <hash_set>
31886 main ()
31888 hash_set<int> t; return 0;
31890 return 0;
31892 _ACEOF
31893 rm -f conftest.$ac_objext
31894 if { (ac_try="$ac_compile"
31895 case "(($ac_try" in
31896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897 *) ac_try_echo=$ac_try;;
31898 esac
31899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900 (eval "$ac_compile") 2>conftest.er1
31901 ac_status=$?
31902 grep -v '^ *+' conftest.er1 >conftest.err
31903 rm -f conftest.er1
31904 cat conftest.err >&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); } &&
31907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31908 { (case "(($ac_try" in
31909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910 *) ac_try_echo=$ac_try;;
31911 esac
31912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31913 (eval "$ac_try") 2>&5
31914 ac_status=$?
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); }; } &&
31917 { ac_try='test -s conftest.$ac_objext'
31918 { (case "(($ac_try" in
31919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31920 *) ac_try_echo=$ac_try;;
31921 esac
31922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31923 (eval "$ac_try") 2>&5
31924 ac_status=$?
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); }; }; then
31927 ac_cv_cxx_have_global_hash_set=yes
31928 else
31929 echo "$as_me: failed program was:" >&5
31930 sed 's/^/| /' conftest.$ac_ext >&5
31932 ac_cv_cxx_have_global_hash_set=no
31935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31936 ac_ext=c
31937 ac_cpp='$CPP $CPPFLAGS'
31938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31943 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31944 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
31945 if test "$ac_cv_cxx_have_global_hash_set" = yes
31946 then
31948 cat >>confdefs.h <<\_ACEOF
31949 #define HAVE_GLOBAL_HASH_SET 1
31950 _ACEOF
31952 else
31954 cat >>confdefs.h <<\_ACEOF
31955 #define HAVE_GLOBAL_HASH_SET 0
31956 _ACEOF
31960 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31961 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
31962 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31963 echo $ECHO_N "(cached) $ECHO_C" >&6
31964 else
31966 ac_ext=cpp
31967 ac_cpp='$CXXCPP $CPPFLAGS'
31968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31972 cat >conftest.$ac_ext <<_ACEOF
31973 /* confdefs.h. */
31974 _ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h. */
31978 #include <iterator>
31979 #ifdef HAVE_NAMESPACES
31980 using namespace std;
31981 #endif
31983 main ()
31985 iterator<int,int,int> t; return 0;
31987 return 0;
31989 _ACEOF
31990 rm -f conftest.$ac_objext
31991 if { (ac_try="$ac_compile"
31992 case "(($ac_try" in
31993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31994 *) ac_try_echo=$ac_try;;
31995 esac
31996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31997 (eval "$ac_compile") 2>conftest.er1
31998 ac_status=$?
31999 grep -v '^ *+' conftest.er1 >conftest.err
32000 rm -f conftest.er1
32001 cat conftest.err >&5
32002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32003 (exit $ac_status); } &&
32004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32005 { (case "(($ac_try" in
32006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32007 *) ac_try_echo=$ac_try;;
32008 esac
32009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32010 (eval "$ac_try") 2>&5
32011 ac_status=$?
32012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013 (exit $ac_status); }; } &&
32014 { ac_try='test -s conftest.$ac_objext'
32015 { (case "(($ac_try" in
32016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32017 *) ac_try_echo=$ac_try;;
32018 esac
32019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32020 (eval "$ac_try") 2>&5
32021 ac_status=$?
32022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023 (exit $ac_status); }; }; then
32024 ac_cv_cxx_have_std_iterator=yes
32025 else
32026 echo "$as_me: failed program was:" >&5
32027 sed 's/^/| /' conftest.$ac_ext >&5
32029 ac_cv_cxx_have_std_iterator=no
32032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32033 ac_ext=c
32034 ac_cpp='$CPP $CPPFLAGS'
32035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32041 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32042 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
32043 if test "$ac_cv_cxx_have_std_iterator" = yes
32044 then
32046 cat >>confdefs.h <<\_ACEOF
32047 #define HAVE_STD_ITERATOR 1
32048 _ACEOF
32050 else
32052 cat >>confdefs.h <<\_ACEOF
32053 #define HAVE_STD_ITERATOR 0
32054 _ACEOF
32058 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32059 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
32060 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32061 echo $ECHO_N "(cached) $ECHO_C" >&6
32062 else
32064 ac_ext=cpp
32065 ac_cpp='$CXXCPP $CPPFLAGS'
32066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32070 cat >conftest.$ac_ext <<_ACEOF
32071 /* confdefs.h. */
32072 _ACEOF
32073 cat confdefs.h >>conftest.$ac_ext
32074 cat >>conftest.$ac_ext <<_ACEOF
32075 /* end confdefs.h. */
32076 #include <iterator>
32077 #ifdef HAVE_NAMESPACES
32078 using namespace std;
32079 #endif
32081 main ()
32083 bidirectional_iterator<int,int> t; return 0;
32085 return 0;
32087 _ACEOF
32088 rm -f conftest.$ac_objext
32089 if { (ac_try="$ac_compile"
32090 case "(($ac_try" in
32091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092 *) ac_try_echo=$ac_try;;
32093 esac
32094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32095 (eval "$ac_compile") 2>conftest.er1
32096 ac_status=$?
32097 grep -v '^ *+' conftest.er1 >conftest.err
32098 rm -f conftest.er1
32099 cat conftest.err >&5
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); } &&
32102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32103 { (case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32106 esac
32107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_try") 2>&5
32109 ac_status=$?
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); }; } &&
32112 { ac_try='test -s conftest.$ac_objext'
32113 { (case "(($ac_try" in
32114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32115 *) ac_try_echo=$ac_try;;
32116 esac
32117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32118 (eval "$ac_try") 2>&5
32119 ac_status=$?
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); }; }; then
32122 ac_cv_cxx_have_bi_iterator=yes
32123 else
32124 echo "$as_me: failed program was:" >&5
32125 sed 's/^/| /' conftest.$ac_ext >&5
32127 ac_cv_cxx_have_bi_iterator=no
32130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32131 ac_ext=c
32132 ac_cpp='$CPP $CPPFLAGS'
32133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32139 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32140 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
32141 if test "$ac_cv_cxx_have_bi_iterator" = yes
32142 then
32144 cat >>confdefs.h <<\_ACEOF
32145 #define HAVE_BI_ITERATOR 1
32146 _ACEOF
32148 else
32150 cat >>confdefs.h <<\_ACEOF
32151 #define HAVE_BI_ITERATOR 0
32152 _ACEOF
32156 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32157 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
32158 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32159 echo $ECHO_N "(cached) $ECHO_C" >&6
32160 else
32162 ac_ext=cpp
32163 ac_cpp='$CXXCPP $CPPFLAGS'
32164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32168 cat >conftest.$ac_ext <<_ACEOF
32169 /* confdefs.h. */
32170 _ACEOF
32171 cat confdefs.h >>conftest.$ac_ext
32172 cat >>conftest.$ac_ext <<_ACEOF
32173 /* end confdefs.h. */
32174 #include <iterator>
32175 #ifdef HAVE_NAMESPACES
32176 using namespace std;
32177 #endif
32179 main ()
32181 forward_iterator<int,int> t; return 0;
32183 return 0;
32185 _ACEOF
32186 rm -f conftest.$ac_objext
32187 if { (ac_try="$ac_compile"
32188 case "(($ac_try" in
32189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32190 *) ac_try_echo=$ac_try;;
32191 esac
32192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32193 (eval "$ac_compile") 2>conftest.er1
32194 ac_status=$?
32195 grep -v '^ *+' conftest.er1 >conftest.err
32196 rm -f conftest.er1
32197 cat conftest.err >&5
32198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199 (exit $ac_status); } &&
32200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32201 { (case "(($ac_try" in
32202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32203 *) ac_try_echo=$ac_try;;
32204 esac
32205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32206 (eval "$ac_try") 2>&5
32207 ac_status=$?
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); }; } &&
32210 { ac_try='test -s conftest.$ac_objext'
32211 { (case "(($ac_try" in
32212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32213 *) ac_try_echo=$ac_try;;
32214 esac
32215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32216 (eval "$ac_try") 2>&5
32217 ac_status=$?
32218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 (exit $ac_status); }; }; then
32220 ac_cv_cxx_have_fwd_iterator=yes
32221 else
32222 echo "$as_me: failed program was:" >&5
32223 sed 's/^/| /' conftest.$ac_ext >&5
32225 ac_cv_cxx_have_fwd_iterator=no
32228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32229 ac_ext=c
32230 ac_cpp='$CPP $CPPFLAGS'
32231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32237 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32238 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
32239 if test "$ac_cv_cxx_have_fwd_iterator" = yes
32240 then
32242 cat >>confdefs.h <<\_ACEOF
32243 #define HAVE_FWD_ITERATOR 1
32244 _ACEOF
32246 else
32248 cat >>confdefs.h <<\_ACEOF
32249 #define HAVE_FWD_ITERATOR 0
32250 _ACEOF
32255 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32256 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
32257 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32258 echo $ECHO_N "(cached) $ECHO_C" >&6
32259 else
32260 ac_ext=cpp
32261 ac_cpp='$CXXCPP $CPPFLAGS'
32262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32266 cat >conftest.$ac_ext <<_ACEOF
32267 /* confdefs.h. */
32268 _ACEOF
32269 cat confdefs.h >>conftest.$ac_ext
32270 cat >>conftest.$ac_ext <<_ACEOF
32271 /* end confdefs.h. */
32272 #include <math.h>
32274 main ()
32276 float f; isnan(f);
32278 return 0;
32280 _ACEOF
32281 rm -f conftest.$ac_objext
32282 if { (ac_try="$ac_compile"
32283 case "(($ac_try" in
32284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285 *) ac_try_echo=$ac_try;;
32286 esac
32287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288 (eval "$ac_compile") 2>conftest.er1
32289 ac_status=$?
32290 grep -v '^ *+' conftest.er1 >conftest.err
32291 rm -f conftest.er1
32292 cat conftest.err >&5
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); } &&
32295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32296 { (case "(($ac_try" in
32297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32298 *) ac_try_echo=$ac_try;;
32299 esac
32300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32301 (eval "$ac_try") 2>&5
32302 ac_status=$?
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; } &&
32305 { ac_try='test -s conftest.$ac_objext'
32306 { (case "(($ac_try" in
32307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32308 *) ac_try_echo=$ac_try;;
32309 esac
32310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32311 (eval "$ac_try") 2>&5
32312 ac_status=$?
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); }; }; then
32315 ac_cv_func_isnan_in_math_h=yes
32316 else
32317 echo "$as_me: failed program was:" >&5
32318 sed 's/^/| /' conftest.$ac_ext >&5
32320 ac_cv_func_isnan_in_math_h=no
32323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32324 ac_ext=c
32325 ac_cpp='$CPP $CPPFLAGS'
32326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32331 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32332 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
32335 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
32337 cat >>confdefs.h <<\_ACEOF
32338 #define HAVE_ISNAN_IN_MATH_H 1
32339 _ACEOF
32343 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32344 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
32345 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32346 echo $ECHO_N "(cached) $ECHO_C" >&6
32347 else
32348 ac_ext=cpp
32349 ac_cpp='$CXXCPP $CPPFLAGS'
32350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32354 cat >conftest.$ac_ext <<_ACEOF
32355 /* confdefs.h. */
32356 _ACEOF
32357 cat confdefs.h >>conftest.$ac_ext
32358 cat >>conftest.$ac_ext <<_ACEOF
32359 /* end confdefs.h. */
32360 #include <cmath>
32362 main ()
32364 float f; isnan(f);
32366 return 0;
32368 _ACEOF
32369 rm -f conftest.$ac_objext
32370 if { (ac_try="$ac_compile"
32371 case "(($ac_try" in
32372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32373 *) ac_try_echo=$ac_try;;
32374 esac
32375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32376 (eval "$ac_compile") 2>conftest.er1
32377 ac_status=$?
32378 grep -v '^ *+' conftest.er1 >conftest.err
32379 rm -f conftest.er1
32380 cat conftest.err >&5
32381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); } &&
32383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32384 { (case "(($ac_try" in
32385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32386 *) ac_try_echo=$ac_try;;
32387 esac
32388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32389 (eval "$ac_try") 2>&5
32390 ac_status=$?
32391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392 (exit $ac_status); }; } &&
32393 { ac_try='test -s conftest.$ac_objext'
32394 { (case "(($ac_try" in
32395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32396 *) ac_try_echo=$ac_try;;
32397 esac
32398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32399 (eval "$ac_try") 2>&5
32400 ac_status=$?
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); }; }; then
32403 ac_cv_func_isnan_in_cmath=yes
32404 else
32405 echo "$as_me: failed program was:" >&5
32406 sed 's/^/| /' conftest.$ac_ext >&5
32408 ac_cv_func_isnan_in_cmath=no
32411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32412 ac_ext=c
32413 ac_cpp='$CPP $CPPFLAGS'
32414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32419 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32420 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
32422 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
32424 cat >>confdefs.h <<\_ACEOF
32425 #define HAVE_ISNAN_IN_CMATH 1
32426 _ACEOF
32430 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32431 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
32432 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32433 echo $ECHO_N "(cached) $ECHO_C" >&6
32434 else
32435 ac_ext=cpp
32436 ac_cpp='$CXXCPP $CPPFLAGS'
32437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32441 cat >conftest.$ac_ext <<_ACEOF
32442 /* confdefs.h. */
32443 _ACEOF
32444 cat confdefs.h >>conftest.$ac_ext
32445 cat >>conftest.$ac_ext <<_ACEOF
32446 /* end confdefs.h. */
32447 #include <cmath>
32449 main ()
32451 float f; std::isnan(f);
32453 return 0;
32455 _ACEOF
32456 rm -f conftest.$ac_objext
32457 if { (ac_try="$ac_compile"
32458 case "(($ac_try" in
32459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460 *) ac_try_echo=$ac_try;;
32461 esac
32462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32463 (eval "$ac_compile") 2>conftest.er1
32464 ac_status=$?
32465 grep -v '^ *+' conftest.er1 >conftest.err
32466 rm -f conftest.er1
32467 cat conftest.err >&5
32468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469 (exit $ac_status); } &&
32470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32471 { (case "(($ac_try" in
32472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473 *) ac_try_echo=$ac_try;;
32474 esac
32475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476 (eval "$ac_try") 2>&5
32477 ac_status=$?
32478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479 (exit $ac_status); }; } &&
32480 { ac_try='test -s conftest.$ac_objext'
32481 { (case "(($ac_try" in
32482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483 *) ac_try_echo=$ac_try;;
32484 esac
32485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486 (eval "$ac_try") 2>&5
32487 ac_status=$?
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; }; then
32490 ac_cv_func_std_isnan_in_cmath=yes
32491 else
32492 echo "$as_me: failed program was:" >&5
32493 sed 's/^/| /' conftest.$ac_ext >&5
32495 ac_cv_func_std_isnan_in_cmath=no
32498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32499 ac_ext=c
32500 ac_cpp='$CPP $CPPFLAGS'
32501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32506 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32507 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
32509 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
32511 cat >>confdefs.h <<\_ACEOF
32512 #define HAVE_STD_ISNAN_IN_CMATH 1
32513 _ACEOF
32518 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32519 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
32520 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32521 echo $ECHO_N "(cached) $ECHO_C" >&6
32522 else
32523 ac_ext=cpp
32524 ac_cpp='$CXXCPP $CPPFLAGS'
32525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32529 cat >conftest.$ac_ext <<_ACEOF
32530 /* confdefs.h. */
32531 _ACEOF
32532 cat confdefs.h >>conftest.$ac_ext
32533 cat >>conftest.$ac_ext <<_ACEOF
32534 /* end confdefs.h. */
32535 #include <math.h>
32537 main ()
32539 float f; isinf(f);
32541 return 0;
32543 _ACEOF
32544 rm -f conftest.$ac_objext
32545 if { (ac_try="$ac_compile"
32546 case "(($ac_try" in
32547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32548 *) ac_try_echo=$ac_try;;
32549 esac
32550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32551 (eval "$ac_compile") 2>conftest.er1
32552 ac_status=$?
32553 grep -v '^ *+' conftest.er1 >conftest.err
32554 rm -f conftest.er1
32555 cat conftest.err >&5
32556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557 (exit $ac_status); } &&
32558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32559 { (case "(($ac_try" in
32560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32561 *) ac_try_echo=$ac_try;;
32562 esac
32563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32564 (eval "$ac_try") 2>&5
32565 ac_status=$?
32566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32567 (exit $ac_status); }; } &&
32568 { ac_try='test -s conftest.$ac_objext'
32569 { (case "(($ac_try" in
32570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571 *) ac_try_echo=$ac_try;;
32572 esac
32573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32574 (eval "$ac_try") 2>&5
32575 ac_status=$?
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); }; }; then
32578 ac_cv_func_isinf_in_math_h=yes
32579 else
32580 echo "$as_me: failed program was:" >&5
32581 sed 's/^/| /' conftest.$ac_ext >&5
32583 ac_cv_func_isinf_in_math_h=no
32586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32587 ac_ext=c
32588 ac_cpp='$CPP $CPPFLAGS'
32589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32594 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32595 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
32597 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
32599 cat >>confdefs.h <<\_ACEOF
32600 #define HAVE_ISINF_IN_MATH_H 1
32601 _ACEOF
32605 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32606 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
32607 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32608 echo $ECHO_N "(cached) $ECHO_C" >&6
32609 else
32610 ac_ext=cpp
32611 ac_cpp='$CXXCPP $CPPFLAGS'
32612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32616 cat >conftest.$ac_ext <<_ACEOF
32617 /* confdefs.h. */
32618 _ACEOF
32619 cat confdefs.h >>conftest.$ac_ext
32620 cat >>conftest.$ac_ext <<_ACEOF
32621 /* end confdefs.h. */
32622 #include <cmath>
32624 main ()
32626 float f; isinf(f);
32628 return 0;
32630 _ACEOF
32631 rm -f conftest.$ac_objext
32632 if { (ac_try="$ac_compile"
32633 case "(($ac_try" in
32634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32635 *) ac_try_echo=$ac_try;;
32636 esac
32637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32638 (eval "$ac_compile") 2>conftest.er1
32639 ac_status=$?
32640 grep -v '^ *+' conftest.er1 >conftest.err
32641 rm -f conftest.er1
32642 cat conftest.err >&5
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); } &&
32645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32646 { (case "(($ac_try" in
32647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32649 esac
32650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651 (eval "$ac_try") 2>&5
32652 ac_status=$?
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); }; } &&
32655 { ac_try='test -s conftest.$ac_objext'
32656 { (case "(($ac_try" in
32657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32658 *) ac_try_echo=$ac_try;;
32659 esac
32660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32661 (eval "$ac_try") 2>&5
32662 ac_status=$?
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); }; }; then
32665 ac_cv_func_isinf_in_cmath=yes
32666 else
32667 echo "$as_me: failed program was:" >&5
32668 sed 's/^/| /' conftest.$ac_ext >&5
32670 ac_cv_func_isinf_in_cmath=no
32673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32674 ac_ext=c
32675 ac_cpp='$CPP $CPPFLAGS'
32676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32681 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32682 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
32684 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
32686 cat >>confdefs.h <<\_ACEOF
32687 #define HAVE_ISINF_IN_CMATH 1
32688 _ACEOF
32692 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32693 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
32694 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32695 echo $ECHO_N "(cached) $ECHO_C" >&6
32696 else
32697 ac_ext=cpp
32698 ac_cpp='$CXXCPP $CPPFLAGS'
32699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32703 cat >conftest.$ac_ext <<_ACEOF
32704 /* confdefs.h. */
32705 _ACEOF
32706 cat confdefs.h >>conftest.$ac_ext
32707 cat >>conftest.$ac_ext <<_ACEOF
32708 /* end confdefs.h. */
32709 #include <cmath>
32711 main ()
32713 float f; std::isinf(f)}
32715 return 0;
32717 _ACEOF
32718 rm -f conftest.$ac_objext
32719 if { (ac_try="$ac_compile"
32720 case "(($ac_try" in
32721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32722 *) ac_try_echo=$ac_try;;
32723 esac
32724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32725 (eval "$ac_compile") 2>conftest.er1
32726 ac_status=$?
32727 grep -v '^ *+' conftest.er1 >conftest.err
32728 rm -f conftest.er1
32729 cat conftest.err >&5
32730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731 (exit $ac_status); } &&
32732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32733 { (case "(($ac_try" in
32734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735 *) ac_try_echo=$ac_try;;
32736 esac
32737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738 (eval "$ac_try") 2>&5
32739 ac_status=$?
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); }; } &&
32742 { ac_try='test -s conftest.$ac_objext'
32743 { (case "(($ac_try" in
32744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32745 *) ac_try_echo=$ac_try;;
32746 esac
32747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32748 (eval "$ac_try") 2>&5
32749 ac_status=$?
32750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32751 (exit $ac_status); }; }; then
32752 ac_cv_func_std_isinf_in_cmath=yes
32753 else
32754 echo "$as_me: failed program was:" >&5
32755 sed 's/^/| /' conftest.$ac_ext >&5
32757 ac_cv_func_std_isinf_in_cmath=no
32760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32761 ac_ext=c
32762 ac_cpp='$CPP $CPPFLAGS'
32763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32768 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32769 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
32771 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
32773 cat >>confdefs.h <<\_ACEOF
32774 #define HAVE_STD_ISINF_IN_CMATH 1
32775 _ACEOF
32779 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32780 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
32781 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32782 echo $ECHO_N "(cached) $ECHO_C" >&6
32783 else
32784 ac_ext=cpp
32785 ac_cpp='$CXXCPP $CPPFLAGS'
32786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32790 cat >conftest.$ac_ext <<_ACEOF
32791 /* confdefs.h. */
32792 _ACEOF
32793 cat confdefs.h >>conftest.$ac_ext
32794 cat >>conftest.$ac_ext <<_ACEOF
32795 /* end confdefs.h. */
32796 #include <ieeefp.h>
32798 main ()
32800 float f; finite(f);
32802 return 0;
32804 _ACEOF
32805 rm -f conftest.$ac_objext
32806 if { (ac_try="$ac_compile"
32807 case "(($ac_try" in
32808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32809 *) ac_try_echo=$ac_try;;
32810 esac
32811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32812 (eval "$ac_compile") 2>conftest.er1
32813 ac_status=$?
32814 grep -v '^ *+' conftest.er1 >conftest.err
32815 rm -f conftest.er1
32816 cat conftest.err >&5
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); } &&
32819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32820 { (case "(($ac_try" in
32821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822 *) ac_try_echo=$ac_try;;
32823 esac
32824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825 (eval "$ac_try") 2>&5
32826 ac_status=$?
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); }; } &&
32829 { ac_try='test -s conftest.$ac_objext'
32830 { (case "(($ac_try" in
32831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32832 *) ac_try_echo=$ac_try;;
32833 esac
32834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32835 (eval "$ac_try") 2>&5
32836 ac_status=$?
32837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32838 (exit $ac_status); }; }; then
32839 ac_cv_func_finite_in_ieeefp_h=yes
32840 else
32841 echo "$as_me: failed program was:" >&5
32842 sed 's/^/| /' conftest.$ac_ext >&5
32844 ac_cv_func_finite_in_ieeefp_h=no
32847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32848 ac_ext=c
32849 ac_cpp='$CPP $CPPFLAGS'
32850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32855 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32856 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
32858 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
32860 cat >>confdefs.h <<\_ACEOF
32861 #define HAVE_FINITE_IN_IEEEFP_H 1
32862 _ACEOF
32868 if test "$llvm_cv_platform_type" = "Unix" ; then
32871 for ac_header in stdlib.h unistd.h
32873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32878 echo $ECHO_N "(cached) $ECHO_C" >&6
32880 ac_res=`eval echo '${'$as_ac_Header'}'`
32881 { echo "$as_me:$LINENO: result: $ac_res" >&5
32882 echo "${ECHO_T}$ac_res" >&6; }
32883 else
32884 # Is the header compilable?
32885 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32887 cat >conftest.$ac_ext <<_ACEOF
32888 /* confdefs.h. */
32889 _ACEOF
32890 cat confdefs.h >>conftest.$ac_ext
32891 cat >>conftest.$ac_ext <<_ACEOF
32892 /* end confdefs.h. */
32893 $ac_includes_default
32894 #include <$ac_header>
32895 _ACEOF
32896 rm -f conftest.$ac_objext
32897 if { (ac_try="$ac_compile"
32898 case "(($ac_try" in
32899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900 *) ac_try_echo=$ac_try;;
32901 esac
32902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903 (eval "$ac_compile") 2>conftest.er1
32904 ac_status=$?
32905 grep -v '^ *+' conftest.er1 >conftest.err
32906 rm -f conftest.er1
32907 cat conftest.err >&5
32908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909 (exit $ac_status); } &&
32910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32911 { (case "(($ac_try" in
32912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32913 *) ac_try_echo=$ac_try;;
32914 esac
32915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916 (eval "$ac_try") 2>&5
32917 ac_status=$?
32918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 (exit $ac_status); }; } &&
32920 { ac_try='test -s conftest.$ac_objext'
32921 { (case "(($ac_try" in
32922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32923 *) ac_try_echo=$ac_try;;
32924 esac
32925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32926 (eval "$ac_try") 2>&5
32927 ac_status=$?
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); }; }; then
32930 ac_header_compiler=yes
32931 else
32932 echo "$as_me: failed program was:" >&5
32933 sed 's/^/| /' conftest.$ac_ext >&5
32935 ac_header_compiler=no
32938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32940 echo "${ECHO_T}$ac_header_compiler" >&6; }
32942 # Is the header present?
32943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32945 cat >conftest.$ac_ext <<_ACEOF
32946 /* confdefs.h. */
32947 _ACEOF
32948 cat confdefs.h >>conftest.$ac_ext
32949 cat >>conftest.$ac_ext <<_ACEOF
32950 /* end confdefs.h. */
32951 #include <$ac_header>
32952 _ACEOF
32953 if { (ac_try="$ac_cpp conftest.$ac_ext"
32954 case "(($ac_try" in
32955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32956 *) ac_try_echo=$ac_try;;
32957 esac
32958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32960 ac_status=$?
32961 grep -v '^ *+' conftest.er1 >conftest.err
32962 rm -f conftest.er1
32963 cat conftest.err >&5
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); } >/dev/null; then
32966 if test -s conftest.err; then
32967 ac_cpp_err=$ac_c_preproc_warn_flag
32968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32969 else
32970 ac_cpp_err=
32972 else
32973 ac_cpp_err=yes
32975 if test -z "$ac_cpp_err"; then
32976 ac_header_preproc=yes
32977 else
32978 echo "$as_me: failed program was:" >&5
32979 sed 's/^/| /' conftest.$ac_ext >&5
32981 ac_header_preproc=no
32984 rm -f conftest.err conftest.$ac_ext
32985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32986 echo "${ECHO_T}$ac_header_preproc" >&6; }
32988 # So? What about this header?
32989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32990 yes:no: )
32991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32995 ac_header_preproc=yes
32997 no:yes:* )
32998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33010 ( cat <<\_ASBOX
33011 ## ----------------------------------- ##
33012 ## Report this to llvmbugs@cs.uiuc.edu ##
33013 ## ----------------------------------- ##
33014 _ASBOX
33015 ) | sed "s/^/$as_me: WARNING: /" >&2
33017 esac
33018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33021 echo $ECHO_N "(cached) $ECHO_C" >&6
33022 else
33023 eval "$as_ac_Header=\$ac_header_preproc"
33025 ac_res=`eval echo '${'$as_ac_Header'}'`
33026 { echo "$as_me:$LINENO: result: $ac_res" >&5
33027 echo "${ECHO_T}$ac_res" >&6; }
33030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33031 cat >>confdefs.h <<_ACEOF
33032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33033 _ACEOF
33037 done
33040 for ac_func in getpagesize
33042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33046 echo $ECHO_N "(cached) $ECHO_C" >&6
33047 else
33048 cat >conftest.$ac_ext <<_ACEOF
33049 /* confdefs.h. */
33050 _ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h. */
33054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33056 #define $ac_func innocuous_$ac_func
33058 /* System header to define __stub macros and hopefully few prototypes,
33059 which can conflict with char $ac_func (); below.
33060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33061 <limits.h> exists even on freestanding compilers. */
33063 #ifdef __STDC__
33064 # include <limits.h>
33065 #else
33066 # include <assert.h>
33067 #endif
33069 #undef $ac_func
33071 /* Override any GCC internal prototype to avoid an error.
33072 Use char because int might match the return type of a GCC
33073 builtin and then its argument prototype would still apply. */
33074 #ifdef __cplusplus
33075 extern "C"
33076 #endif
33077 char $ac_func ();
33078 /* The GNU C library defines this for functions which it implements
33079 to always fail with ENOSYS. Some functions are actually named
33080 something starting with __ and the normal name is an alias. */
33081 #if defined __stub_$ac_func || defined __stub___$ac_func
33082 choke me
33083 #endif
33086 main ()
33088 return $ac_func ();
33090 return 0;
33092 _ACEOF
33093 rm -f conftest.$ac_objext conftest$ac_exeext
33094 if { (ac_try="$ac_link"
33095 case "(($ac_try" in
33096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097 *) ac_try_echo=$ac_try;;
33098 esac
33099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100 (eval "$ac_link") 2>conftest.er1
33101 ac_status=$?
33102 grep -v '^ *+' conftest.er1 >conftest.err
33103 rm -f conftest.er1
33104 cat conftest.err >&5
33105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106 (exit $ac_status); } &&
33107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33108 { (case "(($ac_try" in
33109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33110 *) ac_try_echo=$ac_try;;
33111 esac
33112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33113 (eval "$ac_try") 2>&5
33114 ac_status=$?
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); }; } &&
33117 { ac_try='test -s conftest$ac_exeext'
33118 { (case "(($ac_try" in
33119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33120 *) ac_try_echo=$ac_try;;
33121 esac
33122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33123 (eval "$ac_try") 2>&5
33124 ac_status=$?
33125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33126 (exit $ac_status); }; }; then
33127 eval "$as_ac_var=yes"
33128 else
33129 echo "$as_me: failed program was:" >&5
33130 sed 's/^/| /' conftest.$ac_ext >&5
33132 eval "$as_ac_var=no"
33135 rm -f core conftest.err conftest.$ac_objext \
33136 conftest$ac_exeext conftest.$ac_ext
33138 ac_res=`eval echo '${'$as_ac_var'}'`
33139 { echo "$as_me:$LINENO: result: $ac_res" >&5
33140 echo "${ECHO_T}$ac_res" >&6; }
33141 if test `eval echo '${'$as_ac_var'}'` = yes; then
33142 cat >>confdefs.h <<_ACEOF
33143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33144 _ACEOF
33147 done
33149 { echo "$as_me:$LINENO: checking for working mmap" >&5
33150 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
33151 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33152 echo $ECHO_N "(cached) $ECHO_C" >&6
33153 else
33154 if test "$cross_compiling" = yes; then
33155 ac_cv_func_mmap_fixed_mapped=no
33156 else
33157 cat >conftest.$ac_ext <<_ACEOF
33158 /* confdefs.h. */
33159 _ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h. */
33163 $ac_includes_default
33164 /* malloc might have been renamed as rpl_malloc. */
33165 #undef malloc
33167 /* Thanks to Mike Haertel and Jim Avera for this test.
33168 Here is a matrix of mmap possibilities:
33169 mmap private not fixed
33170 mmap private fixed at somewhere currently unmapped
33171 mmap private fixed at somewhere already mapped
33172 mmap shared not fixed
33173 mmap shared fixed at somewhere currently unmapped
33174 mmap shared fixed at somewhere already mapped
33175 For private mappings, we should verify that changes cannot be read()
33176 back from the file, nor mmap's back from the file at a different
33177 address. (There have been systems where private was not correctly
33178 implemented like the infamous i386 svr4.0, and systems where the
33179 VM page cache was not coherent with the file system buffer cache
33180 like early versions of FreeBSD and possibly contemporary NetBSD.)
33181 For shared mappings, we should conversely verify that changes get
33182 propagated back to all the places they're supposed to be.
33184 Grep wants private fixed already mapped.
33185 The main things grep needs to know about mmap are:
33186 * does it exist and is it safe to write into the mmap'd area
33187 * how to use it (BSD variants) */
33189 #include <fcntl.h>
33190 #include <sys/mman.h>
33192 #if !STDC_HEADERS && !HAVE_STDLIB_H
33193 char *malloc ();
33194 #endif
33196 /* This mess was copied from the GNU getpagesize.h. */
33197 #if !HAVE_GETPAGESIZE
33198 /* Assume that all systems that can run configure have sys/param.h. */
33199 # if !HAVE_SYS_PARAM_H
33200 # define HAVE_SYS_PARAM_H 1
33201 # endif
33203 # ifdef _SC_PAGESIZE
33204 # define getpagesize() sysconf(_SC_PAGESIZE)
33205 # else /* no _SC_PAGESIZE */
33206 # if HAVE_SYS_PARAM_H
33207 # include <sys/param.h>
33208 # ifdef EXEC_PAGESIZE
33209 # define getpagesize() EXEC_PAGESIZE
33210 # else /* no EXEC_PAGESIZE */
33211 # ifdef NBPG
33212 # define getpagesize() NBPG * CLSIZE
33213 # ifndef CLSIZE
33214 # define CLSIZE 1
33215 # endif /* no CLSIZE */
33216 # else /* no NBPG */
33217 # ifdef NBPC
33218 # define getpagesize() NBPC
33219 # else /* no NBPC */
33220 # ifdef PAGESIZE
33221 # define getpagesize() PAGESIZE
33222 # endif /* PAGESIZE */
33223 # endif /* no NBPC */
33224 # endif /* no NBPG */
33225 # endif /* no EXEC_PAGESIZE */
33226 # else /* no HAVE_SYS_PARAM_H */
33227 # define getpagesize() 8192 /* punt totally */
33228 # endif /* no HAVE_SYS_PARAM_H */
33229 # endif /* no _SC_PAGESIZE */
33231 #endif /* no HAVE_GETPAGESIZE */
33234 main ()
33236 char *data, *data2, *data3;
33237 int i, pagesize;
33238 int fd;
33240 pagesize = getpagesize ();
33242 /* First, make a file with some known garbage in it. */
33243 data = (char *) malloc (pagesize);
33244 if (!data)
33245 return 1;
33246 for (i = 0; i < pagesize; ++i)
33247 *(data + i) = rand ();
33248 umask (0);
33249 fd = creat ("conftest.mmap", 0600);
33250 if (fd < 0)
33251 return 1;
33252 if (write (fd, data, pagesize) != pagesize)
33253 return 1;
33254 close (fd);
33256 /* Next, try to mmap the file at a fixed address which already has
33257 something else allocated at it. If we can, also make sure that
33258 we see the same garbage. */
33259 fd = open ("conftest.mmap", O_RDWR);
33260 if (fd < 0)
33261 return 1;
33262 data2 = (char *) malloc (2 * pagesize);
33263 if (!data2)
33264 return 1;
33265 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
33266 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
33267 MAP_PRIVATE | MAP_FIXED, fd, 0L))
33268 return 1;
33269 for (i = 0; i < pagesize; ++i)
33270 if (*(data + i) != *(data2 + i))
33271 return 1;
33273 /* Finally, make sure that changes to the mapped area do not
33274 percolate back to the file as seen by read(). (This is a bug on
33275 some variants of i386 svr4.0.) */
33276 for (i = 0; i < pagesize; ++i)
33277 *(data2 + i) = *(data2 + i) + 1;
33278 data3 = (char *) malloc (pagesize);
33279 if (!data3)
33280 return 1;
33281 if (read (fd, data3, pagesize) != pagesize)
33282 return 1;
33283 for (i = 0; i < pagesize; ++i)
33284 if (*(data + i) != *(data3 + i))
33285 return 1;
33286 close (fd);
33287 return 0;
33289 _ACEOF
33290 rm -f conftest$ac_exeext
33291 if { (ac_try="$ac_link"
33292 case "(($ac_try" in
33293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33294 *) ac_try_echo=$ac_try;;
33295 esac
33296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33297 (eval "$ac_link") 2>&5
33298 ac_status=$?
33299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33301 { (case "(($ac_try" in
33302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303 *) ac_try_echo=$ac_try;;
33304 esac
33305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33306 (eval "$ac_try") 2>&5
33307 ac_status=$?
33308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 (exit $ac_status); }; }; then
33310 ac_cv_func_mmap_fixed_mapped=yes
33311 else
33312 echo "$as_me: program exited with status $ac_status" >&5
33313 echo "$as_me: failed program was:" >&5
33314 sed 's/^/| /' conftest.$ac_ext >&5
33316 ( exit $ac_status )
33317 ac_cv_func_mmap_fixed_mapped=no
33319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33324 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33325 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
33326 if test $ac_cv_func_mmap_fixed_mapped = yes; then
33328 cat >>confdefs.h <<\_ACEOF
33329 #define HAVE_MMAP 1
33330 _ACEOF
33333 rm -f conftest.mmap
33335 { echo "$as_me:$LINENO: checking for mmap of files" >&5
33336 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
33337 if test "${ac_cv_func_mmap_file+set}" = set; then
33338 echo $ECHO_N "(cached) $ECHO_C" >&6
33339 else
33340 ac_ext=c
33341 ac_cpp='$CPP $CPPFLAGS'
33342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33346 if test "$cross_compiling" = yes; then
33347 ac_cv_func_mmap_file=no
33348 else
33349 cat >conftest.$ac_ext <<_ACEOF
33351 /* confdefs.h. */
33352 _ACEOF
33353 cat confdefs.h >>conftest.$ac_ext
33354 cat >>conftest.$ac_ext <<_ACEOF
33355 /* end confdefs.h. */
33357 #include <sys/types.h>
33358 #include <sys/mman.h>
33359 #include <fcntl.h>
33362 main ()
33365 int fd;
33366 fd = creat ("foo",0777);
33367 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33368 unlink ("foo");
33369 return (fd != (int) MAP_FAILED);
33371 return 0;
33373 _ACEOF
33374 rm -f conftest$ac_exeext
33375 if { (ac_try="$ac_link"
33376 case "(($ac_try" in
33377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33378 *) ac_try_echo=$ac_try;;
33379 esac
33380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33381 (eval "$ac_link") 2>&5
33382 ac_status=$?
33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33385 { (case "(($ac_try" in
33386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387 *) ac_try_echo=$ac_try;;
33388 esac
33389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390 (eval "$ac_try") 2>&5
33391 ac_status=$?
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); }; }; then
33394 ac_cv_func_mmap_file=yes
33395 else
33396 echo "$as_me: program exited with status $ac_status" >&5
33397 echo "$as_me: failed program was:" >&5
33398 sed 's/^/| /' conftest.$ac_ext >&5
33400 ( exit $ac_status )
33401 ac_cv_func_mmap_file=no
33403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33407 ac_ext=c
33408 ac_cpp='$CPP $CPPFLAGS'
33409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33415 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33416 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
33417 if test "$ac_cv_func_mmap_file" = yes; then
33419 cat >>confdefs.h <<\_ACEOF
33420 #define HAVE_MMAP_FILE
33421 _ACEOF
33423 MMAP_FILE=yes
33427 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33428 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
33429 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33430 echo $ECHO_N "(cached) $ECHO_C" >&6
33431 else
33432 if test "$llvm_cv_os_type" = "Interix" ; then
33433 ac_cv_need_dev_zero_for_mmap=yes
33434 else
33435 ac_cv_need_dev_zero_for_mmap=no
33439 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33440 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
33441 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33443 cat >>confdefs.h <<\_ACEOF
33444 #define NEED_DEV_ZERO_FOR_MMAP 1
33445 _ACEOF
33449 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33450 then
33451 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33452 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
33454 if test "$ac_cv_func_mmap_file" = "no"
33455 then
33456 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33457 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
33462 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33463 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
33464 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33465 echo $ECHO_N "(cached) $ECHO_C" >&6
33466 else
33467 llvm_cv_llvmgcc_sanity="no"
33468 if test -x "$LLVMGCC" ; then
33469 cp /dev/null conftest.c
33470 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33471 grep 'target datalayout =' > /dev/null 2>&1
33472 if test $? -eq 0 ; then
33473 llvm_cv_llvmgcc_sanity="yes"
33475 rm conftest.c
33478 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33479 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
33481 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
33482 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33483 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
33484 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
33485 LLVMCC1=$llvmcc1path
33487 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
33488 LLVMCC1PLUS=$llvmcc1pluspath
33490 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33491 LLVMGCCDIR=$llvmgccdir
33493 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33494 LLVMGCCLIBEXEC=$llvmgcclibexec
33496 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
33497 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33498 LLVMGCC_VERSION=$llvmgccversion
33500 LLVMGCC_MAJVERS=$llvmgccmajvers
33502 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
33503 LLVMGCC_LANGS=$llvmgcclangs
33505 { echo "$as_me:$LINENO: result: ok" >&5
33506 echo "${ECHO_T}ok" >&6; }
33509 SHLIBEXT=$libltdl_cv_shlibext
33512 # Translate the various configuration directories and other basic
33513 # information into substitutions that will end up in Makefile.config.in
33514 # that these configured values can be used by the makefiles
33515 if test "${prefix}" = "NONE" ; then
33516 prefix="/usr/local"
33518 eval LLVM_PREFIX="${prefix}";
33519 eval LLVM_BINDIR="${prefix}/bin";
33520 eval LLVM_LIBDIR="${prefix}/lib";
33521 eval LLVM_DATADIR="${prefix}/share/llvm";
33522 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33523 eval LLVM_ETCDIR="${prefix}/etc/llvm";
33524 eval LLVM_INCLUDEDIR="${prefix}/include";
33525 eval LLVM_INFODIR="${prefix}/info";
33526 eval LLVM_MANDIR="${prefix}/man";
33527 LLVM_CONFIGTIME=`date`
33539 # Place the various directores into the config.h file as #defines so that we
33540 # can know about the installation paths within LLVM.
33542 cat >>confdefs.h <<_ACEOF
33543 #define LLVM_PREFIX "$LLVM_PREFIX"
33544 _ACEOF
33547 cat >>confdefs.h <<_ACEOF
33548 #define LLVM_BINDIR "$LLVM_BINDIR"
33549 _ACEOF
33552 cat >>confdefs.h <<_ACEOF
33553 #define LLVM_LIBDIR "$LLVM_LIBDIR"
33554 _ACEOF
33557 cat >>confdefs.h <<_ACEOF
33558 #define LLVM_DATADIR "$LLVM_DATADIR"
33559 _ACEOF
33562 cat >>confdefs.h <<_ACEOF
33563 #define LLVM_DATADIR "$LLVM_DOCSDIR"
33564 _ACEOF
33567 cat >>confdefs.h <<_ACEOF
33568 #define LLVM_ETCDIR "$LLVM_ETCDIR"
33569 _ACEOF
33572 cat >>confdefs.h <<_ACEOF
33573 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33574 _ACEOF
33577 cat >>confdefs.h <<_ACEOF
33578 #define LLVM_INFODIR "$LLVM_INFODIR"
33579 _ACEOF
33582 cat >>confdefs.h <<_ACEOF
33583 #define LLVM_MANDIR "$LLVM_MANDIR"
33584 _ACEOF
33587 cat >>confdefs.h <<_ACEOF
33588 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33589 _ACEOF
33593 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
33595 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
33597 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
33599 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
33601 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
33604 ac_config_files="$ac_config_files Makefile.config"
33607 ac_config_files="$ac_config_files llvm.spec"
33610 ac_config_files="$ac_config_files docs/doxygen.cfg"
33613 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
33616 ac_config_commands="$ac_config_commands setup"
33618 ac_config_commands="$ac_config_commands Makefile"
33621 ac_config_commands="$ac_config_commands Makefile.common"
33624 ac_config_commands="$ac_config_commands examples/Makefile"
33627 ac_config_commands="$ac_config_commands lib/Makefile"
33630 ac_config_commands="$ac_config_commands runtime/Makefile"
33633 ac_config_commands="$ac_config_commands test/Makefile"
33636 ac_config_commands="$ac_config_commands test/Makefile.tests"
33639 ac_config_commands="$ac_config_commands tools/Makefile"
33642 ac_config_commands="$ac_config_commands utils/Makefile"
33645 ac_config_commands="$ac_config_commands projects/Makefile"
33649 cat >confcache <<\_ACEOF
33650 # This file is a shell script that caches the results of configure
33651 # tests run on this system so they can be shared between configure
33652 # scripts and configure runs, see configure's option --config-cache.
33653 # It is not useful on other systems. If it contains results you don't
33654 # want to keep, you may remove or edit it.
33656 # config.status only pays attention to the cache file if you give it
33657 # the --recheck option to rerun configure.
33659 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33660 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33661 # following values.
33663 _ACEOF
33665 # The following way of writing the cache mishandles newlines in values,
33666 # but we know of no workaround that is simple, portable, and efficient.
33667 # So, we kill variables containing newlines.
33668 # Ultrix sh set writes to stderr and can't be redirected directly,
33669 # and sets the high bit in the cache file unless we assign to the vars.
33671 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33672 eval ac_val=\$$ac_var
33673 case $ac_val in #(
33674 *${as_nl}*)
33675 case $ac_var in #(
33676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33678 esac
33679 case $ac_var in #(
33680 _ | IFS | as_nl) ;; #(
33681 *) $as_unset $ac_var ;;
33682 esac ;;
33683 esac
33684 done
33686 (set) 2>&1 |
33687 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33688 *${as_nl}ac_space=\ *)
33689 # `set' does not quote correctly, so add quotes (double-quote
33690 # substitution turns \\\\ into \\, and sed turns \\ into \).
33691 sed -n \
33692 "s/'/'\\\\''/g;
33693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33694 ;; #(
33696 # `set' quotes correctly as required by POSIX, so do not add quotes.
33697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33699 esac |
33700 sort
33702 sed '
33703 /^ac_cv_env_/b end
33704 t clear
33705 :clear
33706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33707 t end
33708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33709 :end' >>confcache
33710 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33711 if test -w "$cache_file"; then
33712 test "x$cache_file" != "x/dev/null" &&
33713 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33714 echo "$as_me: updating cache $cache_file" >&6;}
33715 cat confcache >$cache_file
33716 else
33717 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33718 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33721 rm -f confcache
33723 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33724 # Let make expand exec_prefix.
33725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33727 DEFS=-DHAVE_CONFIG_H
33729 ac_libobjs=
33730 ac_ltlibobjs=
33731 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33732 # 1. Remove the extension, and $U if already installed.
33733 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33734 ac_i=`echo "$ac_i" | sed "$ac_script"`
33735 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33736 # will be set to the directory where LIBOBJS objects are built.
33737 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33738 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33739 done
33740 LIBOBJS=$ac_libobjs
33742 LTLIBOBJS=$ac_ltlibobjs
33745 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33746 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33747 Usually this means the macro was only invoked conditionally." >&5
33748 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33749 Usually this means the macro was only invoked conditionally." >&2;}
33750 { (exit 1); exit 1; }; }
33752 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33753 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33754 Usually this means the macro was only invoked conditionally." >&5
33755 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33756 Usually this means the macro was only invoked conditionally." >&2;}
33757 { (exit 1); exit 1; }; }
33760 : ${CONFIG_STATUS=./config.status}
33761 ac_clean_files_save=$ac_clean_files
33762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33763 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33764 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33765 cat >$CONFIG_STATUS <<_ACEOF
33766 #! $SHELL
33767 # Generated by $as_me.
33768 # Run this file to recreate the current configuration.
33769 # Compiler output produced by configure, useful for debugging
33770 # configure, is in config.log if it exists.
33772 debug=false
33773 ac_cs_recheck=false
33774 ac_cs_silent=false
33775 SHELL=\${CONFIG_SHELL-$SHELL}
33776 _ACEOF
33778 cat >>$CONFIG_STATUS <<\_ACEOF
33779 ## --------------------- ##
33780 ## M4sh Initialization. ##
33781 ## --------------------- ##
33783 # Be Bourne compatible
33784 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33785 emulate sh
33786 NULLCMD=:
33787 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33788 # is contrary to our usage. Disable this feature.
33789 alias -g '${1+"$@"}'='"$@"'
33790 setopt NO_GLOB_SUBST
33791 else
33792 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33794 BIN_SH=xpg4; export BIN_SH # for Tru64
33795 DUALCASE=1; export DUALCASE # for MKS sh
33798 # PATH needs CR
33799 # Avoid depending upon Character Ranges.
33800 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33801 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33802 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33803 as_cr_digits='0123456789'
33804 as_cr_alnum=$as_cr_Letters$as_cr_digits
33806 # The user is always right.
33807 if test "${PATH_SEPARATOR+set}" != set; then
33808 echo "#! /bin/sh" >conf$$.sh
33809 echo "exit 0" >>conf$$.sh
33810 chmod +x conf$$.sh
33811 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33812 PATH_SEPARATOR=';'
33813 else
33814 PATH_SEPARATOR=:
33816 rm -f conf$$.sh
33819 # Support unset when possible.
33820 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33821 as_unset=unset
33822 else
33823 as_unset=false
33827 # IFS
33828 # We need space, tab and new line, in precisely that order. Quoting is
33829 # there to prevent editors from complaining about space-tab.
33830 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33831 # splitting by setting IFS to empty value.)
33832 as_nl='
33834 IFS=" "" $as_nl"
33836 # Find who we are. Look in the path if we contain no directory separator.
33837 case $0 in
33838 *[\\/]* ) as_myself=$0 ;;
33839 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33840 for as_dir in $PATH
33842 IFS=$as_save_IFS
33843 test -z "$as_dir" && as_dir=.
33844 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33845 done
33846 IFS=$as_save_IFS
33849 esac
33850 # We did not find ourselves, most probably we were run as `sh COMMAND'
33851 # in which case we are not to be found in the path.
33852 if test "x$as_myself" = x; then
33853 as_myself=$0
33855 if test ! -f "$as_myself"; then
33856 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33857 { (exit 1); exit 1; }
33860 # Work around bugs in pre-3.0 UWIN ksh.
33861 for as_var in ENV MAIL MAILPATH
33862 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33863 done
33864 PS1='$ '
33865 PS2='> '
33866 PS4='+ '
33868 # NLS nuisances.
33869 for as_var in \
33870 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33871 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33872 LC_TELEPHONE LC_TIME
33874 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33875 eval $as_var=C; export $as_var
33876 else
33877 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33879 done
33881 # Required to use basename.
33882 if expr a : '\(a\)' >/dev/null 2>&1 &&
33883 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33884 as_expr=expr
33885 else
33886 as_expr=false
33889 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33890 as_basename=basename
33891 else
33892 as_basename=false
33896 # Name of the executable.
33897 as_me=`$as_basename -- "$0" ||
33898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33899 X"$0" : 'X\(//\)$' \| \
33900 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33901 echo X/"$0" |
33902 sed '/^.*\/\([^/][^/]*\)\/*$/{
33903 s//\1/
33906 /^X\/\(\/\/\)$/{
33907 s//\1/
33910 /^X\/\(\/\).*/{
33911 s//\1/
33914 s/.*/./; q'`
33916 # CDPATH.
33917 $as_unset CDPATH
33921 as_lineno_1=$LINENO
33922 as_lineno_2=$LINENO
33923 test "x$as_lineno_1" != "x$as_lineno_2" &&
33924 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33926 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33927 # uniformly replaced by the line number. The first 'sed' inserts a
33928 # line-number line after each line using $LINENO; the second 'sed'
33929 # does the real work. The second script uses 'N' to pair each
33930 # line-number line with the line containing $LINENO, and appends
33931 # trailing '-' during substitution so that $LINENO is not a special
33932 # case at line end.
33933 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33934 # scripts with optimization help from Paolo Bonzini. Blame Lee
33935 # E. McMahon (1931-1989) for sed's syntax. :-)
33936 sed -n '
33938 /[$]LINENO/=
33939 ' <$as_myself |
33940 sed '
33941 s/[$]LINENO.*/&-/
33942 t lineno
33944 :lineno
33946 :loop
33947 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33948 t loop
33949 s/-\n.*//
33950 ' >$as_me.lineno &&
33951 chmod +x "$as_me.lineno" ||
33952 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33953 { (exit 1); exit 1; }; }
33955 # Don't try to exec as it changes $[0], causing all sort of problems
33956 # (the dirname of $[0] is not the place where we might find the
33957 # original and so on. Autoconf is especially sensitive to this).
33958 . "./$as_me.lineno"
33959 # Exit status is that of the last command.
33960 exit
33964 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33965 as_dirname=dirname
33966 else
33967 as_dirname=false
33970 ECHO_C= ECHO_N= ECHO_T=
33971 case `echo -n x` in
33972 -n*)
33973 case `echo 'x\c'` in
33974 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33975 *) ECHO_C='\c';;
33976 esac;;
33978 ECHO_N='-n';;
33979 esac
33981 if expr a : '\(a\)' >/dev/null 2>&1 &&
33982 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33983 as_expr=expr
33984 else
33985 as_expr=false
33988 rm -f conf$$ conf$$.exe conf$$.file
33989 if test -d conf$$.dir; then
33990 rm -f conf$$.dir/conf$$.file
33991 else
33992 rm -f conf$$.dir
33993 mkdir conf$$.dir
33995 echo >conf$$.file
33996 if ln -s conf$$.file conf$$ 2>/dev/null; then
33997 as_ln_s='ln -s'
33998 # ... but there are two gotchas:
33999 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34000 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34001 # In both cases, we have to default to `cp -p'.
34002 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34003 as_ln_s='cp -p'
34004 elif ln conf$$.file conf$$ 2>/dev/null; then
34005 as_ln_s=ln
34006 else
34007 as_ln_s='cp -p'
34009 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34010 rmdir conf$$.dir 2>/dev/null
34012 if mkdir -p . 2>/dev/null; then
34013 as_mkdir_p=:
34014 else
34015 test -d ./-p && rmdir ./-p
34016 as_mkdir_p=false
34019 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34020 # systems may use methods other than mode bits to determine executability.
34021 cat >conf$$.file <<_ASEOF
34022 #! /bin/sh
34023 exit 0
34024 _ASEOF
34025 chmod +x conf$$.file
34026 if test -x conf$$.file >/dev/null 2>&1; then
34027 as_executable_p="test -x"
34028 else
34029 as_executable_p=:
34031 rm -f conf$$.file
34033 # Sed expression to map a string onto a valid CPP name.
34034 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34036 # Sed expression to map a string onto a valid variable name.
34037 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34040 exec 6>&1
34042 # Save the log message, to keep $[0] and so on meaningful, and to
34043 # report actual input values of CONFIG_FILES etc. instead of their
34044 # values after options handling.
34045 ac_log="
34046 This file was extended by llvm $as_me 2.1cvs, which was
34047 generated by GNU Autoconf 2.60. Invocation command line was
34049 CONFIG_FILES = $CONFIG_FILES
34050 CONFIG_HEADERS = $CONFIG_HEADERS
34051 CONFIG_LINKS = $CONFIG_LINKS
34052 CONFIG_COMMANDS = $CONFIG_COMMANDS
34053 $ $0 $@
34055 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34058 _ACEOF
34060 cat >>$CONFIG_STATUS <<_ACEOF
34061 # Files that config.status was made for.
34062 config_files="$ac_config_files"
34063 config_headers="$ac_config_headers"
34064 config_commands="$ac_config_commands"
34066 _ACEOF
34068 cat >>$CONFIG_STATUS <<\_ACEOF
34069 ac_cs_usage="\
34070 \`$as_me' instantiates files from templates according to the
34071 current configuration.
34073 Usage: $0 [OPTIONS] [FILE]...
34075 -h, --help print this help, then exit
34076 -V, --version print version number, then exit
34077 -q, --quiet do not print progress messages
34078 -d, --debug don't remove temporary files
34079 --recheck update $as_me by reconfiguring in the same conditions
34080 --file=FILE[:TEMPLATE]
34081 instantiate the configuration file FILE
34082 --header=FILE[:TEMPLATE]
34083 instantiate the configuration header FILE
34085 Configuration files:
34086 $config_files
34088 Configuration headers:
34089 $config_headers
34091 Configuration commands:
34092 $config_commands
34094 Report bugs to <bug-autoconf@gnu.org>."
34096 _ACEOF
34097 cat >>$CONFIG_STATUS <<_ACEOF
34098 ac_cs_version="\\
34099 llvm config.status 2.1cvs
34100 configured by $0, generated by GNU Autoconf 2.60,
34101 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34103 Copyright (C) 2006 Free Software Foundation, Inc.
34104 This config.status script is free software; the Free Software Foundation
34105 gives unlimited permission to copy, distribute and modify it."
34107 ac_pwd='$ac_pwd'
34108 srcdir='$srcdir'
34109 INSTALL='$INSTALL'
34110 _ACEOF
34112 cat >>$CONFIG_STATUS <<\_ACEOF
34113 # If no file are specified by the user, then we need to provide default
34114 # value. By we need to know if files were specified by the user.
34115 ac_need_defaults=:
34116 while test $# != 0
34118 case $1 in
34119 --*=*)
34120 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34121 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34122 ac_shift=:
34125 ac_option=$1
34126 ac_optarg=$2
34127 ac_shift=shift
34129 esac
34131 case $ac_option in
34132 # Handling of the options.
34133 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34134 ac_cs_recheck=: ;;
34135 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34136 echo "$ac_cs_version"; exit ;;
34137 --debug | --debu | --deb | --de | --d | -d )
34138 debug=: ;;
34139 --file | --fil | --fi | --f )
34140 $ac_shift
34141 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34142 ac_need_defaults=false;;
34143 --header | --heade | --head | --hea )
34144 $ac_shift
34145 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34146 ac_need_defaults=false;;
34147 --he | --h)
34148 # Conflict between --help and --header
34149 { echo "$as_me: error: ambiguous option: $1
34150 Try \`$0 --help' for more information." >&2
34151 { (exit 1); exit 1; }; };;
34152 --help | --hel | -h )
34153 echo "$ac_cs_usage"; exit ;;
34154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34155 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34156 ac_cs_silent=: ;;
34158 # This is an error.
34159 -*) { echo "$as_me: error: unrecognized option: $1
34160 Try \`$0 --help' for more information." >&2
34161 { (exit 1); exit 1; }; } ;;
34163 *) ac_config_targets="$ac_config_targets $1"
34164 ac_need_defaults=false ;;
34166 esac
34167 shift
34168 done
34170 ac_configure_extra_args=
34172 if $ac_cs_silent; then
34173 exec 6>/dev/null
34174 ac_configure_extra_args="$ac_configure_extra_args --silent"
34177 _ACEOF
34178 cat >>$CONFIG_STATUS <<_ACEOF
34179 if \$ac_cs_recheck; then
34180 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34181 CONFIG_SHELL=$SHELL
34182 export CONFIG_SHELL
34183 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34186 _ACEOF
34187 cat >>$CONFIG_STATUS <<\_ACEOF
34188 exec 5>>config.log
34190 echo
34191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34192 ## Running $as_me. ##
34193 _ASBOX
34194 echo "$ac_log"
34195 } >&5
34197 _ACEOF
34198 cat >>$CONFIG_STATUS <<_ACEOF
34200 # INIT-COMMANDS
34202 llvm_src="${srcdir}"
34204 _ACEOF
34206 cat >>$CONFIG_STATUS <<\_ACEOF
34208 # Handling of arguments.
34209 for ac_config_target in $ac_config_targets
34211 case $ac_config_target in
34212 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34213 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34214 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34215 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34216 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34217 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
34218 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
34219 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34220 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34221 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34222 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34223 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34224 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34225 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
34226 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
34227 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34228 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34229 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34230 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34231 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34233 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34234 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34235 { (exit 1); exit 1; }; };;
34236 esac
34237 done
34240 # If the user did not use the arguments to specify the items to instantiate,
34241 # then the envvar interface is used. Set only those that are not.
34242 # We use the long form for the default assignment because of an extremely
34243 # bizarre bug on SunOS 4.1.3.
34244 if $ac_need_defaults; then
34245 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34246 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34247 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34250 # Have a temporary directory for convenience. Make it in the build tree
34251 # simply because there is no reason against having it here, and in addition,
34252 # creating and moving files from /tmp can sometimes cause problems.
34253 # Hook for its removal unless debugging.
34254 # Note that there is a small window in which the directory will not be cleaned:
34255 # after its creation but before its name has been assigned to `$tmp'.
34256 $debug ||
34258 tmp=
34259 trap 'exit_status=$?
34260 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34262 trap '{ (exit 1); exit 1; }' 1 2 13 15
34264 # Create a (secure) tmp directory for tmp files.
34267 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34268 test -n "$tmp" && test -d "$tmp"
34269 } ||
34271 tmp=./conf$$-$RANDOM
34272 (umask 077 && mkdir "$tmp")
34273 } ||
34275 echo "$me: cannot create a temporary directory in ." >&2
34276 { (exit 1); exit 1; }
34280 # Set up the sed scripts for CONFIG_FILES section.
34283 # No need to generate the scripts if there are no CONFIG_FILES.
34284 # This happens for instance when ./config.status config.h
34285 if test -n "$CONFIG_FILES"; then
34287 _ACEOF
34291 ac_delim='%!_!# '
34292 for ac_last_try in false false false false false :; do
34293 cat >conf$$subs.sed <<_ACEOF
34294 SHELL!$SHELL$ac_delim
34295 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34296 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34297 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34298 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34299 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34300 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34301 exec_prefix!$exec_prefix$ac_delim
34302 prefix!$prefix$ac_delim
34303 program_transform_name!$program_transform_name$ac_delim
34304 bindir!$bindir$ac_delim
34305 sbindir!$sbindir$ac_delim
34306 libexecdir!$libexecdir$ac_delim
34307 datarootdir!$datarootdir$ac_delim
34308 datadir!$datadir$ac_delim
34309 sysconfdir!$sysconfdir$ac_delim
34310 sharedstatedir!$sharedstatedir$ac_delim
34311 localstatedir!$localstatedir$ac_delim
34312 includedir!$includedir$ac_delim
34313 oldincludedir!$oldincludedir$ac_delim
34314 docdir!$docdir$ac_delim
34315 infodir!$infodir$ac_delim
34316 htmldir!$htmldir$ac_delim
34317 dvidir!$dvidir$ac_delim
34318 pdfdir!$pdfdir$ac_delim
34319 psdir!$psdir$ac_delim
34320 libdir!$libdir$ac_delim
34321 localedir!$localedir$ac_delim
34322 mandir!$mandir$ac_delim
34323 DEFS!$DEFS$ac_delim
34324 ECHO_C!$ECHO_C$ac_delim
34325 ECHO_N!$ECHO_N$ac_delim
34326 ECHO_T!$ECHO_T$ac_delim
34327 LIBS!$LIBS$ac_delim
34328 build_alias!$build_alias$ac_delim
34329 host_alias!$host_alias$ac_delim
34330 target_alias!$target_alias$ac_delim
34331 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34332 subdirs!$subdirs$ac_delim
34333 build!$build$ac_delim
34334 build_cpu!$build_cpu$ac_delim
34335 build_vendor!$build_vendor$ac_delim
34336 build_os!$build_os$ac_delim
34337 host!$host$ac_delim
34338 host_cpu!$host_cpu$ac_delim
34339 host_vendor!$host_vendor$ac_delim
34340 host_os!$host_os$ac_delim
34341 target!$target$ac_delim
34342 target_cpu!$target_cpu$ac_delim
34343 target_vendor!$target_vendor$ac_delim
34344 target_os!$target_os$ac_delim
34345 OS!$OS$ac_delim
34346 LINKALL!$LINKALL$ac_delim
34347 NOLINKALL!$NOLINKALL$ac_delim
34348 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34349 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34350 ARCH!$ARCH$ac_delim
34351 ENDIAN!$ENDIAN$ac_delim
34352 CC!$CC$ac_delim
34353 CFLAGS!$CFLAGS$ac_delim
34354 LDFLAGS!$LDFLAGS$ac_delim
34355 CPPFLAGS!$CPPFLAGS$ac_delim
34356 ac_ct_CC!$ac_ct_CC$ac_delim
34357 EXEEXT!$EXEEXT$ac_delim
34358 OBJEXT!$OBJEXT$ac_delim
34359 CPP!$CPP$ac_delim
34360 GREP!$GREP$ac_delim
34361 EGREP!$EGREP$ac_delim
34362 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34363 BUILD_CC!$BUILD_CC$ac_delim
34364 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34365 CVSBUILD!$CVSBUILD$ac_delim
34366 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34367 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
34368 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34369 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
34370 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
34371 JIT!$JIT$ac_delim
34372 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34373 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34374 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34375 ENABLE_PIC!$ENABLE_PIC$ac_delim
34376 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
34377 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
34378 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34379 CXX!$CXX$ac_delim
34380 CXXFLAGS!$CXXFLAGS$ac_delim
34381 ac_ct_CXX!$ac_ct_CXX$ac_delim
34382 LEX!$LEX$ac_delim
34383 LEXLIB!$LEXLIB$ac_delim
34384 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34385 FLEX!$FLEX$ac_delim
34386 YACC!$YACC$ac_delim
34387 YFLAGS!$YFLAGS$ac_delim
34388 BISON!$BISON$ac_delim
34389 NM!$NM$ac_delim
34390 ifGNUmake!$ifGNUmake$ac_delim
34391 _ACEOF
34393 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34394 break
34395 elif $ac_last_try; then
34396 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34397 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34398 { (exit 1); exit 1; }; }
34399 else
34400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34402 done
34404 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34405 if test -n "$ac_eof"; then
34406 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34407 ac_eof=`expr $ac_eof + 1`
34410 cat >>$CONFIG_STATUS <<_ACEOF
34411 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34412 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34413 _ACEOF
34414 sed '
34415 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34416 s/^/s,@/; s/!/@,|#_!!_#|/
34419 s/'"$ac_delim"'$/,g/; t
34420 s/$/\\/; p
34421 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34422 ' >>$CONFIG_STATUS <conf$$subs.sed
34423 rm -f conf$$subs.sed
34424 cat >>$CONFIG_STATUS <<_ACEOF
34425 CEOF$ac_eof
34426 _ACEOF
34429 ac_delim='%!_!# '
34430 for ac_last_try in false false false false false :; do
34431 cat >conf$$subs.sed <<_ACEOF
34432 LN_S!$LN_S$ac_delim
34433 CMP!$CMP$ac_delim
34434 CP!$CP$ac_delim
34435 DATE!$DATE$ac_delim
34436 FIND!$FIND$ac_delim
34437 MKDIR!$MKDIR$ac_delim
34438 MV!$MV$ac_delim
34439 RANLIB!$RANLIB$ac_delim
34440 RM!$RM$ac_delim
34441 SED!$SED$ac_delim
34442 TAR!$TAR$ac_delim
34443 BINPWD!$BINPWD$ac_delim
34444 GRAPHVIZ!$GRAPHVIZ$ac_delim
34445 DOT!$DOT$ac_delim
34446 GV!$GV$ac_delim
34447 DOTTY!$DOTTY$ac_delim
34448 PERL!$PERL$ac_delim
34449 HAVE_PERL!$HAVE_PERL$ac_delim
34450 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34451 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34452 INSTALL_DATA!$INSTALL_DATA$ac_delim
34453 BZIP2!$BZIP2$ac_delim
34454 DOXYGEN!$DOXYGEN$ac_delim
34455 GROFF!$GROFF$ac_delim
34456 GZIP!$GZIP$ac_delim
34457 POD2HTML!$POD2HTML$ac_delim
34458 POD2MAN!$POD2MAN$ac_delim
34459 RUNTEST!$RUNTEST$ac_delim
34460 TCLSH!$TCLSH$ac_delim
34461 ZIP!$ZIP$ac_delim
34462 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34463 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34464 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34465 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34466 LIBADD_DL!$LIBADD_DL$ac_delim
34467 ECHO!$ECHO$ac_delim
34468 AR!$AR$ac_delim
34469 STRIP!$STRIP$ac_delim
34470 CXXCPP!$CXXCPP$ac_delim
34471 F77!$F77$ac_delim
34472 FFLAGS!$FFLAGS$ac_delim
34473 ac_ct_F77!$ac_ct_F77$ac_delim
34474 LIBTOOL!$LIBTOOL$ac_delim
34475 ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34476 LLVMGCC!$LLVMGCC$ac_delim
34477 LLVMGXX!$LLVMGXX$ac_delim
34478 USE_UDIS86!$USE_UDIS86$ac_delim
34479 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
34480 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
34481 ALLOCA!$ALLOCA$ac_delim
34482 MMAP_FILE!$MMAP_FILE$ac_delim
34483 LLVMCC1!$LLVMCC1$ac_delim
34484 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34485 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34486 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
34487 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34488 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34489 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
34490 SHLIBEXT!$SHLIBEXT$ac_delim
34491 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34492 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34493 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34494 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34495 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34496 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34497 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34498 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34499 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34500 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34501 LIBOBJS!$LIBOBJS$ac_delim
34502 LTLIBOBJS!$LTLIBOBJS$ac_delim
34503 _ACEOF
34505 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
34506 break
34507 elif $ac_last_try; then
34508 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34509 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34510 { (exit 1); exit 1; }; }
34511 else
34512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34514 done
34516 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34517 if test -n "$ac_eof"; then
34518 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34519 ac_eof=`expr $ac_eof + 1`
34522 cat >>$CONFIG_STATUS <<_ACEOF
34523 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34524 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34525 _ACEOF
34526 sed '
34527 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34528 s/^/s,@/; s/!/@,|#_!!_#|/
34531 s/'"$ac_delim"'$/,g/; t
34532 s/$/\\/; p
34533 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34534 ' >>$CONFIG_STATUS <conf$$subs.sed
34535 rm -f conf$$subs.sed
34536 cat >>$CONFIG_STATUS <<_ACEOF
34537 :end
34538 s/|#_!!_#|//g
34539 CEOF$ac_eof
34540 _ACEOF
34543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34545 # trailing colons and then remove the whole line if VPATH becomes empty
34546 # (actually we leave an empty line to preserve line numbers).
34547 if test "x$srcdir" = x.; then
34548 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34549 s/:*\$(srcdir):*/:/
34550 s/:*\${srcdir}:*/:/
34551 s/:*@srcdir@:*/:/
34552 s/^\([^=]*=[ ]*\):*/\1/
34553 s/:*$//
34554 s/^[^=]*=[ ]*$//
34558 cat >>$CONFIG_STATUS <<\_ACEOF
34559 fi # test -n "$CONFIG_FILES"
34562 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34564 case $ac_tag in
34565 :[FHLC]) ac_mode=$ac_tag; continue;;
34566 esac
34567 case $ac_mode$ac_tag in
34568 :[FHL]*:*);;
34569 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34570 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34571 { (exit 1); exit 1; }; };;
34572 :[FH]-) ac_tag=-:-;;
34573 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34574 esac
34575 ac_save_IFS=$IFS
34576 IFS=:
34577 set x $ac_tag
34578 IFS=$ac_save_IFS
34579 shift
34580 ac_file=$1
34581 shift
34583 case $ac_mode in
34584 :L) ac_source=$1;;
34585 :[FH])
34586 ac_file_inputs=
34587 for ac_f
34589 case $ac_f in
34590 -) ac_f="$tmp/stdin";;
34591 *) # Look for the file first in the build tree, then in the source tree
34592 # (if the path is not absolute). The absolute path cannot be DOS-style,
34593 # because $ac_f cannot contain `:'.
34594 test -f "$ac_f" ||
34595 case $ac_f in
34596 [\\/$]*) false;;
34597 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34598 esac ||
34599 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34600 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34601 { (exit 1); exit 1; }; };;
34602 esac
34603 ac_file_inputs="$ac_file_inputs $ac_f"
34604 done
34606 # Let's still pretend it is `configure' which instantiates (i.e., don't
34607 # use $as_me), people would be surprised to read:
34608 # /* config.h. Generated by config.status. */
34609 configure_input="Generated from "`IFS=:
34610 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34611 if test x"$ac_file" != x-; then
34612 configure_input="$ac_file. $configure_input"
34613 { echo "$as_me:$LINENO: creating $ac_file" >&5
34614 echo "$as_me: creating $ac_file" >&6;}
34617 case $ac_tag in
34618 *:-:* | *:-) cat >"$tmp/stdin";;
34619 esac
34621 esac
34623 ac_dir=`$as_dirname -- "$ac_file" ||
34624 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34625 X"$ac_file" : 'X\(//\)[^/]' \| \
34626 X"$ac_file" : 'X\(//\)$' \| \
34627 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34628 echo X"$ac_file" |
34629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34630 s//\1/
34633 /^X\(\/\/\)[^/].*/{
34634 s//\1/
34637 /^X\(\/\/\)$/{
34638 s//\1/
34641 /^X\(\/\).*/{
34642 s//\1/
34645 s/.*/./; q'`
34646 { as_dir="$ac_dir"
34647 case $as_dir in #(
34648 -*) as_dir=./$as_dir;;
34649 esac
34650 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34651 as_dirs=
34652 while :; do
34653 case $as_dir in #(
34654 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34655 *) as_qdir=$as_dir;;
34656 esac
34657 as_dirs="'$as_qdir' $as_dirs"
34658 as_dir=`$as_dirname -- "$as_dir" ||
34659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34660 X"$as_dir" : 'X\(//\)[^/]' \| \
34661 X"$as_dir" : 'X\(//\)$' \| \
34662 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34663 echo X"$as_dir" |
34664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34665 s//\1/
34668 /^X\(\/\/\)[^/].*/{
34669 s//\1/
34672 /^X\(\/\/\)$/{
34673 s//\1/
34676 /^X\(\/\).*/{
34677 s//\1/
34680 s/.*/./; q'`
34681 test -d "$as_dir" && break
34682 done
34683 test -z "$as_dirs" || eval "mkdir $as_dirs"
34684 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34685 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34686 { (exit 1); exit 1; }; }; }
34687 ac_builddir=.
34689 case "$ac_dir" in
34690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34692 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34693 # A ".." for each directory in $ac_dir_suffix.
34694 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34695 case $ac_top_builddir_sub in
34696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34698 esac ;;
34699 esac
34700 ac_abs_top_builddir=$ac_pwd
34701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34702 # for backward compatibility:
34703 ac_top_builddir=$ac_top_build_prefix
34705 case $srcdir in
34706 .) # We are building in place.
34707 ac_srcdir=.
34708 ac_top_srcdir=$ac_top_builddir_sub
34709 ac_abs_top_srcdir=$ac_pwd ;;
34710 [\\/]* | ?:[\\/]* ) # Absolute name.
34711 ac_srcdir=$srcdir$ac_dir_suffix;
34712 ac_top_srcdir=$srcdir
34713 ac_abs_top_srcdir=$srcdir ;;
34714 *) # Relative name.
34715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34716 ac_top_srcdir=$ac_top_build_prefix$srcdir
34717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34718 esac
34719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34722 case $ac_mode in
34725 # CONFIG_FILE
34728 case $INSTALL in
34729 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34730 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34731 esac
34732 _ACEOF
34734 cat >>$CONFIG_STATUS <<\_ACEOF
34735 # If the template does not know about datarootdir, expand it.
34736 # FIXME: This hack should be removed a few years after 2.60.
34737 ac_datarootdir_hack=; ac_datarootdir_seen=
34739 case `sed -n '/datarootdir/ {
34743 /@datadir@/p
34744 /@docdir@/p
34745 /@infodir@/p
34746 /@localedir@/p
34747 /@mandir@/p
34748 ' $ac_file_inputs` in
34749 *datarootdir*) ac_datarootdir_seen=yes;;
34750 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34751 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34752 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34753 _ACEOF
34754 cat >>$CONFIG_STATUS <<_ACEOF
34755 ac_datarootdir_hack='
34756 s&@datadir@&$datadir&g
34757 s&@docdir@&$docdir&g
34758 s&@infodir@&$infodir&g
34759 s&@localedir@&$localedir&g
34760 s&@mandir@&$mandir&g
34761 s&\\\${datarootdir}&$datarootdir&g' ;;
34762 esac
34763 _ACEOF
34765 # Neutralize VPATH when `$srcdir' = `.'.
34766 # Shell code in configure.ac might set extrasub.
34767 # FIXME: do we really want to maintain this feature?
34768 cat >>$CONFIG_STATUS <<_ACEOF
34769 sed "$ac_vpsub
34770 $extrasub
34771 _ACEOF
34772 cat >>$CONFIG_STATUS <<\_ACEOF
34774 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34775 s&@configure_input@&$configure_input&;t t
34776 s&@top_builddir@&$ac_top_builddir_sub&;t t
34777 s&@srcdir@&$ac_srcdir&;t t
34778 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34779 s&@top_srcdir@&$ac_top_srcdir&;t t
34780 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34781 s&@builddir@&$ac_builddir&;t t
34782 s&@abs_builddir@&$ac_abs_builddir&;t t
34783 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34784 s&@INSTALL@&$ac_INSTALL&;t t
34785 $ac_datarootdir_hack
34786 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
34788 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34789 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34790 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34791 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34792 which seems to be undefined. Please make sure it is defined." >&5
34793 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34794 which seems to be undefined. Please make sure it is defined." >&2;}
34796 rm -f "$tmp/stdin"
34797 case $ac_file in
34798 -) cat "$tmp/out"; rm -f "$tmp/out";;
34799 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34800 esac
34804 # CONFIG_HEADER
34806 _ACEOF
34808 # Transform confdefs.h into a sed script `conftest.defines', that
34809 # substitutes the proper values into config.h.in to produce config.h.
34810 rm -f conftest.defines conftest.tail
34811 # First, append a space to every undef/define line, to ease matching.
34812 echo 's/$/ /' >conftest.defines
34813 # Then, protect against being on the right side of a sed subst, or in
34814 # an unquoted here document, in config.status. If some macros were
34815 # called several times there might be several #defines for the same
34816 # symbol, which is useless. But do not sort them, since the last
34817 # AC_DEFINE must be honored.
34818 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34819 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34820 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34821 # PARAMS is the parameter list in the macro definition--in most cases, it's
34822 # just an empty string.
34823 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34824 ac_dB='\\)[ (].*,\\1define\\2'
34825 ac_dC=' '
34826 ac_dD=' ,'
34828 uniq confdefs.h |
34829 sed -n '
34830 t rset
34831 :rset
34832 s/^[ ]*#[ ]*define[ ][ ]*//
34833 t ok
34836 s/[\\&,]/\\&/g
34837 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34838 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34839 ' >>conftest.defines
34841 # Remove the space that was appended to ease matching.
34842 # Then replace #undef with comments. This is necessary, for
34843 # example, in the case of _POSIX_SOURCE, which is predefined and required
34844 # on some systems where configure will not decide to define it.
34845 # (The regexp can be short, since the line contains either #define or #undef.)
34846 echo 's/ $//
34847 s,^[ #]*u.*,/* & */,' >>conftest.defines
34849 # Break up conftest.defines:
34850 ac_max_sed_lines=50
34852 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34853 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34854 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34855 # et cetera.
34856 ac_in='$ac_file_inputs'
34857 ac_out='"$tmp/out1"'
34858 ac_nxt='"$tmp/out2"'
34860 while :
34862 # Write a here document:
34863 cat >>$CONFIG_STATUS <<_ACEOF
34864 # First, check the format of the line:
34865 cat >"\$tmp/defines.sed" <<\\CEOF
34866 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34867 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34869 :def
34870 _ACEOF
34871 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34872 echo 'CEOF
34873 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34874 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34875 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34876 grep . conftest.tail >/dev/null || break
34877 rm -f conftest.defines
34878 mv conftest.tail conftest.defines
34879 done
34880 rm -f conftest.defines conftest.tail
34882 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34883 cat >>$CONFIG_STATUS <<\_ACEOF
34884 if test x"$ac_file" != x-; then
34885 echo "/* $configure_input */" >"$tmp/config.h"
34886 cat "$ac_result" >>"$tmp/config.h"
34887 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34888 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34889 echo "$as_me: $ac_file is unchanged" >&6;}
34890 else
34891 rm -f $ac_file
34892 mv "$tmp/config.h" $ac_file
34894 else
34895 echo "/* $configure_input */"
34896 cat "$ac_result"
34898 rm -f "$tmp/out12"
34901 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34902 echo "$as_me: executing $ac_file commands" >&6;}
34904 esac
34907 case $ac_file$ac_mode in
34908 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34909 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34910 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34911 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34912 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34913 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34914 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34915 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
34916 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34917 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
34918 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34919 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34920 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34921 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34922 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34923 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34924 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34925 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34926 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34927 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34929 esac
34930 done # for ac_tag
34933 { (exit 0); exit 0; }
34934 _ACEOF
34935 chmod +x $CONFIG_STATUS
34936 ac_clean_files=$ac_clean_files_save
34939 # configure is writing to config.log, and then calls config.status.
34940 # config.status does its own redirection, appending to config.log.
34941 # Unfortunately, on DOS this fails, as config.log is still kept open
34942 # by configure, so config.status won't be able to write to it; its
34943 # output is simply discarded. So we exec the FD to /dev/null,
34944 # effectively closing config.log, so it can be properly (re)opened and
34945 # appended to by config.status. When coming back to configure, we
34946 # need to make the FD available again.
34947 if test "$no_create" != yes; then
34948 ac_cs_success=:
34949 ac_config_status_args=
34950 test "$silent" = yes &&
34951 ac_config_status_args="$ac_config_status_args --quiet"
34952 exec 5>/dev/null
34953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34954 exec 5>>config.log
34955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34956 # would make configure fail if this is the last instruction.
34957 $ac_cs_success || { (exit 1); exit 1; }
34961 # CONFIG_SUBDIRS section.
34963 if test "$no_recursion" != yes; then
34965 # Remove --cache-file and --srcdir arguments so they do not pile up.
34966 ac_sub_configure_args=
34967 ac_prev=
34968 eval "set x $ac_configure_args"
34969 shift
34970 for ac_arg
34972 if test -n "$ac_prev"; then
34973 ac_prev=
34974 continue
34976 case $ac_arg in
34977 -cache-file | --cache-file | --cache-fil | --cache-fi \
34978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34979 ac_prev=cache_file ;;
34980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34982 | --c=*)
34984 --config-cache | -C)
34986 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34987 ac_prev=srcdir ;;
34988 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34991 ac_prev=prefix ;;
34992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34995 case $ac_arg in
34996 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34997 esac
34998 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
34999 esac
35000 done
35002 # Always prepend --prefix to ensure using the same prefix
35003 # in subdir configurations.
35004 ac_arg="--prefix=$prefix"
35005 case $ac_arg in
35006 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35007 esac
35008 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
35010 ac_popdir=`pwd`
35011 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35013 # Do not complain, so a configure script can configure whichever
35014 # parts of a large source tree are present.
35015 test -d "$srcdir/$ac_dir" || continue
35017 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35018 echo "$as_me:$LINENO: $ac_msg" >&5
35019 echo "$ac_msg" >&6
35020 { as_dir="$ac_dir"
35021 case $as_dir in #(
35022 -*) as_dir=./$as_dir;;
35023 esac
35024 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35025 as_dirs=
35026 while :; do
35027 case $as_dir in #(
35028 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35029 *) as_qdir=$as_dir;;
35030 esac
35031 as_dirs="'$as_qdir' $as_dirs"
35032 as_dir=`$as_dirname -- "$as_dir" ||
35033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35034 X"$as_dir" : 'X\(//\)[^/]' \| \
35035 X"$as_dir" : 'X\(//\)$' \| \
35036 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35037 echo X"$as_dir" |
35038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35039 s//\1/
35042 /^X\(\/\/\)[^/].*/{
35043 s//\1/
35046 /^X\(\/\/\)$/{
35047 s//\1/
35050 /^X\(\/\).*/{
35051 s//\1/
35054 s/.*/./; q'`
35055 test -d "$as_dir" && break
35056 done
35057 test -z "$as_dirs" || eval "mkdir $as_dirs"
35058 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35059 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35060 { (exit 1); exit 1; }; }; }
35061 ac_builddir=.
35063 case "$ac_dir" in
35064 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35066 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35067 # A ".." for each directory in $ac_dir_suffix.
35068 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35069 case $ac_top_builddir_sub in
35070 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35071 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35072 esac ;;
35073 esac
35074 ac_abs_top_builddir=$ac_pwd
35075 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35076 # for backward compatibility:
35077 ac_top_builddir=$ac_top_build_prefix
35079 case $srcdir in
35080 .) # We are building in place.
35081 ac_srcdir=.
35082 ac_top_srcdir=$ac_top_builddir_sub
35083 ac_abs_top_srcdir=$ac_pwd ;;
35084 [\\/]* | ?:[\\/]* ) # Absolute name.
35085 ac_srcdir=$srcdir$ac_dir_suffix;
35086 ac_top_srcdir=$srcdir
35087 ac_abs_top_srcdir=$srcdir ;;
35088 *) # Relative name.
35089 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35090 ac_top_srcdir=$ac_top_build_prefix$srcdir
35091 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35092 esac
35093 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35096 cd "$ac_dir"
35098 # Check for guested configure; otherwise get Cygnus style configure.
35099 if test -f "$ac_srcdir/configure.gnu"; then
35100 ac_sub_configure=$ac_srcdir/configure.gnu
35101 elif test -f "$ac_srcdir/configure"; then
35102 ac_sub_configure=$ac_srcdir/configure
35103 elif test -f "$ac_srcdir/configure.in"; then
35104 # This should be Cygnus configure.
35105 ac_sub_configure=$ac_aux_dir/configure
35106 else
35107 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35108 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35109 ac_sub_configure=
35112 # The recursion is here.
35113 if test -n "$ac_sub_configure"; then
35114 # Make the cache file name correct relative to the subdirectory.
35115 case $cache_file in
35116 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35117 *) # Relative name.
35118 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35119 esac
35121 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35122 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35123 # The eval makes quoting arguments work.
35124 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35125 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35126 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
35127 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35128 { (exit 1); exit 1; }; }
35131 cd "$ac_popdir"
35132 done